Skip to content

Commit 40ba1eb

Browse files
committed
limit-modes: rename SplitData::rdCost to sa8dCost
1 parent cb65eea commit 40ba1eb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/encoder/analysis.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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 */

source/encoder/analysis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ struct SplitData
4545
{
4646
uint32_t splitRefs;
4747
uint32_t mvCost[2];
48-
uint64_t rdCost;
48+
uint64_t sa8dCost;
4949

5050
void initSplitCUData()
5151
{
5252
splitRefs = 0;
5353
mvCost[0] = 0; // L0
5454
mvCost[1] = 0; // L1
55-
rdCost = 0;
55+
sa8dCost = 0;
5656
}
5757
};
5858

0 commit comments

Comments
 (0)