From f6c43fb1beccc213d70c00e324651bf2c2094c78 Mon Sep 17 00:00:00 2001 From: nick Date: Sun, 28 Oct 2001 11:00:40 +0000 Subject: Prev ver could work only on x86 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2509 b3059339-0415-0410-9bf9-f77b7e298cf2 --- postproc/rgb2rgb.c | 10 +++++----- postproc/rgb2rgb_template.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'postproc') 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; } } -- cgit v1.2.3