use average downsampling fistly then general downsampling when dst resolution > 1/4 source resolution and dst resolution <1/2 source resolution
This commit is contained in:
parent
6a86e37849
commit
7c0ca2fc14
@ -220,7 +220,7 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user