Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChema Gonzalez <chemag@gmail.com>2022-09-26 19:11:22 +0300
committerAnton Khirnov <anton@khirnov.net>2022-10-14 13:25:40 +0300
commita00072a9d5606a573cbd25611ac90e9df77837ea (patch)
treeecdff5337324a8845035d60ebd2245cc807fd232
parentddf3bedfb8160883fd9fdfd4082050d904f51755 (diff)
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> (cherry picked from commit bf64a75c5ae58ed575303f70b2ab9b2208ded339) Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libswscale/swscale_unscaled.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 7cb2a62f07..15b3632061 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2095,6 +2095,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
c->convert_unscaled = rgbToPlanarRgbWrapper;
if (isBayer(srcFormat)) {
+ c->dst_slice_align = 2;
if (dstFormat == AV_PIX_FMT_RGB24)
c->convert_unscaled = bayer_to_rgb24_wrapper;
else if (dstFormat == AV_PIX_FMT_RGB48)