[x265] [PATCH] Cleanup xGetCodedLevel function

praveen at multicorewareinc.com praveen at multicorewareinc.com
Wed Jul 10 13:31:02 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373455851 -19800
# Node ID 3e92805911311f8bfbe153b6e9d681af601915b0
# Parent  488aa6a107326831c0939e070d830900b85a1854
Cleanup xGetCodedLevel function

diff -r 488aa6a10732 -r 3e9280591131 source/Lib/TLibCommon/TComTrQuant.cpp
--- a/source/Lib/TLibCommon/TComTrQuant.cpp	Wed Jul 10 16:37:06 2013 +0530
+++ b/source/Lib/TLibCommon/TComTrQuant.cpp	Wed Jul 10 17:00:51 2013 +0530
@@ -1339,12 +1339,12 @@
                                           UInt    c2Idx,
                                           Int     qbits,
                                           Double  scaleFactor,
-                                          Bool    bLast) const
+                                          Bool    last) const
 {
     Double curCostSig   = 0;
     UInt   bestAbsLevel = 0;
 
-    if (!bLast && maxAbsLevel < 3)
+    if (!last && maxAbsLevel < 3)
     {
         codedCostSig = xGetRateSigCoef(0, ctxNumSig);
         codedCost    = codedCost0 + codedCostSig;
@@ -1358,7 +1358,7 @@
         codedCost = MAX_DOUBLE;
     }
 
-    if (!bLast)
+    if (!last)
     {
         curCostSig = xGetRateSigCoef(1, ctxNumSig);
     }


More information about the x265-devel mailing list