[x265] [PATCH] TComRdCost::xGetSSE16 cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 12 12:32:44 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373625154 -19800
# Node ID 7328c8e6cbec54a5a6deff2e4ad3dd8bc5973176
# Parent eef4ea41edadb046aaeff7ed812b450896259d89
TComRdCost::xGetSSE16 cleanup
diff -r eef4ea41edad -r 7328c8e6cbec source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 15:56:07 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 16:02:34 2013 +0530
@@ -946,44 +946,44 @@
return sum;
}
-UInt TComRdCost::xGetSSE16(DistParam* pcDtParam)
+UInt TComRdCost::xGetSSE16(DistParam* distParam)
{
- if (pcDtParam->applyWeight)
+ if (distParam->applyWeight)
{
- assert(pcDtParam->cols == 16);
- return xGetSSEw(pcDtParam);
+ assert(distParam->cols == 16);
+ 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 = xGetSSE16Help<Pel, Pel>(piOrg, iStrideOrg, piCur, iStrideCur, iRows, uiShift);
+ sum = xGetSSE16Help<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 = xGetSSE16Help<Short, Short>(piOrg_s, iStrideOrg, piCur_s, iStrideCur, iRows, uiShift);
+ sum = xGetSSE16Help<Short, Short>(org_s, strideOrg, cur_s, strideCur, rows, shift);
}
else
{
- uiSum = xGetSSE16Help<Short, Pel>(piOrg_s, iStrideOrg, piCur, iStrideCur, iRows, uiShift);
+ sum = xGetSSE16Help<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