diff options
author | Arpi <arpi@thot.banki.hu> | 2002-05-03 23:16:07 +0000 |
---|---|---|
committer | Arpi <arpi@thot.banki.hu> | 2002-05-03 23:16:07 +0000 |
commit | 4085d977dd2aa890042c652897de370f8ed4abc0 (patch) | |
tree | 6a49c8e34c0a5af17b9a7742d80cdd7b3ef1b332 /postproc/rgb2rgb_template.c | |
parent | 9717dad88345bcc7e86ea807cc02b9988004657f (diff) | |
download | ffmpeg-4085d977dd2aa890042c652897de370f8ed4abc0.tar.gz |
10l - MMX rgb2bgr 32bpp expects num_of_bytes instead of num_of_pixels
Originally committed as revision 5962 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/rgb2rgb_template.c')
-rw-r--r-- | postproc/rgb2rgb_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index 5c3a4e88d9..ec62d2cdce 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -533,7 +533,6 @@ static inline void RENAME(rgb24to15)(const uint8_t *src, uint8_t *dst, unsigned static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { - int num_pixels= src_size >> 2; #ifdef HAVE_MMX asm volatile ( "xorl %%eax, %%eax \n\t" @@ -554,7 +553,7 @@ static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsign "addl $2, %%eax \n\t" "cmpl %2, %%eax \n\t" " jb 1b \n\t" - :: "r" (src), "r"(dst), "r" (num_pixels) + :: "r" (src), "r"(dst), "r" (src_size) : "%eax" ); @@ -562,6 +561,7 @@ static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, unsign __asm __volatile(EMMS:::"memory"); #else int i; + int num_pixels= src_size >> 2; for(i=0; i<num_pixels; i++) { dst[4*i + 0] = src[4*i + 2]; |