diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-28 11:00:40 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-28 11:00:40 +0000 |
commit | f6c43fb1beccc213d70c00e324651bf2c2094c78 (patch) | |
tree | c7407354b296927986cec5ed1330733dea917c34 | |
parent | e0ec0393461ce18fb376f7a01dea99c6c049c913 (diff) |
Prev ver could work only on x86
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2509 b3059339-0415-0410-9bf9-f77b7e298cf2
-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; } } |