@@ -949,7 +949,7 @@ SplitData Analysis::compressInterCU_rd0_4(const CUData& parentCTU, const CUGeom&
949949 Mode *bestInter = &md.pred [PRED_2Nx2N];
950950 if (m_param->bEnableRectInter )
951951 {
952- uint64_t splitCost = splitData[0 ].rdCost + splitData[1 ].rdCost + splitData[2 ].rdCost + splitData[3 ].rdCost ;
952+ uint64_t splitCost = splitData[0 ].sa8dCost + splitData[1 ].sa8dCost + splitData[2 ].sa8dCost + splitData[3 ].sa8dCost ;
953953 uint32_t threshold_2NxN, threshold_Nx2N;
954954
955955 if (m_slice->m_sliceType == P_SLICE)
@@ -999,7 +999,7 @@ SplitData Analysis::compressInterCU_rd0_4(const CUData& parentCTU, const CUGeom&
999999
10001000 if (m_slice->m_sps ->maxAMPDepth > depth)
10011001 {
1002- uint64_t splitCost = splitData[0 ].rdCost + splitData[1 ].rdCost + splitData[2 ].rdCost + splitData[3 ].rdCost ;
1002+ uint64_t splitCost = splitData[0 ].sa8dCost + splitData[1 ].sa8dCost + splitData[2 ].sa8dCost + splitData[3 ].sa8dCost ;
10031003 uint32_t threshold_2NxnU, threshold_2NxnD, threshold_nLx2N, threshold_nRx2N;
10041004
10051005 if (m_slice->m_sliceType == P_SLICE)
@@ -1276,7 +1276,7 @@ SplitData Analysis::compressInterCU_rd0_4(const CUData& parentCTU, const CUGeom&
12761276 {
12771277 splitCUData.mvCost [0 ] = md.pred [PRED_2Nx2N].bestME [0 ][0 ].mvCost ; // L0
12781278 splitCUData.mvCost [1 ] = md.pred [PRED_2Nx2N].bestME [0 ][1 ].mvCost ; // L1
1279- splitCUData.rdCost = md.pred [PRED_2Nx2N].sa8dCost ;
1279+ splitCUData.sa8dCost = md.pred [PRED_2Nx2N].sa8dCost ;
12801280 }
12811281
12821282 if (mightNotSplit)
@@ -1437,7 +1437,7 @@ SplitData Analysis::compressInterCU_rd5_6(const CUData& parentCTU, const CUGeom&
14371437
14381438 if (m_param->bEnableRectInter )
14391439 {
1440- uint64_t splitCost = splitData[0 ].rdCost + splitData[1 ].rdCost + splitData[2 ].rdCost + splitData[3 ].rdCost ;
1440+ uint64_t splitCost = splitData[0 ].sa8dCost + splitData[1 ].sa8dCost + splitData[2 ].sa8dCost + splitData[3 ].sa8dCost ;
14411441 uint32_t threshold_2NxN, threshold_Nx2N;
14421442
14431443 if (m_slice->m_sliceType == P_SLICE)
@@ -1485,7 +1485,7 @@ SplitData Analysis::compressInterCU_rd5_6(const CUData& parentCTU, const CUGeom&
14851485 // Try AMP (SIZE_2NxnU, SIZE_2NxnD, SIZE_nLx2N, SIZE_nRx2N)
14861486 if (m_slice->m_sps ->maxAMPDepth > depth)
14871487 {
1488- uint64_t splitCost = splitData[0 ].rdCost + splitData[1 ].rdCost + splitData[2 ].rdCost + splitData[3 ].rdCost ;
1488+ uint64_t splitCost = splitData[0 ].sa8dCost + splitData[1 ].sa8dCost + splitData[2 ].sa8dCost + splitData[3 ].sa8dCost ;
14891489 uint32_t threshold_2NxnU, threshold_2NxnD, threshold_nLx2N, threshold_nRx2N;
14901490
14911491 if (m_slice->m_sliceType == P_SLICE)
@@ -1638,7 +1638,7 @@ SplitData Analysis::compressInterCU_rd5_6(const CUData& parentCTU, const CUGeom&
16381638 {
16391639 splitCUData.mvCost [0 ] = md.pred [PRED_2Nx2N].bestME [0 ][0 ].mvCost ; // L0
16401640 splitCUData.mvCost [1 ] = md.pred [PRED_2Nx2N].bestME [0 ][1 ].mvCost ; // L1
1641- splitCUData.rdCost = md.pred [PRED_2Nx2N].rdCost ;
1641+ splitCUData.sa8dCost = md.pred [PRED_2Nx2N].rdCost ;
16421642 }
16431643
16441644 /* Copy best data to encData CTU and recon */
0 commit comments