网站建设销售策划方案,网页建设推荐,帮别人做网站进了看守所,有个做h手游的网站首先进入编码encmain.cpp里的int main 函数#xff0c;主函数的入口#xff0c;里面包含的重要函数是时间计数函数和encode()函数。
在encode函数中开始编码。encode函数中#xff0c;首先输入YUV序列#xff0c;初始化内部类和成员变量#xff0c;转换色彩空间#xff0…首先进入编码encmain.cpp里的int main 函数主函数的入口里面包含的重要函数是时间计数函数和encode()函数。
在encode函数中开始编码。encode函数中首先输入YUV序列初始化内部类和成员变量转换色彩空间创建原始的YUV缓冲区读取YUV文件然后开始编码每一帧。最后删除原始YUV缓冲区及使用的类打印总的码率。里面包含的重要函数是TEncTop::encode。
在encode函数中重要函数是compressGOP。
compressGOP 中重要函数是predcompressSlice()和compressSlice().
compressSlice()中重要函数是compressCTU。
compressCTU中重要函数是xcompressCU.
xcompressCU包含的重要函数是xComputeQP、xCheckRDCostInterxCheckRDCostMerge2Nx2N、xCheckRDCostIntra、xCheckIntraPCM、 xCheckBestMode。
在xCheckRDCostInter中重要函数是xCheckBestMode用于检验是否是CU最优深度以及predInterSearch主要进行ME和MC。
predInterSearch中重要函数是xEstimateMvPredAMVP、 xMotionEstimation 、xCheckBestMVP、motionCompensation、xMergeEstimation、setWpScalingDistParam。xMotionEstimation 中重要函数 xPatternSearch 全搜索、xPatternSearchFast快速搜索、xSetSearchRange。
xPatternSearchFast中重要函数 xTZSearch、xTZSearchSelective。
xTZSearch中重要函数是xTZSearchHelp、xTZ8PointDiamondSearch 、 xTZ8PointSquareSearch。
xEstimateMvPredAMVP中重要函数是fillMvpCand。
在xCheckRDCostMerge2Nx2N重要函数是motionCompensation和encodeResAndCalcRdInterCU以及最重要的函数getInterMergeCandidatesxCheckBestMode。
xCheckRDCostIntra中重要函数是estIntraPredLumaQT、estIntraPredChromaQT、xCheckBestMode。
estIntraPredLumaQT中重要函数是 predIntraAng。
predIntraAng中重要函数xPredIntraPlanar、xPredIntraAng。