Mercurial > mplayer.hg
diff libswscale/swscale.c @ 30798:91f90077acf6
Support BGR555, BGR565, RGB555 and RGB565 foreign endian output in
libswscale.
Patch by Alexis Ballier, alexis D ballier A gmail
author | cehoyos |
---|---|
date | Thu, 04 Mar 2010 16:57:04 +0000 |
parents | 7e887f9d634d |
children | 76f3878f34fd |
line wrap: on
line diff
--- a/libswscale/swscale.c Thu Mar 04 15:58:09 2010 +0000 +++ b/libswscale/swscale.c Thu Mar 04 16:57:04 2010 +0000 @@ -765,8 +765,10 @@ dest+=6;\ }\ break;\ - case PIX_FMT_RGB565:\ - case PIX_FMT_BGR565:\ + case PIX_FMT_RGB565BE:\ + case PIX_FMT_RGB565LE:\ + case PIX_FMT_BGR565BE:\ + case PIX_FMT_BGR565LE:\ {\ const int dr1= dither_2x2_8[y&1 ][0];\ const int dg1= dither_2x2_4[y&1 ][0];\ @@ -780,8 +782,10 @@ }\ }\ break;\ - case PIX_FMT_RGB555:\ - case PIX_FMT_BGR555:\ + case PIX_FMT_RGB555BE:\ + case PIX_FMT_RGB555LE:\ + case PIX_FMT_BGR555BE:\ + case PIX_FMT_BGR555LE:\ {\ const int dr1= dither_2x2_8[y&1 ][0];\ const int dg1= dither_2x2_8[y&1 ][1];\