[x265] [PATCH] Cleanup xTransformSkip function

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jul 9 11:43:47 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373363016 -19800
# Node ID ac3db95e6f384f1a5f4c0349dd41a0dcf9f3e287
# Parent  a465a4c9817d8def77427dcc10b60724b8f6f677
Cleanup xTransformSkip function

diff -r a465a4c9817d -r ac3db95e6f38 source/Lib/TLibCommon/TComTrQuant.cpp
--- a/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jul 09 15:01:25 2013 +0530
+++ b/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jul 09 15:13:36 2013 +0530
@@ -1086,16 +1086,16 @@
  *  \param uiStride stride of input residual data
  *  \param iSize transform size (iSize x iSize)
  */
-Void TComTrQuant::xTransformSkip(Int bitDepth, Short* piBlkResi, UInt uiStride, Int* psCoeff, Int width, Int height)
+Void TComTrQuant::xTransformSkip(Int bitDepth, Short* blkResi, UInt stride, Int* coeff, Int width, Int height)
 {
     assert(width == height);
-    UInt uiLog2TrSize = g_aucConvertToBit[width] + 2;
-    Int  shift = MAX_TR_DYNAMIC_RANGE - bitDepth - uiLog2TrSize;
+    UInt log2TrSize = g_aucConvertToBit[width] + 2;
+    Int  shift = MAX_TR_DYNAMIC_RANGE - bitDepth - log2TrSize;
     UInt transformSkipShift;
     Int  j, k;
     if (shift >= 0)
     {
-        x265::primitives.cvt16to32_shl(psCoeff, piBlkResi, uiStride, shift, width);
+        x265::primitives.cvt16to32_shl(coeff, blkResi, stride, shift, width);
     }
     else
     {
@@ -1107,7 +1107,7 @@
         {
             for (k = 0; k < width; k++)
             {
-                psCoeff[j * height + k] = (piBlkResi[j * uiStride + k] + offset) >> transformSkipShift;
+                coeff[j * height + k] = (blkResi[j * stride + k] + offset) >> transformSkipShift;
             }
         }
     }


More information about the x265-devel mailing list