<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 1:25 AM,  <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User praveentiwari<br>
# Date 1373610300 -19800<br>
# Node ID f44c7225d49acc5d3421e4312e24f7618fdeb155<br>
# Parent  e4eafcb35d23cd00f049b3e6ed72e9b313427213<br>
TComRdCost::setDistParam overloaded version clenup<br></blockquote><div><br></div><div>pushed with the other commits</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

diff -r e4eafcb35d23 -r f44c7225d49a source/Lib/TLibCommon/TComRdCost.cpp<br>
--- a/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 11:14:06 2013 +0530<br>
+++ b/source/Lib/TLibCommon/TComRdCost.cpp      Fri Jul 12 11:55:00 2013 +0530<br>
@@ -148,47 +148,47 @@<br>
 }<br>
<br>
 // Setting the Distortion Parameter for Inter (subpel ME with step)<br>
-Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* piRefY, Int iRefStride, Int iStep, DistParam& rcDistParam, Bool bHADME)<br>
+Void TComRdCost::setDistParam(TComPattern* patternKey, Pel* refY, Int refStride, Int step, DistParam& distParam, Bool hadMe)<br>
 {<br>
     // set Original & Curr Pointer / Stride<br>
-    rcDistParam.fenc = patternKey->getROIY();<br>
-    rcDistParam.fref = piRefY;<br>
+    distParam.fenc = patternKey->getROIY();<br>
+    distParam.fref = refY;<br>
<br>
-    rcDistParam.fencstride = patternKey->getPatternLStride();<br>
-    rcDistParam.frefstride = iRefStride * iStep;<br>
+    distParam.fencstride = patternKey->getPatternLStride();<br>
+    distParam.frefstride = refStride * step;<br>
<br>
     // set Step for interpolated buffer<br>
-    rcDistParam.step = iStep;<br>
+    distParam.step = step;<br>
<br>
     // set Block Width / Height<br>
-    rcDistParam.cols    = patternKey->getROIYWidth();<br>
-    rcDistParam.rows    = patternKey->getROIYHeight();<br>
+    distParam.cols = patternKey->getROIYWidth();<br>
+    distParam.rows = patternKey->getROIYHeight();<br>
<br>
     // set distortion function<br>
-    if (!bHADME)<br>
+    if (!hadMe)<br>
     {<br>
-        rcDistParam.distFunc = m_distortionFunctions[DF_SADS + g_convertToBit[rcDistParam.cols] + 1];<br>
+        distParam.distFunc = m_distortionFunctions[DF_SADS + g_convertToBit[distParam.cols] + 1];<br>
<br>
-        if (rcDistParam.cols == 12)<br>
+        if (distParam.cols == 12)<br>
         {<br>
-            rcDistParam.distFunc = m_distortionFunctions[46];<br>
+            distParam.distFunc = m_distortionFunctions[46];<br>
         }<br>
-        else if (rcDistParam.cols == 24)<br>
+        else if (distParam.cols == 24)<br>
         {<br>
-            rcDistParam.distFunc = m_distortionFunctions[47];<br>
+            distParam.distFunc = m_distortionFunctions[47];<br>
         }<br>
-        else if (rcDistParam.cols == 48)<br>
+        else if (distParam.cols == 48)<br>
         {<br>
-            rcDistParam.distFunc = m_distortionFunctions[48];<br>
+            distParam.distFunc = m_distortionFunctions[48];<br>
         }<br>
     }<br>
     else<br>
     {<br>
-        rcDistParam.distFunc = m_distortionFunctions[DF_HADS + g_convertToBit[rcDistParam.cols] + 1];<br>
+        distParam.distFunc = m_distortionFunctions[DF_HADS + g_convertToBit[distParam.cols] + 1];<br>
     }<br>
<br>
     // initialize<br>
-    rcDistParam.subShift  = 0;<br>
+    distParam.subShift = 0;<br>
 }<br>
<br>
 // ====================================================================================================================<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x265-devel" target="_blank">http://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>