[vlc-devel] commit: XCB-X11: use RGBA so we warranty the alpha channel is 0xff ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Nov 15 20:43:02 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 15 21:39:47 2009 +0200| [2f5e98e22b4b3ffa87c97846ec51d3654839a4cc] | committer: Rémi Denis-Courmont 

XCB-X11: use RGBA so we warranty the alpha channel is 0xff

N.B.: it seems swscale does not follow the RGB masks properly;
red and blue are swapped.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f5e98e22b4b3ffa87c97846ec51d3654839a4cc
---

 modules/video_output/xcb/x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index d949766..997c62b 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -193,7 +193,7 @@ static int Open (vlc_object_t *obj)
           case 32:
             if (fmt->bits_per_pixel != 32)
                 continue;
-            fmt_pic.i_chroma = VLC_CODEC_RGB32; /* ARGB, we ignore alpha */
+            fmt_pic.i_chroma = VLC_CODEC_RGBA;
             break;
           case 24:
             if (fmt->bits_per_pixel == 32)




More information about the vlc-devel mailing list