Home
last modified time | relevance | path

Searched refs:iMvX (Results 1 – 14 of 14) sorted by relevance

/third_party/openh264/test/encoder/
DEncUT_MotionEstimate.cpp14 uint8_t* pTargetPos = pRefPic + sTargetMv.iMvY * kiRefPicStride + sTargetMv.iMvX; in CopyTargetBlock()
29 pMe->sMvp.iMvX = pMe->sMvp.iMvY = 0; in InitMe()
30 pMe->sMvBase.iMvX = pMe->sMvBase.iMvY = 0; in InitMe()
31 pMe->sMv.iMvX = pMe->sMv.iMvY = 0; in InitMe()
96 sTargetMv.iMvX = kiPositionToCheck[i][0]; in TEST_F()
112 sMe.sMv.iMvX = sMe.sMv.iMvY = 0; in TEST_F()
118 …bFoundMatch = ((sMe.sMv.iMvX == (sTargetMv.iMvX)) || (sMe.sMv.iMvX == 0)) && ((sMe.sMv.iMvY == (sT… in TEST_F()
219 sMe.sMvp.iMvX = rand() % m_iMvRange; in TEST_F()
227 sMe.sMv.iMvX = sMe.sMvp.iMvX; in TEST_F()
238 if ((WELS_ABS (sMe.sMv.iMvX) > m_iMvRange)) in TEST_F()
[all …]
DEncUT_MotionCompensation.cpp78 int32_t iMvX, int32_t iMvY, int32_t iWidth, int32_t iHeight) { in MCLumaAnchor() argument
79 int32_t iMvXIdx = iMvX & 3; in MCLumaAnchor()
81 int32_t iOffset = (iMvY >> 2) * iSrcStride + (iMvX >> 2); in MCLumaAnchor()
93 int32_t iMvX, int32_t iMvY, int32_t iWidth, int32_t iHeight) { in MCChromaAnchor() argument
95 pSrc += (iMvY >> 3) * iSrcStride + (iMvX >> 3) * 2; in MCChromaAnchor()
98 int32_t iMvXIdx = iMvX & 0x07; in MCChromaAnchor()
/third_party/openh264/codec/encoder/core/src/
Dsvc_set_mb_syn_cavlc.cpp130 BsWriteSE (pBs, sMvd[0].iMvX); in WelsSpatialWriteMbPred()
145 BsWriteSE (pBs, sMvd[0].iMvX); //block0 in WelsSpatialWriteMbPred()
147 BsWriteSE (pBs, sMvd[1].iMvX); //block1 in WelsSpatialWriteMbPred()
162 BsWriteSE (pBs, sMvd[0].iMvX); //block0 in WelsSpatialWriteMbPred()
164 BsWriteSE (pBs, sMvd[1].iMvX); //block1 in WelsSpatialWriteMbPred()
222 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvX - pMbCache->sMbMvp[*kpScan4].iMvX); in WelsSpatialWriteSubMbPred()
225 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvX - pMbCache->sMbMvp[*kpScan4].iMvX); in WelsSpatialWriteSubMbPred()
227 BsWriteSE (pBs, pCurMb->sMv[* (kpScan4 + 1)].iMvX - pMbCache->sMbMvp[* (kpScan4 + 1)].iMvX); in WelsSpatialWriteSubMbPred()
229 BsWriteSE (pBs, pCurMb->sMv[* (kpScan4 + 2)].iMvX - pMbCache->sMbMvp[* (kpScan4 + 2)].iMvX); in WelsSpatialWriteSubMbPred()
231 BsWriteSE (pBs, pCurMb->sMv[* (kpScan4 + 3)].iMvX - pMbCache->sMbMvp[* (kpScan4 + 3)].iMvX); in WelsSpatialWriteSubMbPred()
[all …]
Dsvc_motion_estimate.cpp68 pMe->sMv.iMvX *= (1 << 2); in MeEndIntepelSearch()
181 pMe->sMv.iMvX = pMe->sMv.iMvY = 0; in WelsMotionEstimateSearchStatic()
184 pMe->uiSadCost += COST_MVD (pMe->pMvdCost, - pMe->sMvp.iMvX, - pMe->sMvp.iMvY); in WelsMotionEstimateSearchStatic()
196 pMe->pRefMb = pMe->pColoRefMb + pMe->sMv.iMvY * kiStrideRef + pMe->sMv.iMvX; in WelsMotionEstimateSearchScrolled()
199 …+ COST_MVD (pMe->pMvdCost, (pMe->sMv.iMvX * (1 << 2)) - pMe->sMvp.iMvX, (pMe->sMv.iMvY * (1 << 2))… in WelsMotionEstimateSearchScrolled()
234 sMv.iMvX = WELS_CLIP3 ((2 + ksMvp.iMvX) >> 2, ksMvStartMin.iMvX, ksMvStartMax.iMvX); in WelsMotionEstimateInitialPoint()
237 pRefMb = &pMe->pRefMb[sMv.iMvY * iStrideRef + sMv.iMvX]; in WelsMotionEstimateInitialPoint()
240 …iBestSadCost += COST_MVD (kpMvdCost, ((sMv.iMvX) * (1 << 2)) - ksMvp.iMvX, ((sMv.iMvY) * (1 << 2))… in WelsMotionEstimateInitialPoint()
244 iMvc0 = WELS_CLIP3 ((2 + kpMvcList[i].iMvX) >> 2, ksMvStartMin.iMvX, ksMvStartMax.iMvX); in WelsMotionEstimateInitialPoint()
247 if (((iMvc0 - sMv.iMvX) || (iMvc1 - sMv.iMvY))) { in WelsMotionEstimateInitialPoint()
[all …]
Dsvc_mode_decision.cpp136 sMv.iMvX = kpRefMb->sMv[iScan4RefPartIdx].iMvX * (1 << 1); in SetMvBaseEnhancelayer()
398 ST16 (&sMvp.iMvX, sCurMbMv[eSkipMode].iMvX); in SvcMdSCDMbEnc()
409 …const int32_t iOffsetY = (sCurMbMv[eSkipMode].iMvX >> 2) + (sCurMbMv[eSkipMode].iMvY >> 2) * iLin… in SvcMdSCDMbEnc()
410 …const int32_t iOffsetUV = (sCurMbMv[eSkipMode].iMvX >> 3) + (sCurMbMv[eSkipMode].iMvY >> 3) * iLin… in SvcMdSCDMbEnc()
419 …pFunc->sMcFuncs.pMcChromaFunc (pRefCb + iOffsetUV, iLineSizeUV, pDstCb, 8, sMvp.iMvX, sMvp.iMvY, 8… in SvcMdSCDMbEnc()
420 …pFunc->sMcFuncs.pMcChromaFunc (pRefCr + iOffsetUV, iLineSizeUV, pDstCr, 8, sMvp.iMvX, sMvp.iMvY, 8… in SvcMdSCDMbEnc()
429 ST16 (& (pCurMb->sP16x16Mv.iMvX), sCurMbMv[eSkipMode].iMvX); in SvcMdSCDMbEnc()
432 ST16 (& (pCurDqLayer->pDecPic->sMvList[pCurMb->iMbXY].iMvX), sCurMbMv[eSkipMode].iMvX); in SvcMdSCDMbEnc()
447 pWelsMd->sMe.sMe16x16.sMv.iMvX = sCurMbMv[eSkipMode].iMvX; in SvcMdSCDMbEnc()
485 sCurMbMv[1].iMvX = static_cast<int16_t> (pVaaExt->sScrollDetectInfo.iScrollMvX << 2); in MdInterSCDPskipProcess()
[all …]
Dmd.cpp578 int16_t iMvx = pMe->sMv.iMvX; in MeRefineFracPixel()
602 …iBestCost = pMe->uSadPredISatd.uiSatd + COST_MVD (pMe->pMvdCost, iMvx - pMe->sMvp.iMvX, iMvy - pMe… in MeRefineFracPixel()
605 COST_MVD (pMe->pMvdCost, iMvx - pMe->sMvp.iMvX, iMvy - pMe->sMvp.iMvY); in MeRefineFracPixel()
617 COST_MVD (pMe->pMvdCost, iMvx - pMe->sMvp.iMvX, iMvy - 2 - pMe->sMvp.iMvY); in MeRefineFracPixel()
626 COST_MVD (pMe->pMvdCost, iMvx - pMe->sMvp.iMvX, iMvy + 2 - pMe->sMvp.iMvY); in MeRefineFracPixel()
639 COST_MVD (pMe->pMvdCost, iMvx - 2 - pMe->sMvp.iMvX, iMvy - pMe->sMvp.iMvY); in MeRefineFracPixel()
648 COST_MVD (pMe->pMvdCost, iMvx + 2 - pMe->sMvp.iMvX, iMvy - pMe->sMvp.iMvY); in MeRefineFracPixel()
672 …sParams.iLms[0] = COST_MVD (pMe->pMvdCost, iHalfMvx - pMe->sMvp.iMvX, iHalfMvy - 1 - pMe->sMvp.iMv… in MeRefineFracPixel()
673 …sParams.iLms[1] = COST_MVD (pMe->pMvdCost, iHalfMvx - pMe->sMvp.iMvX, iHalfMvy + 1 - pMe->sMvp.iMv… in MeRefineFracPixel()
674 …sParams.iLms[2] = COST_MVD (pMe->pMvdCost, iHalfMvx - 1 - pMe->sMvp.iMvX, iHalfMvy - pMe->sMvp.iMv… in MeRefineFracPixel()
[all …]
Dsvc_base_layer_md.cpp1003 pSlice->sMvc[pSlice->uiMvcNum].iMvX = sTempMv.iMvX >> pSlice->sScaleShift; in WelsMdP16x16()
1009 pSlice->sMvc[pSlice->uiMvcNum].iMvX = sTempMv.iMvX >> pSlice->sScaleShift; in WelsMdP16x16()
1373 pFunc->sMcFuncs.pMcChromaFunc (pRefCb, iLineSizeUV, pDstCb, 8, sMvp.iMvX, sMvp.iMvY, 8, 8); //Cb in WelsMdBackgroundMbEnc()
1374 pFunc->sMcFuncs.pMcChromaFunc (pRefCr, iLineSizeUV, pDstCr, 8, sMvp.iMvX, sMvp.iMvY, 8, 8); //Cr in WelsMdBackgroundMbEnc()
1402 pWelsMd->sMe.sMe16x16.sMv.iMvX = 0; in WelsMdBackgroundMbEnc()
1452 …SMVUnitXY sQpelMvp = { static_cast<int16_t> (sMvp.iMvX >> 2), static_cast<int16_t> (sMvp.iMvY >> 2… in WelsMdPSkipEnc()
1453 n = (pCurMb->iMbX << 4) + sQpelMvp.iMvX; in WelsMdPSkipEnc()
1466 pRefLuma += sQpelMvp.iMvY * iLineSizeY + sQpelMvp.iMvX; in WelsMdPSkipEnc()
1467 pFunc->sMcFuncs.pMcLumaFunc (pRefLuma, iLineSizeY, pDstLuma, 16, sMvp.iMvX, sMvp.iMvY, 16, 16); in WelsMdPSkipEnc()
1471 const int32_t iStrideUV = (sQpelMvp.iMvY >> 1) * iLineSizeUV + (sQpelMvp.iMvX >> 1); in WelsMdPSkipEnc()
[all …]
Dsvc_set_mb_syn_cabac.cpp277 pCurMb->sMvd[i].iMvX = 0; in WelsMbSkipCabac()
349 sMvdLeft.iMvX = sMvdLeft.iMvY = sMvdTop.iMvX = sMvdTop.iMvY = 0; in WelsCabacMbMvd()
362 iAbsMvd0 = WELS_ABS (sMvdLeft.iMvX) + WELS_ABS (sMvdTop.iMvX); in WelsCabacMbMvd()
365 WelsCabacMbMvdLx (pCabacCtx, sMvd.iMvX, 40, iAbsMvd0); in WelsCabacMbMvd()
669 sMvd.iMvX = sMvd.iMvY = 0; in WelsSpatialWriteMbSynCabac()
Dmv_pred.cpp86 sMvp->iMvX = WelsMedian (sMvA.iMvX, sMvB.iMvX, sMvC.iMvX); in PredMv()
Ddeblocking.cpp52 ( WELS_ABS( sCurMv[uiBIdx].iMvX - sNeighMv[uiBnIdx].iMvX ) >= 4 ) ||\
58 …!!((WELS_ABS(sMotionVector[uiBIdx].iMvX - sMotionVector[uiBnIdx].iMvX) &(~3)) | (WELS_ABS(sMotionV…
/third_party/openh264/codec/encoder/core/inc/
Dwels_common_basis.h51 int16_t iMvX; member
55 iMvX = _v0.iMvX - _v1.iMvX; in sDeltaMv()
60 iMvX = _v0.iMvX; in sAssignMv()
Dsvc_motion_estimate.h339 pMvMin->iMvX = WELS_MAX (-1 * ((kiMbX + 1) * (1 << 4)) + INTPEL_NEEDED_MARGIN, -1 * kiMaxMvRange); in SetMvWithinIntegerMvRange()
341 pMvMax->iMvX = WELS_MIN (((kiMbWidth - kiMbX) * (1 << 4)) - INTPEL_NEEDED_MARGIN, kiMaxMvRange); in SetMvWithinIntegerMvRange()
346 return (CheckInRangeCloseOpen (ksCurrentMv.iMvX, ksMinMv.iMvX, ksMaxMv.iMvX) in CheckMvInRange()
/third_party/openh264/codec/common/src/
Dmc.cpp336 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) in McLuma_c() argument
346 pWelsMcFunc[iMvX & 0x03][iMvY & 0x03] (pSrc, iSrcStride, pDst, iDstStride, iWidth, iHeight); in McLuma_c()
350 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) { in McChromaWithFragMv_c() argument
354 const uint8_t* pABCD = g_kuiABCD[iMvY & 0x07][iMvX & 0x07]; in McChromaWithFragMv_c()
370 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) in McChroma_c() argument
373 const int32_t kiD8x = iMvX & 0x07; in McChroma_c()
378 McChromaWithFragMv_c (pSrc, iSrcStride, pDst, iDstStride, iMvX, iMvY, iWidth, iHeight); in McChroma_c()
683 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) in McLuma_sse2() argument
693 pWelsMcFunc[iMvX & 0x03][iMvY & 0x03] (pSrc, iSrcStride, pDst, iDstStride, iWidth, iHeight); in McLuma_sse2()
697 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight) { in McChroma_sse2() argument
[all …]
/third_party/openh264/codec/common/inc/
Dmc.h39 int16_t iMvX, int16_t iMvY, int32_t iWidth, int32_t iHeight);