Mercurial > mplayer.hg
changeset 30309:ddd809228aef
More format support in fmt-conversion.c: split RGB32 and BGR32
into ARGB, BGRA, ABGR, RGBA.
author | reimar |
---|---|
date | Sun, 17 Jan 2010 14:40:44 +0000 |
parents | b33880a47b41 |
children | 6693b4a6a284 |
files | fmt-conversion.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/fmt-conversion.c Sun Jan 17 14:25:19 2010 +0000 +++ b/fmt-conversion.c Sun Jan 17 14:40:44 2010 +0000 @@ -25,7 +25,8 @@ 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 @@ {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},