[x265] [PATCH] TComRdCost::setDistParam cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 12 07:39:42 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373607573 -19800
# Node ID b518fa481bd4eef520dfa7d5f898ef32c753c88f
# Parent  0efb77a7ccf599a73013cc7298625d1ff429f679
TComRdCost::setDistParam cleanup

diff -r 0efb77a7ccf5 -r b518fa481bd4 source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 10:44:04 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 11:09:33 2013 +0530
@@ -116,35 +116,35 @@
 }
 
 // Setting the Distortion Parameter for Inter (ME)
-Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* piRefY, Int iRefStride, DistParam& rcDistParam)
+Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* refY, Int refStride, DistParam& distParam)
 {
     // set Original & Curr Pointer / Stride
-    rcDistParam.fenc = patternKey->getROIY();
-    rcDistParam.fref = piRefY;
+    distParam.fenc = patternKey->getROIY();
+    distParam.fref = refY;
 
-    rcDistParam.fencstride = patternKey->getPatternLStride();
-    rcDistParam.frefstride = iRefStride;
+    distParam.fencstride = patternKey->getPatternLStride();
+    distParam.frefstride = refStride;
 
     // set Block Width / Height
-    rcDistParam.cols    = patternKey->getROIYWidth();
-    rcDistParam.rows    = patternKey->getROIYHeight();
-    rcDistParam.distFunc = m_distortionFunctions[DF_SAD + g_convertToBit[rcDistParam.cols] + 1];
+    distParam.cols    = patternKey->getROIYWidth();
+    distParam.rows    = patternKey->getROIYHeight();
+    distParam.distFunc = m_distortionFunctions[DF_SAD + g_convertToBit[distParam.cols] + 1];
 
-    if (rcDistParam.cols == 12)
+    if (distParam.cols == 12)
     {
-        rcDistParam.distFunc = m_distortionFunctions[43];
+        distParam.distFunc = m_distortionFunctions[43];
     }
-    else if (rcDistParam.cols == 24)
+    else if (distParam.cols == 24)
     {
-        rcDistParam.distFunc = m_distortionFunctions[44];
+        distParam.distFunc = m_distortionFunctions[44];
     }
-    else if (rcDistParam.cols == 48)
+    else if (distParam.cols == 48)
     {
-        rcDistParam.distFunc = m_distortionFunctions[45];
+        distParam.distFunc = m_distortionFunctions[45];
     }
 
     // initialize
-    rcDistParam.subShift  = 0;
+    distParam.subShift  = 0;
 }
 
 // Setting the Distortion Parameter for Inter (subpel ME with step)


More information about the x265-devel mailing list