ref: 60cbb7758377b36eaeee5e354622456a3f5b0c99
parent: c6356ca8fc3aa0486aa76dbffc000efa4601a1da
parent: 7c0ca2fc143176e7d0f488973cce4c3c7e7deb15
author: HaiboZhu <[email protected]>
date: Tue Jun 21 06:11:44 EDT 2016
Merge pull request #2500 from ruil2/downsampling use average downsampling fistly then general downsampling
--- a/codec/processing/src/downsample/downsample.cpp
+++ b/codec/processing/src/downsample/downsample.cpp
@@ -220,7 +220,7 @@
DownsampleHalfAverage ((uint8_t*)pDstPixMap->pPixel[2], pDstPixMap->iStride[2],
(uint8_t*)pSrcV, iSrcStrideV, iSrcWidthUV, iSrcHeightUV);
break;
- } else if (((iHalfSrcWidth >> 1) >= iDstWidthY) && ((iHalfSrcHeight >> 1) >= iDstHeightY)) {
+ } else if ((iHalfSrcWidth > iDstWidthY) && (iHalfSrcHeight > iDstHeightY)){
// use half average functions
iDstStrideY = WELS_ALIGN (iHalfSrcWidth, 32);
iDstStrideU = WELS_ALIGN (iHalfSrcWidth >> 1, 32);