ref: 7d29cecc0e9736e6c2ce698f08c50aa648f12b4f
parent: 21197abe96e29cab30722a0d6652c56e7eb4579c
author: orbitcowboy <ettl.martin78@gmail.com>
date: Fri Jan 31 18:13:21 EST 2014
cleanup variable initializations.
--- a/codec/processing/src/downsample/downsample.cpp
+++ b/codec/processing/src/downsample/downsample.cpp
@@ -94,9 +94,7 @@
if ((iSrcWidthY >> 1) == iDstWidthY && (iSrcHeightY >> 1) == iDstHeightY) {
// use half average functions
- uint8_t iAlignIndex = 3;
-
- iAlignIndex = GetAlignedIndex (iSrcWidthY);
+ uint8_t iAlignIndex = GetAlignedIndex (iSrcWidthY);
m_pfDownsample.pfHalfAverage[iAlignIndex] ((uint8_t*)pDstPixMap->pPixel[0], pDstPixMap->iStride[0],
(uint8_t*)pSrcPixMap->pPixel[0], pSrcPixMap->iStride[0], iSrcWidthY, iSrcHeightY);
@@ -119,7 +117,7 @@
}
int32_t CDownsampling::GetAlignedIndex (const int32_t kiSrcWidth) {
- int32_t iAlignIndex = 3;
+ int32_t iAlignIndex;
if ((kiSrcWidth & 0x1f) == 0) // x32
iAlignIndex = 0;
else if ((kiSrcWidth & 0x0f) == 0) // x16