[MPlayer-cvslog] r30351 - trunk/fmt-conversion.c

reimar subversion at mplayerhq.hu
Sun Jan 17 15:40:44 CET 2010


Author: reimar
Date: Sun Jan 17 15:40:44 2010
New Revision: 30351

Log:
More format support in fmt-conversion.c: split RGB32 and BGR32
into ARGB, BGRA, ABGR, RGBA.

Modified:
   trunk/fmt-conversion.c

Modified: trunk/fmt-conversion.c
==============================================================================
--- trunk/fmt-conversion.c	Sun Jan 17 15:25:19 2010	(r30350)
+++ trunk/fmt-conversion.c	Sun Jan 17 15:40:44 2010	(r30351)
@@ -25,7 +25,8 @@ static const struct {
     int fmt;
     enum PixelFormat pix_fmt;
 } conversion_map[] = {
-    {IMGFMT_BGR32, PIX_FMT_RGB32},
+    {IMGFMT_ARGB, PIX_FMT_ARGB},
+    {IMGFMT_BGRA, PIX_FMT_BGRA},
     {IMGFMT_BGR24, PIX_FMT_BGR24},
     {IMGFMT_BGR16, PIX_FMT_RGB565},
     {IMGFMT_BGR15, PIX_FMT_RGB555},
@@ -37,7 +38,8 @@ static const struct {
     {IMGFMT_BG4B,  PIX_FMT_RGB4_BYTE},
     {IMGFMT_RGB48LE, PIX_FMT_RGB48LE},
     {IMGFMT_RGB48BE, PIX_FMT_RGB48BE},
-    {IMGFMT_RGB32, PIX_FMT_BGR32},
+    {IMGFMT_ABGR, PIX_FMT_ABGR},
+    {IMGFMT_RGBA, PIX_FMT_RGBA},
     {IMGFMT_RGB24, PIX_FMT_RGB24},
     {IMGFMT_RGB16, PIX_FMT_BGR565},
     {IMGFMT_RGB15, PIX_FMT_BGR555},


More information about the MPlayer-cvslog mailing list