This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 7ab5aebc088a26591f4688a31b735b08923aa112
Author:     DROOdotFOO <[email protected]>
AuthorDate: Tue Jun 9 01:34:59 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Wed Jun 10 17:54:20 2026 +0000

    swscale/yuv2rgb: add explicit BE/LE 565/555 cases
    
    ff_yuv2rgb_get_func_ptr() now returns the C reference for explicit
    BE/LE 16bpp formats, not only the NE alias.
    
    Signed-off-by: DROOdotFOO <[email protected]>
---
 libswscale/yuv2rgb.c | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 428f5e59ee..a430a110db 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -599,11 +599,15 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsInternal *c)
             return yuv422p_rgb24_c;
         case AV_PIX_FMT_BGR24:
             return yuv422p_bgr24_c;
-        case AV_PIX_FMT_RGB565:
-        case AV_PIX_FMT_BGR565:
+        case AV_PIX_FMT_RGB565BE:
+        case AV_PIX_FMT_BGR565BE:
+        case AV_PIX_FMT_RGB565LE:
+        case AV_PIX_FMT_BGR565LE:
             return yuv422p_bgr16;
-        case AV_PIX_FMT_RGB555:
-        case AV_PIX_FMT_BGR555:
+        case AV_PIX_FMT_RGB555BE:
+        case AV_PIX_FMT_BGR555BE:
+        case AV_PIX_FMT_RGB555LE:
+        case AV_PIX_FMT_BGR555LE:
             return yuv422p_bgr15;
         case AV_PIX_FMT_RGB444:
         case AV_PIX_FMT_BGR444:
@@ -642,11 +646,15 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsInternal *c)
             return yuv2rgb_c_24_rgb;
         case AV_PIX_FMT_BGR24:
             return yuv2rgb_c_24_bgr;
-        case AV_PIX_FMT_RGB565:
-        case AV_PIX_FMT_BGR565:
+        case AV_PIX_FMT_RGB565BE:
+        case AV_PIX_FMT_BGR565BE:
+        case AV_PIX_FMT_RGB565LE:
+        case AV_PIX_FMT_BGR565LE:
             return yuv2rgb_c_16_ordered_dither;
-        case AV_PIX_FMT_RGB555:
-        case AV_PIX_FMT_BGR555:
+        case AV_PIX_FMT_RGB555BE:
+        case AV_PIX_FMT_BGR555BE:
+        case AV_PIX_FMT_RGB555LE:
+        case AV_PIX_FMT_BGR555LE:
             return yuv2rgb_c_15_ordered_dither;
         case AV_PIX_FMT_RGB444:
         case AV_PIX_FMT_BGR444:

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to