[x265] [PATCH] TComRdCost::xGetSSE8 cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 12 12:19:32 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373624360 -19800
# Node ID f2acc33495c34022a5df500b98e18566939df560
# Parent  df8c405f55de9c99a9d647db65170714e7cea990
TComRdCost::xGetSSE8 cleanup

diff -r df8c405f55de -r f2acc33495c3 source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 15:36:30 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp	Fri Jul 12 15:49:20 2013 +0530
@@ -858,44 +858,44 @@
     return sum;
 }
 
-UInt TComRdCost::xGetSSE8(DistParam* pcDtParam)
+UInt TComRdCost::xGetSSE8(DistParam* distParam)
 {
-    if (pcDtParam->applyWeight)
+    if (distParam->applyWeight)
     {
-        assert(pcDtParam->cols == 8);
-        return xGetSSEw(pcDtParam);
+        assert(distParam->cols == 8);
+        return xGetSSEw(distParam);
     }
 
-    Pel* piOrg   = pcDtParam->fenc;
-    Pel* piCur   = pcDtParam->fref;
-    Int  iRows   = pcDtParam->rows;
-    Int  iStrideOrg = pcDtParam->fencstride;
-    Int  iStrideCur = pcDtParam->frefstride;
-    UInt uiSum = 0;
-    UInt uiShift = DISTORTION_PRECISION_ADJUSTMENT((pcDtParam->bitDepth - 8) << 1);
+    Pel* org = distParam->fenc;
+    Pel* cur = distParam->fref;
+    Int  rows = distParam->rows;
+    Int  strideOrg = distParam->fencstride;
+    Int  strideCur = distParam->frefstride;
+    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 = xGetSSE8Help<Pel, Pel>(piOrg, iStrideOrg, piCur, iStrideCur, iRows, uiShift);
+        sum = xGetSSE8Help<Pel, Pel>(org, strideOrg, cur, strideCur, rows, 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 = xGetSSE8Help<Short, Short>(piOrg_s, iStrideOrg, piCur_s, iStrideCur, iRows, uiShift);
+            sum = xGetSSE8Help<Short, Short>(org_s, strideOrg, cur_s, strideCur, rows, shift);
         }
         else
         {
-            uiSum = xGetSSE8Help<Short, Pel>(piOrg_s, iStrideOrg, piCur, iStrideCur, iRows, uiShift);
+            sum = xGetSSE8Help<Short, Pel>(org_s, strideOrg, cur, strideCur, rows, shift);
         }
     }
-    return uiSum;
+    return sum;
 }
 
 template<typename T1, typename T2>


More information about the x265-devel mailing list