/third_party/openh264/test/encoder/ |
D | EncUT_MotionEstimate.cpp | 31 pMe->sMv.iMvX = pMe->sMv.iMvY = 0; in InitMe() 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() 119 || (sMe.sMv.iMvY == 0)); in TEST_F() 227 sMe.sMv.iMvX = sMe.sMvp.iMvX; in TEST_F() 228 sMe.sMv.iMvY = sMe.sMvp.iMvY; in TEST_F() 238 if ((WELS_ABS (sMe.sMv.iMvX) > m_iMvRange)) in TEST_F() 239 printf ("mvx = %d\n", sMe.sMv.iMvX); in TEST_F() 240 ASSERT_TRUE (! (WELS_ABS (sMe.sMv.iMvX) > m_iMvRange)); in TEST_F() 241 if ((WELS_ABS (sMe.sMv.iMvY) > m_iMvRange)) in TEST_F() [all …]
|
/third_party/openh264/codec/encoder/core/src/ |
D | svc_set_mb_syn_cavlc.cpp | 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() 156 sMvd[1].sDeltaMv (pCurMb->sMv[2], pMbCache->sMbMvp[1]); in WelsSpatialWriteMbPred() 222 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvX - pMbCache->sMbMvp[*kpScan4].iMvX); in WelsSpatialWriteSubMbPred() 223 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvY - pMbCache->sMbMvp[*kpScan4].iMvY); in WelsSpatialWriteSubMbPred() 225 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvX - pMbCache->sMbMvp[*kpScan4].iMvX); in WelsSpatialWriteSubMbPred() 226 BsWriteSE (pBs, pCurMb->sMv[*kpScan4].iMvY - pMbCache->sMbMvp[*kpScan4].iMvY); in WelsSpatialWriteSubMbPred() 227 BsWriteSE (pBs, pCurMb->sMv[* (kpScan4 + 1)].iMvX - pMbCache->sMbMvp[* (kpScan4 + 1)].iMvX); in WelsSpatialWriteSubMbPred() [all …]
|
D | svc_motion_estimate.cpp | 62 pMe->sMv = ksBestMv; in UpdateMeResults() 68 pMe->sMv.iMvX *= (1 << 2); in MeEndIntepelSearch() 69 pMe->sMv.iMvY *= (1 << 2); in MeEndIntepelSearch() 189 pMe->sMv.iMvX = pMe->sMv.iMvY = 0; in WelsMotionEstimateSearchStatic() 203 pMe->sMv = pMe->sDirectionalMv; in WelsMotionEstimateSearchScrolled() 204 pMe->pRefMb = pMe->pColoRefMb + pMe->sMv.iMvY * kiStrideRef + pMe->sMv.iMvX; in WelsMotionEstimateSearchScrolled() 207 …+ COST_MVD (pMe->pMvdCost, (pMe->sMv.iMvX * (1 << 2)) - pMe->sMvp.iMvX, (pMe->sMv.iMvY * (1 << 2))… in WelsMotionEstimateSearchScrolled() 238 SMVUnitXY sMv; in WelsMotionEstimateInitialPoint() local 242 sMv.iMvX = WELS_CLIP3 ((2 + ksMvp.iMvX) >> 2, ksMvStartMin.iMvX, ksMvStartMax.iMvX); in WelsMotionEstimateInitialPoint() 243 sMv.iMvY = WELS_CLIP3 ((2 + ksMvp.iMvY) >> 2, ksMvStartMin.iMvY, ksMvStartMax.iMvY); in WelsMotionEstimateInitialPoint() [all …]
|
D | deblocking.cpp | 166 uiBS[0][1][0] = BS_EDGE (uiBsx4[0], iRefIdx, pCurMb->sMv, 1, 0); in DeblockingBSInsideMBNormal() 167 uiBS[0][2][0] = BS_EDGE (uiBsx4[1], iRefIdx, pCurMb->sMv, 2, 1); in DeblockingBSInsideMBNormal() 168 uiBS[0][3][0] = BS_EDGE (uiBsx4[2], iRefIdx, pCurMb->sMv, 3, 2); in DeblockingBSInsideMBNormal() 172 uiBS[0][1][1] = BS_EDGE (uiBsx4[0], iRefIdx, pCurMb->sMv, 5, 4); in DeblockingBSInsideMBNormal() 173 uiBS[0][2][1] = BS_EDGE (uiBsx4[1], iRefIdx, pCurMb->sMv, 6, 5); in DeblockingBSInsideMBNormal() 174 uiBS[0][3][1] = BS_EDGE (uiBsx4[2], iRefIdx, pCurMb->sMv, 7, 6); in DeblockingBSInsideMBNormal() 178 uiBS[0][1][2] = BS_EDGE (uiBsx4[0], iRefIdx, pCurMb->sMv, 9, 8); in DeblockingBSInsideMBNormal() 179 uiBS[0][2][2] = BS_EDGE (uiBsx4[1], iRefIdx, pCurMb->sMv, 10, 9); in DeblockingBSInsideMBNormal() 180 uiBS[0][3][2] = BS_EDGE (uiBsx4[2], iRefIdx, pCurMb->sMv, 11, 10); in DeblockingBSInsideMBNormal() 184 uiBS[0][1][3] = BS_EDGE (uiBsx4[0], iRefIdx, pCurMb->sMv, 13, 12); in DeblockingBSInsideMBNormal() [all …]
|
D | svc_mode_decision.cpp | 133 SMVUnitXY sMv; in SetMvBaseEnhancelayer() local 136 sMv.iMvX = kpRefMb->sMv[iScan4RefPartIdx].iMvX * (1 << 1); in SetMvBaseEnhancelayer() 137 sMv.iMvY = kpRefMb->sMv[iScan4RefPartIdx].iMvY * (1 << 1); in SetMvBaseEnhancelayer() 139 pMd->sMe.sMe16x16.sMvBase = sMv; in SetMvBaseEnhancelayer() 144 pMd->sMe.sMe8x8[3].sMvBase = sMv; in SetMvBaseEnhancelayer() 149 pMd->sMe.sMe8x16[1].sMvBase = sMv; in SetMvBaseEnhancelayer() 438 pFunc->pfUpdateMbMv (pCurMb->sMv, sMvp); in SvcMdSCDMbEnc() 447 pWelsMd->sMe.sMe16x16.sMv.iMvX = sCurMbMv[eSkipMode].iMvX; in SvcMdSCDMbEnc() 448 pWelsMd->sMe.sMe16x16.sMv.iMvY = sCurMbMv[eSkipMode].iMvY; in SvcMdSCDMbEnc() 452 UpdateP16x16MotionInfo (pMbCache, pCurMb, 0, &pWelsMd->sMe.sMe16x16.sMv); in SvcMdSCDMbEnc() [all …]
|
D | mv_pred.cpp | 159 memcpy (pCurMb->sMv, uiMvBuf, sizeof (uiMvBuf)); // confirmed_safe_unsafe_usage in UpdateP16x16MotionInfo() 212 memcpy (&pCurMb->sMv[kiScan4Idx], uiMvBuf, sizeof (uiMvBuf)); // confirmed_safe_unsafe_usage in UpdateP16x8MotionInfo() 253 ST64 (&pCurMb->sMv[kiScan4Idx], kuiMv64); in update_P8x16_motion_info() 254 ST64 (&pCurMb->sMv[4 + kiScan4Idx], kuiMv64); in update_P8x16_motion_info() 255 ST64 (&pCurMb->sMv[8 + kiScan4Idx], kuiMv64); in update_P8x16_motion_info() 256 ST64 (&pCurMb->sMv[12 + kiScan4Idx], kuiMv64); in update_P8x16_motion_info() 291 ST64 (&pCurMb->sMv[ kiScan4Idx], kuiMv64); in UpdateP8x8MotionInfo() 292 ST64 (&pCurMb->sMv[4 + kiScan4Idx], kuiMv64); in UpdateP8x8MotionInfo() 312 pCurMb->sMv[kiScan4Idx] = *pMv; in UpdateP4x4MotionInfo() 325 pCurMb->sMv[ kiScan4Idx] = *pMv; in UpdateP8x4MotionInfo() [all …]
|
D | md.cpp | 140 pMvComp->sMotionVectorCache[ 6] = pLeftMb->sMv[ 3]; in FillNeighborCacheInterWithoutBGD() 141 pMvComp->sMotionVectorCache[12] = pLeftMb->sMv[ 7]; in FillNeighborCacheInterWithoutBGD() 142 pMvComp->sMotionVectorCache[18] = pLeftMb->sMv[11]; in FillNeighborCacheInterWithoutBGD() 143 pMvComp->sMotionVectorCache[24] = pLeftMb->sMv[15]; in FillNeighborCacheInterWithoutBGD() 172 ST64 (&pMvComp->sMotionVectorCache[1], LD64 (&pTopMb->sMv[12])); in FillNeighborCacheInterWithoutBGD() 173 ST64 (&pMvComp->sMotionVectorCache[3], LD64 (&pTopMb->sMv[14])); in FillNeighborCacheInterWithoutBGD() 201 pMvComp->sMotionVectorCache[0] = pLeftTopMb->sMv[15]; in FillNeighborCacheInterWithoutBGD() 221 pMvComp->sMotionVectorCache[5] = iRightTopMb->sMv[12]; in FillNeighborCacheInterWithoutBGD() 262 pMvComp->sMotionVectorCache[ 6] = pLeftMb->sMv[ 3]; in FillNeighborCacheInterWithBGD() 263 pMvComp->sMotionVectorCache[12] = pLeftMb->sMv[ 7]; in FillNeighborCacheInterWithBGD() [all …]
|
D | svc_base_layer_md.cpp | 1018 pCurMb->sP16x16Mv = pMe16x16->sMv; in WelsMdP16x16() 1019 pCurLayer->pDecPic->sMvList[pCurMb->iMbXY] = pMe16x16->sMv; in WelsMdP16x16() 1047 UpdateP16x8Motion2Cache (pMbCache, i << 3, pWelsMd->uiRef, & (sMe16x8->sMv)); in WelsMdP16x8() 1075 UpdateP8x16Motion2Cache (pMbCache, i << 2, pWelsMd->uiRef, & (sMe8x16->sMv)); in WelsMdP8x16() 1113 UpdateP8x8Motion2Cache (pMbCache, i << 2, pWelsMd->uiRef, & (sMe8x8->sMv)); in WelsMdP8x8() 1153 UpdateP4x4Motion2Cache (pMbCache, iPartIdx, pWelsMd->uiRef, & (sMe4x4->sMv)); in WelsMdP4x4() 1192 UpdateP8x4Motion2Cache (pMbCache, iPartIdx, pWelsMd->uiRef, & (sMe8x4->sMv)); in WelsMdP8x4() 1232 UpdateP4x8Motion2Cache (pMbCache, iPartIdx, pWelsMd->uiRef, & (sMe4x8->sMv)); in WelsMdP4x8() 1389 pFunc->pfUpdateMbMv (pCurMb->sMv, sMvp); in WelsMdBackgroundMbEnc() 1402 pWelsMd->sMe.sMe16x16.sMv.iMvX = 0; in WelsMdBackgroundMbEnc() [all …]
|
D | svc_set_mb_syn_cabac.cpp | 393 …sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, kiMbWidth, pCurMb->sMv[i4x4ScanIdx], pMbCache->sMbMvp[i4… in WelsCabacSubMbMvd() 402 …sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, kiMbWidth, pCurMb->sMv[i4x4ScanIdx], pMbCache->sMbMvp[i4… in WelsCabacSubMbMvd() 409 …sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, kiMbWidth, pCurMb->sMv[i4x4ScanIdx], pMbCache->sMbMvp[i4… in WelsCabacSubMbMvd() 417 …sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, kiMbWidth, pCurMb->sMv[i4x4ScanIdx], pMbCache->sMbMvp[i4… in WelsCabacSubMbMvd() 679 sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, iMbWidth, pCurMb->sMv[0], pMbCache->sMbMvp[0], 0); in WelsSpatialWriteMbSynCabac() 690 sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, iMbWidth , pCurMb->sMv[0], pMbCache->sMbMvp[0], 0); in WelsSpatialWriteMbSynCabac() 694 sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, iMbWidth, pCurMb->sMv[8], pMbCache->sMbMvp[1], 8); in WelsSpatialWriteMbSynCabac() 703 sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, iMbWidth, pCurMb->sMv[0], pMbCache->sMbMvp[0], 0); in WelsSpatialWriteMbSynCabac() 708 sMvd = WelsCabacMbMvd (pCabacCtx, pCurMb, iMbWidth, pCurMb->sMv[2], pMbCache->sMbMvp[1], 2); in WelsSpatialWriteMbSynCabac()
|
D | encoder_ext.cpp | 898 pList[iIdx].sMv = pLayerMvUnitBlock4x4[iIdx]; in InitMbInfo()
|
/third_party/openh264/codec/encoder/core/inc/ |
D | svc_enc_macroblock.h | 61 SMVUnitXY* sMv; member
|
D | svc_motion_estimate.h | 96 SMVUnitXY sMv; member
|
/third_party/openh264/codec/common/x86/ |
D | mb_copy.asm | 359 ; void UpdateMbMv_sse2( SMVUnitXY *pMvBuffer, const SMVUnitXY sMv )
|