Home
last modified time | relevance | path

Searched refs:pMbCache (Results 1 – 15 of 15) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dsvc_base_layer_md.cpp259 void WelsMdIntraInit (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, const int32_t iSliceFi… in WelsMdIntraInit() argument
276 pMbCache->SPicData.pEncMb[0] = pCurLayer->pEncData[0] + iOffsetY; in WelsMdIntraInit()
277 pMbCache->SPicData.pEncMb[1] = pCurLayer->pEncData[1] + iOffsetUV; in WelsMdIntraInit()
278 pMbCache->SPicData.pEncMb[2] = pCurLayer->pEncData[2] + iOffsetUV; in WelsMdIntraInit()
284 pMbCache->SPicData.pCsMb[0] = pCurLayer->pCsData[0] + iOffsetY; in WelsMdIntraInit()
285 pMbCache->SPicData.pCsMb[1] = pCurLayer->pCsData[1] + iOffsetUV; in WelsMdIntraInit()
286 pMbCache->SPicData.pCsMb[2] = pCurLayer->pCsData[2] + iOffsetUV; in WelsMdIntraInit()
292 pMbCache->SPicData.pDecMb[0] = pCurLayer->pDecPic->pData[0] + iOffsetY; in WelsMdIntraInit()
293 pMbCache->SPicData.pDecMb[1] = pCurLayer->pDecPic->pData[1] + iOffsetUV; in WelsMdIntraInit()
294 pMbCache->SPicData.pDecMb[2] = pCurLayer->pDecPic->pData[2] + iOffsetUV; in WelsMdIntraInit()
[all …]
Dmd.cpp51 void FillNeighborCacheIntra (SMbCache* pMbCache, SMB* pCurMb, int32_t iMbWidth) { in FillNeighborCacheIntra() argument
57 pMbCache->iNonZeroCoeffCount[8] = pLeftMbNonZeroCount[ 3]; in FillNeighborCacheIntra()
58 pMbCache->iNonZeroCoeffCount[16] = pLeftMbNonZeroCount[ 7]; in FillNeighborCacheIntra()
59 pMbCache->iNonZeroCoeffCount[24] = pLeftMbNonZeroCount[11]; in FillNeighborCacheIntra()
60 pMbCache->iNonZeroCoeffCount[32] = pLeftMbNonZeroCount[15]; in FillNeighborCacheIntra()
62 pMbCache->iNonZeroCoeffCount[ 13] = pLeftMbNonZeroCount[17]; in FillNeighborCacheIntra()
63 pMbCache->iNonZeroCoeffCount[21] = pLeftMbNonZeroCount[21]; in FillNeighborCacheIntra()
64 pMbCache->iNonZeroCoeffCount[37] = pLeftMbNonZeroCount[19]; in FillNeighborCacheIntra()
65 pMbCache->iNonZeroCoeffCount[45] = pLeftMbNonZeroCount[23]; in FillNeighborCacheIntra()
71 pMbCache->iIntraPredMode[8] = pLeftMbIntra4x4PredMode[4]; in FillNeighborCacheIntra()
[all …]
Dsvc_mode_decision.cpp56 SMbCache* pMbCache = &pSlice->sMbCacheInfo; in WelsMdSpatialelInterMbIlfmdNoilp() local
70 …if (pEncCtx->pFuncList->pfInterMdBackgroundDecision (pEncCtx, pWelsMd, pSlice, pCurMb, pMbCache, &… in WelsMdSpatialelInterMbIlfmdNoilp()
75 bSkip = WelsMdInterJudgePskip (pEncCtx, pWelsMd, pSlice, pCurMb, pMbCache, bTrySkip); in WelsMdSpatialelInterMbIlfmdNoilp()
78 WelsMdInterDecidedPskip (pEncCtx, pSlice, pCurMb, pMbCache); in WelsMdSpatialelInterMbIlfmdNoilp()
84 … PredictSad (pMbCache->sMvComponents.iRefIndexCache, pMbCache->iSadCost, 0, &pWelsMd->iSadPredMb); in WelsMdSpatialelInterMbIlfmdNoilp()
91 WelsMdInterSecondaryModesEnc (pEncCtx, pWelsMd, pSlice, pCurMb, pMbCache, bSkip); in WelsMdSpatialelInterMbIlfmdNoilp()
94 …const int32_t kiCostI16x16 = WelsMdI16x16 (pEncCtx->pFuncList, pEncCtx->pCurDqLayer, pMbCache, pWe… in WelsMdSpatialelInterMbIlfmdNoilp()
96 WelsMdInterDecidedPskip (pEncCtx, pSlice, pCurMb, pMbCache); in WelsMdSpatialelInterMbIlfmdNoilp()
101 WelsMdIntraSecondaryModesEnc (pEncCtx, pWelsMd, pCurMb, pMbCache); in WelsMdSpatialelInterMbIlfmdNoilp()
108 …nhancelayer (sWelsEncCtx* pEncCtx, SWelsMD* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pMbCache) { in WelsMdInterMbEnhancelayer() argument
[all …]
Dsvc_set_mb_syn_cabac.cpp54 static void WelsCabacMbType (SCabacCtx* pCabacCtx, SMB* pCurMb, SMbCache* pMbCache, int32_t iMbWidt… in WelsCabacMbType() argument
72 int32_t iPredMode = g_kiMapModeI16x16[pMbCache->uiLumaI16x16Mode]; in WelsCabacMbType()
113 int32_t iPredMode = g_kiMapModeI16x16[pMbCache->uiLumaI16x16Mode]; in WelsCabacMbType()
137 void WelsCabacMbIntra4x4PredMode (SCabacCtx* pCabacCtx, SMbCache* pMbCache) { in WelsCabacMbIntra4x4PredMode() argument
141 bool bPredFlag = pMbCache->pPrevIntra4x4PredModeFlag[iMode]; in WelsCabacMbIntra4x4PredMode()
142 int8_t iRemMode = pMbCache->pRemIntra4x4PredModeFlag[iMode]; in WelsCabacMbIntra4x4PredMode()
156 void WelsCabacMbIntraChromaPredMode (SCabacCtx* pCabacCtx, SMB* pCurMb, SMbCache* pMbCache, int32_t… in WelsCabacMbIntraChromaPredMode() argument
161 int32_t iPredMode = g_kiMapModeIntraChroma[pMbCache->uiChmaI8x8Mode]; in WelsCabacMbIntraChromaPredMode()
284 void WelsCabacMbRef (SCabacCtx* pCabacCtx, SMB* pCurMb, SMbCache* pMbCache, int16_t iIdx) { in WelsCabacMbRef() argument
285 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents; in WelsCabacMbRef()
[all …]
Dsvc_set_mb_syn_cavlc.cpp60 SMbCache* pMbCache = &pSlice->sMbCacheInfo; in WelsSpatialWriteMbPred() local
93 pPredFlag = &pMbCache->pPrevIntra4x4PredModeFlag[0]; in WelsSpatialWriteMbPred()
94 pRemMode = &pMbCache->pRemIntra4x4PredModeFlag[0]; in WelsSpatialWriteMbPred()
108 BsWriteUE (pBs, g_kiMapModeIntraChroma[pMbCache->uiChmaI8x8Mode]); in WelsSpatialWriteMbPred()
114 …BsWriteUE (pBs, 1 + iMbOffset + g_kiMapModeI16x16[pMbCache->uiLumaI16x16Mode] + (iCbpChroma << 2) + in WelsSpatialWriteMbPred()
118 BsWriteUE (pBs, g_kiMapModeIntraChroma[pMbCache->uiChmaI8x8Mode]); in WelsSpatialWriteMbPred()
124 sMvd[0].sDeltaMv (pCurMb->sMv[0], pMbCache->sMbMvp[0]); in WelsSpatialWriteMbPred()
138 sMvd[0].sDeltaMv (pCurMb->sMv[0], pMbCache->sMbMvp[0]); in WelsSpatialWriteMbPred()
139 sMvd[1].sDeltaMv (pCurMb->sMv[8], pMbCache->sMbMvp[1]); in WelsSpatialWriteMbPred()
155 sMvd[0].sDeltaMv (pCurMb->sMv[0], pMbCache->sMbMvp[0]); in WelsSpatialWriteMbPred()
[all …]
Dsvc_encode_mb.cpp54 void WelsEncRecI16x16Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache) { in WelsEncRecI16x16Y() argument
59 int16_t* pRes = pMbCache->pCoeffLevel; in WelsEncRecI16x16Y()
60 uint8_t* pPred = pMbCache->SPicData.pCsMb[0]; in WelsEncRecI16x16Y()
62 int16_t* pBlock = pMbCache->pDct->iLumaBlock[0]; in WelsEncRecI16x16Y()
63 uint8_t* pBestPred = pMbCache->pMemPredLuma; in WelsEncRecI16x16Y()
71 …WelsDctMb (pRes, pMbCache->SPicData.pEncMb[0], kiEncStride, pBestPred, pEncCtx->pFuncList->pfDctF… in WelsEncRecI16x16Y()
75 pFuncList->pfScan4x4 (pMbCache->pDct->iLumaI16x16Dc, aDctT4Dc); in WelsEncRecI16x16Y()
76 uiCountI16x16Dc = pFuncList->pfGetNoneZeroCount (pMbCache->pDct->iLumaI16x16Dc); in WelsEncRecI16x16Y()
139 void WelsEncRecI4x4Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, uint8_t uiI4x4Idx) { in WelsEncRecI4x4Y() argument
145 int16_t* pResI4x4 = pMbCache->pCoeffLevel; in WelsEncRecI4x4Y()
[all …]
Dmv_pred.cpp91 void PredInter8x16Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp) { in PredInter8x16Mv() argument
92 const SMVComponentUnit* kpMvComp = &pMbCache->sMvComponents; in PredInter8x16Mv()
114 void PredInter16x8Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp) { in PredInter16x8Mv() argument
115 const SMVComponentUnit* kpMvComp = &pMbCache->sMvComponents; in PredInter16x8Mv()
132 void PredSkipMv (SMbCache* pMbCache, SMVUnitXY* sMvp) { in PredSkipMv() argument
133 const SMVComponentUnit* kpMvComp = &pMbCache->sMvComponents; in PredSkipMv()
148 void UpdateP16x16MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int8_t kiRef, SMVUnitXY* pMv) { in UpdateP16x16MotionInfo() argument
150 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents; in UpdateP16x16MotionInfo()
195 void UpdateP16x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t … in UpdateP16x8MotionInfo() argument
198 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents; in UpdateP16x8MotionInfo()
[all …]
Dsvc_encode_slice.cpp57 void UpdateNonZeroCountCache (SMB* pMb, SMbCache* pMbCache) { in UpdateNonZeroCountCache() argument
58 ST32 (&pMbCache->iNonZeroCoeffCount[9], LD32 (&pMb->pNonZeroCount[ 0])); in UpdateNonZeroCountCache()
59 ST32 (&pMbCache->iNonZeroCoeffCount[17], LD32 (&pMb->pNonZeroCount[ 4])); in UpdateNonZeroCountCache()
60 ST32 (&pMbCache->iNonZeroCoeffCount[25], LD32 (&pMb->pNonZeroCount[ 8])); in UpdateNonZeroCountCache()
61 ST32 (&pMbCache->iNonZeroCoeffCount[33], LD32 (&pMb->pNonZeroCount[12])); in UpdateNonZeroCountCache()
63 ST16 (&pMbCache->iNonZeroCoeffCount[14], LD16 (&pMb->pNonZeroCount[16])); in UpdateNonZeroCountCache()
64 ST16 (&pMbCache->iNonZeroCoeffCount[38], LD16 (&pMb->pNonZeroCount[18])); in UpdateNonZeroCountCache()
65 ST16 (&pMbCache->iNonZeroCoeffCount[22], LD16 (&pMb->pNonZeroCount[20])); in UpdateNonZeroCountCache()
66 ST16 (&pMbCache->iNonZeroCoeffCount[46], LD16 (&pMb->pNonZeroCount[22])); in UpdateNonZeroCountCache()
445 SMbCache* pMbCache = &pSlice->sMbCacheInfo; in WelsInterMbEncode() local
[all …]
/third_party/openh264/codec/encoder/core/inc/
Dmv_pred.h60 void UpdateP16x16MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int8_t kiRef, SMVUnitXY* pMv); …
67 void UpdateP16x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t …
75 void update_P8x16_motion_info (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8…
83 void UpdateP8x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t k…
91 void UpdateP4x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t k…
99 void UpdateP8x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t k…
107 void UpdateP4x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t k…
123 void PredSkipMv (SMbCache* pMbCache, SMVUnitXY* sMvp);
131 void PredInter16x8Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp);
139 void PredInter8x16Mv (SMbCache* pMbCache, int32_t iPartIdx, int8_t iRef, SMVUnitXY* sMvp);
[all …]
Dsvc_base_layer_md.h47 void WelsMdIntraInit (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, const int32_t kiSliceF…
48 int32_t WelsMdI16x16 (SWelsFuncPtrList* pFunc, SDqLayer* pCurDqLayer, SMbCache* pMbCache, int32_t i…
49 int32_t WelsMdIntraChroma (SWelsFuncPtrList* pFunc, SDqLayer* pCurDqLayer, SMbCache* pMbCache, int3…
51 int32_t WelsMdI4x4 (sWelsEncCtx* pEnc, SWelsMD* pMd, SMB* pCurMb, SMbCache* pMbCache);
52 int32_t WelsMdI4x4Fast (sWelsEncCtx* pEnc, SWelsMD* pMd, SMB* pCurMb, SMbCache* pMbCache);
54 …WelsMdIntraFinePartition (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
55 …sMdIntraFinePartitionVaa (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
57 void WelsMdIntraMb (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
59 void WelsMdBackgroundMbEnc (sWelsEncCtx* pEnc, SWelsMD* pMd, SMB* pCurMb, SMbCache* pMbCache, SSlic…
60 bool WelsMdPSkipEnc (sWelsEncCtx* pEnc, SWelsMD* pMd, SMB* pCurMb, SMbCache* pMbCache);
[all …]
Dsvc_encode_mb.h53 void WelsEncRecI16x16Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
54 void WelsEncRecI4x4Y (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, uint8_t uiI4x4Idx);
55 void WelsEncInterY (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache);
56 void WelsEncRecUV (SWelsFuncPtrList* func, SMB* pCurMb, SMbCache* pMbCache, int16_t* pRs, int32_t i…
57 void WelsRecPskip (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SMB* pCurMb, SMbCache* pMbCache);
59 bool WelsTryPYskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
60 bool WelsTryPUVskip (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, int32_t iUV);
Dsvc_mode_decision.h64 …rMbEnhancelayer (sWelsEncCtx* pEnc, SWelsMD* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pMbCache);
71 …terJudgeBGDPskip (sWelsEncCtx* pEnc, SWelsMD* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pMbCache,
73 …dgeBGDPskipFalse (sWelsEncCtx* pEnc, SWelsMD* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pMbCache,
84 …DPskipProcess (sWelsEncCtx* pEncCtx, SWelsMD* pMd, SSlice* pSlice, SMB* pCurMb, SMbCache* pMbCache,
86 typedef bool (*pJudgeSkipFun) (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache, SWelsMD* pWel…
Dmd.h131 void FillNeighborCacheIntra (SMbCache* pMbCache, SMB* pCurMb, int32_t iMbWidth/*, bool constrained_…
132 void FillNeighborCacheInterWithoutBGD (SMbCache* pMbCache, SMB* pCurMb, int32_t iMbWidth,
134 void FillNeighborCacheInterWithBGD (SMbCache* pMbCache, SMB* pCurMb, int32_t iMbWidth, int8_t* pVaa…
152 void InitMeRefinePointer (SMeRefinePointer* pMeRefine, SMbCache* pMbCache, int32_t iStride);
Dsvc_encode_slice.h55 void UpdateNonZeroCountCache (SMB* pMb, SMbCache* pMbCache);
69 void WelsIMbChromaEncode (sWelsEncCtx* pEncCtx, SMB* pCurMb, SMbCache* pMbCache);
84 int32_t AllocMbCacheAligned (SMbCache* pMbCache, CMemoryAlign* pMa);
85 void FreeMbCache (SMbCache* pMbCache, CMemoryAlign* pMa);
Dwels_func_ptr_def.h106 …32_t (*PIntraFineMdFunc) (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
108 …terMdFirstIntraModeFunc) (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SMB* pCurMb, SMbCache* pMbCache);
110 typedef void (*PFillInterNeighborCacheFunc) (SMbCache* pMbCache, SMB* pCurMb, int32_t iMbWidth, int…
117 SMbCache* pMbCache, bool* pKeepPskip);
122 SMbCache* pMbCache);
125 …erMdFunc) (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SSlice* slice, SMB* pCurMb, SMbCache* pMbCache);