[x265] [PATCH] TComRdCost::xGetSSE16N cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 12 12:45:55 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373625946 -19800
# Node ID 7e2cf78016f38fd165306a053c5c5def50032ce0
# Parent  b225fa9e11dd53693e5b9d580f6eb1d2db2caf97
TComRdCost::xGetSSE16N cleanup

diff -r b225fa9e11dd -r 7e2cf78016f3 source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 16:07:44 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 16:15:46 2013 +0530
@@ -1037,44 +1037,44 @@
     return sum;
 }
 
-UInt TComRdCost::xGetSSE16N(DistParam* pcDtParam)
+UInt TComRdCost::xGetSSE16N(DistParam* distParam)
 {
-    if (pcDtParam->applyWeight)
+    if (distParam->applyWeight)
     {
-        return xGetSSEw(pcDtParam);
+        return xGetSSEw(distParam);
     }
-    Pel* piOrg   = pcDtParam->fenc;
-    Pel* piCur   = pcDtParam->fref;
-    Int  iRows   = pcDtParam->rows;
-    Int  iCols   = pcDtParam->cols;
-    Int  iStrideOrg = pcDtParam->fencstride;
-    Int  iStrideCur = pcDtParam->frefstride;
+    Pel* org = distParam->fenc;
+    Pel* cur = distParam->fref;
+    Int  rows = distParam->rows;
+    Int  cols = distParam->cols;
+    Int  strideOrg = distParam->fencstride;
+    Int  strideCur = distParam->frefstride;
 
-    UInt uiSum = 0;
-    UInt uiShift = DISTORTION_PRECISION_ADJUSTMENT((pcDtParam->bitDepth - 8) << 1);
+    UInt sum = 0;
+    UInt shift = DISTORTION_PRECISION_ADJUSTMENT((distParam->bitDepth - 8) << 1);
 
-    if ((sizeof(Pel) == 2) || ((piOrg != NULL) && (piCur != NULL)))
+    if ((sizeof(Pel) == 2) || ((org != NULL) && (cur != NULL)))
     {
-        uiSum = xGetSSE16NHelp<Pel, Pel>(piOrg, iStrideOrg, piCur, iStrideCur, iRows, iCols, uiShift);
+        sum = xGetSSE16NHelp<Pel, Pel>(org, strideOrg, cur, strideCur, rows, cols, shift);
     }
     else
     {
-        Short* piOrg_s;
-        Short* piCur_s;
-        DistParamSSE* DtParam = reinterpret_cast<DistParamSSE*>(pcDtParam);
-        piOrg_s = DtParam->ptr1;
-        piCur_s = DtParam->ptr2;
+        Short* org_s;
+        Short* cur_s;
+        DistParamSSE* dtParam = reinterpret_cast<DistParamSSE*>(distParam);
+        org_s = dtParam->ptr1;
+        cur_s = dtParam->ptr2;
 
-        if ((piOrg == NULL) && (piCur == NULL))
+        if ((org == NULL) && (cur == NULL))
         {
-            uiSum = xGetSSE16NHelp<Short, Short>(piOrg_s, iStrideOrg, piCur_s, iStrideCur, iRows, iCols, uiShift);
+            sum = xGetSSE16NHelp<Short, Short>(org_s, strideOrg, cur_s, strideCur, rows, cols, shift);
         }
         else
         {
-            uiSum = xGetSSE16NHelp<Short, Pel>(piOrg_s, iStrideOrg, piCur, iStrideCur, iRows, iCols, uiShift);
+            sum = xGetSSE16NHelp<Short, Pel>(org_s, strideOrg, cur, strideCur, rows, cols, shift);
         }
     }
-    return uiSum;
+    return sum;
 }
 
 template<typename T1, typename T2>


More information about the x265-devel mailing list