[x265] [PATCH] Cleanup xIT function

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jul 9 11:31:36 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373362285 -19800
# Node ID a465a4c9817d8def77427dcc10b60724b8f6f677
# Parent  b719294b67eb39e9ea1e8bea2139e293140c8c37
Cleanup xIT function

diff -r b719294b67eb -r a465a4c9817d source/Lib/TLibCommon/TComTrQuant.cpp
--- a/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jul 09 14:45:25 2013 +0530
+++ b/source/Lib/TLibCommon/TComTrQuant.cpp	Tue Jul 09 15:01:25 2013 +0530
@@ -1070,14 +1070,14 @@
  *  \param iSize transform size (iSize x iSize)
  *  \param uiMode is Intra Prediction mode used in Mode-Dependent DCT/DST only
  */
-Void TComTrQuant::xIT(Int bitDepth, UInt uiMode, Int* plCoef, Short* pResidual, UInt uiStride, Int iWidth, Int iHeight)
+Void TComTrQuant::xIT(Int bitDepth, UInt mode, Int* coef, Short* residual, UInt stride, Int width, Int height)
 {
     // ChECK_ME: I assume we don't use HIGH_BIT_DEPTH here
     assert(bitDepth == 8);
 
-    //xITrMxN(bitDepth, coeff, block, iWidth, iHeight, uiMode);
-    const UInt uiLog2BlockSize = g_aucConvertToBit[iWidth];
-    x265::primitives.idct[x265::IDCT_4x4 + uiLog2BlockSize - ((iWidth == 4) && (uiMode != REG_DCT))](plCoef, pResidual, uiStride);
+    //xITrMxN(bitDepth, coeff, block, width, height, mode);
+    const UInt log2BlockSize = g_aucConvertToBit[width];
+    x265::primitives.idct[x265::IDCT_4x4 + log2BlockSize - ((width == 4) && (mode != REG_DCT))](coef, residual, stride);
 }
 
 /** Wrapper function between HM interface and core 4x4 transform skipping


More information about the x265-devel mailing list