[Mplayer-cvslog] CVS: main/postproc rgb2rgb_template.c,1.47,1.48

Arpi of Ize arpi at mplayerhq.hu
Sat May 4 01:16:12 CEST 2002


Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv20053

Modified Files:
	rgb2rgb_template.c 
Log Message:
10l - MMX rgb2bgr 32bpp expects num_of_bytes instead of num_of_pixels

Index: rgb2rgb_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb_template.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- rgb2rgb_template.c	13 Apr 2002 02:21:12 -0000	1.47
+++ rgb2rgb_template.c	3 May 2002 23:16:07 -0000	1.48
@@ -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<num_pixels; i++)
 	{
 		dst[4*i + 0] = src[4*i + 2];




More information about the MPlayer-cvslog mailing list