[x265] [PATCH] xGetSSEHelp cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 12 11:38:22 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373621894 -19800
# Node ID 14388ae1d634bfb861a22c9641d27ee62290a9f7
# Parent 6e4ba8e6e145531b80faeaf06d75c7bc51dc02e0
xGetSSEHelp cleanup
diff -r 6e4ba8e6e145 -r 14388ae1d634 source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 14:59:28 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 15:08:14 2013 +0530
@@ -702,24 +702,24 @@
// --------------------------------------------------------------------------------------------------------------------
template<typename T1, typename T2>
-UInt xGetSSEHelp(T1* piOrg, Int iStrideOrg, T2* piCur, Int iStrideCur, Int iRows, Int iCols, UInt uiShift)
+UInt xGetSSEHelp(T1* org, Int strideOrg, T2* cur, Int strideCur, Int rows, Int cols, UInt shift)
{
- UInt uiSum = 0;
- Int iTemp;
+ UInt sum = 0;
+ Int temp;
- for (; iRows != 0; iRows--)
+ for (; rows != 0; rows--)
{
- for (Int n = 0; n < iCols; n++)
+ for (Int n = 0; n < cols; n++)
{
- iTemp = piOrg[n] - piCur[n];
- uiSum += (iTemp * iTemp) >> uiShift;
+ temp = org[n] - cur[n];
+ sum += (temp * temp) >> shift;
}
- piOrg += iStrideOrg;
- piCur += iStrideCur;
+ org += strideOrg;
+ cur += strideCur;
}
- return uiSum;
+ return sum;
}
UInt TComRdCost::xGetSSE(DistParam* pcDtParam)
More information about the x265-devel
mailing list