Hevc-Encoder entry

Source: Internet
Author: User

1. encmain. cpp:
// Call encoding function ==> encoding function entry !!!
Ctappenctop. encode ();

2. tappenctop. cpp:
// Call encoding function for one frame each time a YUV is read !!!
M_ctenctop.encode (BEOs, flush? 0: pcpicyuvorg, m_clistpicyuvrec, outputaccessunits, inumencoded );

3. tenctop. cpp:
// Compress GOP frame encoding function !!!
M_cgopencoder.compressgop (m_ipoclast, m_inumpicrcvd, m_clistpic, rclistpicyuvrecout, accessunitsout );

4. tengop: CPP:
// Encode the Code with the best lamuda. Encode each sice !!!
M_pcsliceencoder-> compressslice (pcpic );

5. tencslice. cpp:
// Run Cu encoder for Cu encoding !!!
M_pccuencoder-> compresscu (pccu );

6. tenccu. cpp:
// Analysis of Cu gets the best Pu: m_ppcbestcu [0]!
Xcompresscu (m_ppcbestcu [0], m_ppctempcu [0], 0 );

7. tenccu. cpp:
Void tenccu: xcheckrdcostinter (tcomdatacu * & rpcbestcu, tcomdatacu * & rpctempcu, partsize epartsize, bool busemrg)
Void tenccu: xcheckrdcostintra (tcomdatacu * & rpcbestcu, tcomdatacu * & rpctempcu, partsize esize)

8. tenccu. cpp:
Void tenccu: xcheckrdcostintra (tcomdatacu * & rpcbestcu, tcomdatacu * & rpctempcu, partsize esize)
This function internally predicts the brightness and color, namely, estintrapredqt and estintrapredchromaqt.

9. tensearch. cpp:
Void tencsearch: estintrapredqt (...) has four key functions!
①: Predintralumaang achieves direction Prediction
②: The calchad function calculates satd
③: The bit rate of the xmodebitsintra function code.
④: Update the best rdcost mode in xupdatecandlist

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.