# HG changeset patch # User arpi # Date 1020467767 0 # Node ID f4f3cfcd0d6413acd2493b2981a69af55b039d59 # Parent 0121a13ac60c022ff11c78ab83f3c6793f820fe7 10l - MMX rgb2bgr 32bpp expects num_of_bytes instead of num_of_pixels diff -r 0121a13ac60c -r f4f3cfcd0d64 postproc/rgb2rgb_template.c --- a/postproc/rgb2rgb_template.c Fri May 03 22:13:06 2002 +0000 +++ b/postproc/rgb2rgb_template.c Fri May 03 23:16:07 2002 +0000 @@ -533,7 +533,6 @@ 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 @@ "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 @@ __asm __volatile(EMMS:::"memory"); #else int i; + int num_pixels= src_size >> 2; for(i=0; i