OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b202f
)
preserve alpha channel when converting rgb32 to bgr32 in plain C
author
Ivo van Poorten
<ivop@euronet.nl>
Wed, 18 Apr 2007 16:40:58 +0000
(16:40 +0000)
committer
Ivo van Poorten
<ivop@euronet.nl>
Wed, 18 Apr 2007 16:40:58 +0000
(16:40 +0000)
Originally committed as revision 23022 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/rgb2rgb_template.c
patch
|
blob
|
history
diff --git
a/libswscale/rgb2rgb_template.c
b/libswscale/rgb2rgb_template.c
index
f06e4ed
..
989b5bb
100644
(file)
--- a/
libswscale/rgb2rgb_template.c
+++ b/
libswscale/rgb2rgb_template.c
@@
-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 & 0xff00
ff00
;
v &= 0xff00ff;
*(uint32_t *)&d[idx] = (v>>16) + g + (v<<16);
}