summaryrefslogtreecommitdiff
path: root/libswscale/swscale_unscaled.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-24 13:11:34 +0200
committerAnton Khirnov <anton@khirnov.net>2021-09-06 09:16:52 +0200
commit42cd64c1826d74ce523eb07c7f0910e8f0ade084 (patch)
treea08bc88dbab45f1ac1f27b393eef3f321937e37b /libswscale/swscale_unscaled.c
parent3c659f861856d751fe3aa1358b1cccff3117f948 (diff)
downloadffmpeg-42cd64c1826d74ce523eb07c7f0910e8f0ade084.tar.gz
sws: add a new scaling API
Diffstat (limited to 'libswscale/swscale_unscaled.c')
-rw-r--r--libswscale/swscale_unscaled.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index c83af8bb07..7cb2a62f07 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2009,6 +2009,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
srcFormat == AV_PIX_FMT_YUVA420P) && isAnyRGB(dstFormat) &&
!(flags & SWS_ACCURATE_RND) && (c->dither == SWS_DITHER_BAYER || c->dither == SWS_DITHER_AUTO) && !(dstH & 1)) {
c->convert_unscaled = ff_yuv2rgb_get_func_ptr(c);
+ c->dst_slice_align = 2;
}
/* yuv420p1x_to_p01x */
if ((srcFormat == AV_PIX_FMT_YUV420P10 || srcFormat == AV_PIX_FMT_YUVA420P10 ||
@@ -2028,6 +2029,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
(dstFormat == AV_PIX_FMT_YUV420P || dstFormat == AV_PIX_FMT_YUVA420P) &&
!(flags & SWS_BITEXACT)) {
c->convert_unscaled = yvu9ToYv12Wrapper;
+ c->dst_slice_align = 4;
}
/* bgr24toYV12 */