Showing the changes to codec/processing/src (1 of 1 file). Show all
Unified · Split
| @@ -220,7 +220,7 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 219 unmodified lines | |||
| 220 | DownsampleHalfAverage ((uint8_t*)pDstPixMap->pPixel[2], pDstPixMap->iStride[2], | 220 | DownsampleHalfAverage ((uint8_t*)pDstPixMap->pPixel[2], pDstPixMap->iStride[2], |
| 221 | (uint8_t*)pSrcV, iSrcStrideV, iSrcWidthUV, iSrcHeightUV); | 221 | (uint8_t*)pSrcV, iSrcStrideV, iSrcWidthUV, iSrcHeightUV); |
| 222 | break; | 222 | break; |
| 223 | } else if (((iHalfSrcWidth >> 1) >= iDstWidthY) && ((iHalfSrcHeight >> 1) >= iDstHeightY)) { | 223 | } else if ((iHalfSrcWidth > iDstWidthY) && (iHalfSrcHeight > iDstHeightY)){ |
| 224 | // use half average functions | 224 | // use half average functions |
| 225 | iDstStrideY = WELS_ALIGN (iHalfSrcWidth, 32); | 225 | iDstStrideY = WELS_ALIGN (iHalfSrcWidth, 32); |
| 226 | iDstStrideU = WELS_ALIGN (iHalfSrcWidth >> 1, 32); | 226 | iDstStrideU = WELS_ALIGN (iHalfSrcWidth >> 1, 32); |