mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-04 11:38:19 +00:00
libswscale: force a minimum size of the slide for bayer sources
Bayer sources are read in groups of 2 lines (e.g. for a BGGR flavor, the first row contains only B and G samples, while the second row contains only G and R samples). They need to be read as a whole. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
fc6f7e2a3b
commit
bf64a75c5a
@ -2095,6 +2095,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
|||||||
c->convert_unscaled = rgbToPlanarRgbWrapper;
|
c->convert_unscaled = rgbToPlanarRgbWrapper;
|
||||||
|
|
||||||
if (isBayer(srcFormat)) {
|
if (isBayer(srcFormat)) {
|
||||||
|
c->dst_slice_align = 2;
|
||||||
if (dstFormat == AV_PIX_FMT_RGB24)
|
if (dstFormat == AV_PIX_FMT_RGB24)
|
||||||
c->convert_unscaled = bayer_to_rgb24_wrapper;
|
c->convert_unscaled = bayer_to_rgb24_wrapper;
|
||||||
else if (dstFormat == AV_PIX_FMT_RGB48)
|
else if (dstFormat == AV_PIX_FMT_RGB48)
|
||||||
|
Loading…
Reference in New Issue
Block a user