diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-06 01:29:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-06 01:30:08 +0100 |
commit | e827f65618f601ae2016e6f8ac8851534ed346c8 (patch) | |
tree | a593205f1c9b6de0e9468f3c237d86d230301c7d /libswscale | |
parent | 95482092b1e57987e079cd94b06e875f4d19d762 (diff) | |
parent | 33c827f632f95ffe3399b695a5a0d47b366b6e20 (diff) | |
download | ffmpeg-streaming-e827f65618f601ae2016e6f8ac8851534ed346c8.zip ffmpeg-streaming-e827f65618f601ae2016e6f8ac8851534ed346c8.tar.gz |
Merge commit '33c827f632f95ffe3399b695a5a0d47b366b6e20'
* commit '33c827f632f95ffe3399b695a5a0d47b366b6e20':
swscale: Properly scale YUV
Conflicts:
libswscale/swscale_unscaled.c
tests/ref/fate/filter-pixdesc-yuv420p10be
tests/ref/fate/filter-pixdesc-yuv420p10le
tests/ref/fate/filter-pixdesc-yuv420p9be
tests/ref/fate/filter-pixdesc-yuv420p9le
tests/ref/fate/filter-pixdesc-yuva420p10be
tests/ref/fate/filter-pixdesc-yuva420p10le
tests/ref/fate/filter-pixdesc-yuva420p9be
tests/ref/fate/filter-pixdesc-yuva420p9le
tests/ref/fate/filter-pixfmts-copy
tests/ref/fate/filter-pixfmts-null
tests/ref/fate/filter-pixfmts-scale
tests/ref/fate/filter-pixfmts-vflip
See: abe0b8e9f378a0f8781c1a3da6714d20cfd19594
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale_unscaled.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index da457df..59e6692 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -1402,7 +1402,7 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], int height = (plane == 0 || plane == 3) ? srcSliceH: FF_CEIL_RSHIFT(srcSliceH, c->chrDstVSubSample); const uint8_t *srcPtr = src[plane]; uint8_t *dstPtr = dst[plane] + dstStride[plane] * y; - int shiftonly= plane==1 || plane==2 || (!c->srcRange && plane==0); + int shiftonly = plane == 1 || plane == 2 || (!c->srcRange && plane == 0); if (!dst[plane]) continue; @@ -1435,10 +1435,10 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], } else if (src_depth == 8) { for (i = 0; i < height; i++) { #define COPY816(w)\ - if(shiftonly){\ + if (shiftonly) {\ for (j = 0; j < length; j++)\ w(&dstPtr2[j], srcPtr[j]<<(dst_depth-8));\ - }else{\ + } else {\ for (j = 0; j < length; j++)\ w(&dstPtr2[j], (srcPtr[j]<<(dst_depth-8)) |\ (srcPtr[j]>>(2*8-dst_depth)));\ |