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