Commit e8280a7b authored by bellard's avatar bellard

rgb555 alpha extraction fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1810 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 638de0af
...@@ -1104,7 +1104,7 @@ static inline unsigned int bitcopy_n(unsigned int a, int n) ...@@ -1104,7 +1104,7 @@ static inline unsigned int bitcopy_n(unsigned int a, int n)
r = bitcopy_n(v >> (10 - 3), 3);\ r = bitcopy_n(v >> (10 - 3), 3);\
g = bitcopy_n(v >> (5 - 3), 3);\ g = bitcopy_n(v >> (5 - 3), 3);\
b = bitcopy_n(v << 3, 3);\ b = bitcopy_n(v << 3, 3);\
a = bitcopy_n(v >> 15, 7);\ a = (-(v >> 15)) & 0xff;\
} }
#define RGBA_OUT(d, r, g, b, a)\ #define RGBA_OUT(d, r, g, b, a)\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment