diff options
author | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 11:00:40 +0000 |
---|---|---|
committer | Nick Kurshev <nickols_k@mail.ru> | 2001-10-28 11:00:40 +0000 |
commit | fde33ab52ee76bc07a58a1b70f7b18bd61e67cb2 (patch) | |
tree | bf8eb65bf0cc693a427d2c3869d219e4d2ac4a28 | |
parent | b238eb2e77126cae257bc85efb7677cf4a082349 (diff) |
Prev ver could work only on x86
Originally committed as revision 2509 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r-- | postproc/rgb2rgb.c | 10 | ||||
-rw-r--r-- | postproc/rgb2rgb_template.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c index df8c8c47fc..5c85f1043a 100644 --- a/postproc/rgb2rgb.c +++ b/postproc/rgb2rgb.c @@ -7,16 +7,16 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) { - uint32_t *dest = (uint32_t *)dst; + uint8_t *dest = dst; uint8_t *s = src; uint8_t *end; end = s + src_size; while(s < end) { - uint32_t rgb0; - rgb0 = *(uint32_t *)s; - *dest++ = rgb0 & 0xFFFFFFUL; - s += 3; + *dest++ = *s++; + *dest++ = *s++; + *dest++ = *s++; + *dest++ = 0; } } diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index df8c8c47fc..5c85f1043a 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -7,16 +7,16 @@ void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size) { - uint32_t *dest = (uint32_t *)dst; + uint8_t *dest = dst; uint8_t *s = src; uint8_t *end; end = s + src_size; while(s < end) { - uint32_t rgb0; - rgb0 = *(uint32_t *)s; - *dest++ = rgb0 & 0xFFFFFFUL; - s += 3; + *dest++ = *s++; + *dest++ = *s++; + *dest++ = *s++; + *dest++ = 0; } } |