[FFmpeg-cvslog] swscale/unscaled: allow semiplanar copies
Niklas Haas
git at videolan.org
Mon Dec 23 12:33:45 EET 2024
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Thu Dec 19 15:05:19 2024 +0100| [6c9218d748e06da019b6d15c37e5849d8a69bb07] | committer: Niklas Haas
swscale/unscaled: allow semiplanar copies
As fixed in the previous commit, this enables semipacked range and
bit depth conversions. Previously these would go through the general
purpose path.
Signed-off-by: Niklas Haas <git at haasn.dev>
Sponsored-by: Sovereign Tech Fund
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c9218d748e06da019b6d15c37e5849d8a69bb07
---
libswscale/swscale_unscaled.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index a4d18bf63e..907c1600c5 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -2588,7 +2588,7 @@ void ff_get_unscaled_swscale(SwsInternal *c)
(isPlanarYUV(srcFormat) && isPlanarYUV(dstFormat) &&
c->chrDstHSubSample == c->chrSrcHSubSample &&
c->chrDstVSubSample == c->chrSrcVSubSample &&
- !isSemiPlanarYUV(srcFormat) && !isSemiPlanarYUV(dstFormat))))
+ isSemiPlanarYUV(srcFormat) == isSemiPlanarYUV(dstFormat))))
{
if (isPacked(c->opts.src_format))
c->convert_unscaled = packedCopyWrapper;
More information about the ffmpeg-cvslog
mailing list