History

[Processing] Clear LSB before rounding up dyadic downsample width

Sindre Aamås committed 10 years ago

Commit 68a59101 parent 8a0af4a1 file · +2 −2Browse files

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

Unified · Split

codec/processing/src/downsample/downsample.cpp+2−2
@@ -275,12 +275,12 @@ void CDownsampling::DownsampleHalfAverage (uint8_t* pDst, int32_t iDstStride, · 274 unmodified lines
275 if ((iSrcStride & 31) == 0) {275 if ((iSrcStride & 31) == 0) {
276 assert ((iDstStride & 15) == 0);276 assert ((iDstStride & 15) == 0);
277 m_pfDownsample.pfHalfAverageWidthx32 (pDst, iDstStride,277 m_pfDownsample.pfHalfAverageWidthx32 (pDst, iDstStride,
278 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth, 32), iSrcHeight);278 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 32), iSrcHeight);
279 } else {279 } else {
280 assert ((iSrcStride & 15) == 0);280 assert ((iSrcStride & 15) == 0);
281 assert ((iDstStride & 7) == 0);281 assert ((iDstStride & 7) == 0);
282 m_pfDownsample.pfHalfAverageWidthx16 (pDst, iDstStride,282 m_pfDownsample.pfHalfAverageWidthx16 (pDst, iDstStride,
283 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth, 16), iSrcHeight);283 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 16), iSrcHeight);
284 }284 }
285}285}
286 286

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