History

cleanup variable initializations.

orbitcowboy committed 12 years ago

Commit 7d29cec1 parent 21197ab1 file · +2 −4Browse files

Showing the changes to codec/processing/src (1 of 1 file). Show all

Unified · Split

codec/processing/src/downsample/downsample.cpp+2−4
@@ -94,9 +94,7 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 93 unmodified lines
9494
9595 if ((iSrcWidthY >> 1) == iDstWidthY && (iSrcHeightY >> 1) == iDstHeightY) {
9696 // use half average functions
97− uint8_t iAlignIndex = 3;
98−
99− iAlignIndex = GetAlignedIndex (iSrcWidthY);
97+ uint8_t iAlignIndex = GetAlignedIndex (iSrcWidthY);
10098 m_pfDownsample.pfHalfAverage[iAlignIndex] ((uint8_t*)pDstPixMap->pPixel[0], pDstPixMap->iStride[0],
10199 (uint8_t*)pSrcPixMap->pPixel[0], pSrcPixMap->iStride[0], iSrcWidthY, iSrcHeightY);
102100
@@ -119,7 +117,7 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 16 unmodified lines
119117 }
120118
121119 int32_t CDownsampling::GetAlignedIndex (const int32_t kiSrcWidth) {
122− int32_t iAlignIndex = 3;
120+ int32_t iAlignIndex;
123121 if ((kiSrcWidth & 0x1f) == 0) // x32
124122 iAlignIndex = 0;
125123 else if ((kiSrcWidth & 0x0f) == 0) // x16

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t