[x265] [PATCH] quant.cpp, cleaned redundant code

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Sep 2 16:09:39 CEST 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1408959203 -19800
# Node ID 7589725c09db0ba0d130916304625f17ba48db00
# Parent  babeba30ab42c98b5ec124dc5e04567e9a4aa775
quant.cpp, cleaned redundant code

diff -r babeba30ab42 -r 7589725c09db source/common/quant.cpp
--- a/source/common/quant.cpp	Tue Sep 02 11:38:07 2014 +0530
+++ b/source/common/quant.cpp	Mon Aug 25 15:03:23 2014 +0530
@@ -450,14 +450,6 @@
         const uint32_t sizeIdx = log2TrSize - 2;
         int useDST = !sizeIdx && ttype == TEXT_LUMA && bIntra;
 
-        int numCoeff = (1 << (log2TrSize * 2));
-        assert(numCoeff <= 1024);
-        ALIGN_VAR_16(int16_t, qCoeff[1024]);
-        for (int i = 0; i < numCoeff; i++)
-        {
-            qCoeff[i] = (int16_t)Clip3(-32768, 32767, coeff[i]);
-        }
-
         X265_CHECK((int)numSig == primitives.count_nonzero(qCoeff, 1 << log2TrSize * 2), "numSig differ\n");
 
         // DC only


More information about the x265-devel mailing list