mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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: abe0b8e9f3
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e827f65618
@ -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)));\
|
||||
|
Loading…
Reference in New Issue
Block a user