diff options
author | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-04 16:57:04 +0000 |
---|---|---|
committer | cehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-04 16:57:04 +0000 |
commit | 487b94aa88f26bef0b520de127d2eb354ae96f48 (patch) | |
tree | 030750d2098c77b464725f894df1a424b0fc63ea /libswscale/swscale.c | |
parent | ceb90b2c199b1fe6bea1e9dc20834718d3c53b18 (diff) | |
download | mpv-487b94aa88f26bef0b520de127d2eb354ae96f48.tar.bz2 mpv-487b94aa88f26bef0b520de127d2eb354ae96f48.tar.xz |
Support BGR555, BGR565, RGB555 and RGB565 foreign endian output in
libswscale.
Patch by Alexis Ballier, alexis D ballier A gmail
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30840 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 83607d2b77..a4e9aa7a5f 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -765,8 +765,10 @@ static inline void yuv2nv12XinC(const int16_t *lumFilter, const int16_t **lumSrc 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 @@ static inline void yuv2nv12XinC(const int16_t *lumFilter, const int16_t **lumSrc }\ }\ 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];\ |