Commit 64d1e539 authored by ivo's avatar ivo

preserve alpha channel when converting rgb32 to bgr32 in plain C


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@23022 b3059339-0415-0410-9bf9-f77b7e298cf2
parent b989b817
......@@ -1423,7 +1423,7 @@ static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long s
: "memory");
#endif
for (; idx<15; idx+=4) {
register int v = *(uint32_t *)&s[idx], g = v & 0xff00;
register int v = *(uint32_t *)&s[idx], g = v & 0xff00ff00;
v &= 0xff00ff;
*(uint32_t *)&d[idx] = (v>>16) + g + (v<<16);
}
......
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