[FFmpeg-cvslog] swscale/swscale_unscaled: Actually use X2->RGBA64 conversions
Andreas Rheinhardt
git at videolan.org
Mon Mar 31 22:53:49 EEST 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Mar 31 17:01:51 2025 +0200| [4da84d5c2b2b0cd415ef4c514f716784654cee54] | committer: Andreas Rheinhardt
swscale/swscale_unscaled: Actually use X2->RGBA64 conversions
The conversion functions were added in
e7382b4d0101f02e61fdf5ad2c48aca500bb413f, yet they were never
really enabled. Found via -ffunction-sections and --gc-sections.
Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4da84d5c2b2b0cd415ef4c514f716784654cee54
---
libswscale/swscale_unscaled.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 4959963b18..b84120549e 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -1901,7 +1901,8 @@ static rgbConvFn findRgbConvFn(SwsInternal *c)
else if (CONV_IS(X2RGB10LE, BGR48BE)
|| CONV_IS(X2BGR10LE, RGB48BE)) conv = HAVE_BIGENDIAN ? x2rgb10tobgr48_nobswap
: x2rgb10tobgr48_bswap;
- else if (CONV_IS(X2RGB10LE, RGBA64LE)
+ } else if (isX2RGB(srcFormat) && isRGBA64(dstFormat)) {
+ if (CONV_IS(X2RGB10LE, RGBA64LE)
|| CONV_IS(X2BGR10LE, BGRA64LE)) conv = HAVE_BIGENDIAN ? x2rgb10to64_bswap
: x2rgb10to64_nobswap;
else if (CONV_IS(X2RGB10LE, RGBA64BE)
More information about the ffmpeg-cvslog
mailing list