# HG changeset patch # User Sumalatha Polureddy # Date 1387191558 -19800 # Node ID 35c47ea3b228e2c5e0485483b3f33aa25cc667e4 # Parent 16434925a1cf7e0e79fdc85b269fede0dd235942 compress: remove unused variables
diff -r 16434925a1cf -r 35c47ea3b228 source/encoder/compress.cpp --- a/source/encoder/compress.cpp Mon Dec 16 14:17:14 2013 +0530 +++ b/source/encoder/compress.cpp Mon Dec 16 16:29:18 2013 +0530 @@ -337,9 +337,7 @@ m_origYuv[depth]->copyFromPicYuv(pic->getPicYuvOrg(), outTempCU->getAddr(), outTempCU->getZorderIdxInCU()); // variables for fast encoder decision - bool bTrySplit = true; bool bSubBranch = true; - bool bTrySplitDQP = true; bool bBoundary = false; uint32_t lpelx = outTempCU->getCUPelX(); uint32_t rpelx = lpelx + outTempCU->getWidth(0) - 1; @@ -395,9 +393,6 @@ { if (!bSliceEnd && bInsidePicture) { - // variables for fast encoder decision - bTrySplit = true; - /* Initialise all Mode-CUs based on parentCU */ if (depth == 0) { @@ -434,14 +429,6 @@ m_bestPredYuv[depth] = tempYuv; } - bTrySplitDQP = bTrySplit; - - if ((int)depth <= m_addSADDepth) - { - m_LCUPredictionSAD += m_temporalSAD; - m_addSADDepth = depth; - } - /*Compute Rect costs*/ if (m_cfg->param.bEnableRectInter) { @@ -652,12 +639,11 @@ else if (!(bSliceEnd && bInsidePicture)) { bBoundary = true; - m_addSADDepth++; } } // further split - if (bSubBranch && bTrySplitDQP && depth < g_maxCUDepth - g_addCUDepth) + if (bSubBranch && depth < g_maxCUDepth - g_addCUDepth) { #if EARLY_EXIT // turn ON this to enable early exit // early exit when the RD cost of best mode at depth n is less than the sum of avgerage of RD cost of the neighbour @@ -668,9 +654,8 @@ if (outBestCU != 0) #endif { - uint64_t totalCostNeigh = 0, totalCostCU = 0, totalCountCU = 0; + uint64_t totalCostNeigh = 0, totalCostCU = 0, totalCountNeigh = 0, totalCountCU = 0; double avgCost = 0; - uint64_t totalCountNeigh = 0; TComDataCU* above = outTempCU->getCUAbove(); TComDataCU* aboveLeft = outTempCU->getCUAboveLeft(); TComDataCU* aboveRight = outTempCU->getCUAboveRight(); _______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel