[Mplayer-cvslog] CVS: main/postproc swscale.c,1.83,1.84 swscale_template.c,1.73,1.74

Michael Niedermayer michael at mplayer.dev.hu
Thu Feb 21 20:41:58 CET 2002


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

Modified Files:
	swscale.c swscale_template.c 
Log Message:
101++


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- swscale.c	21 Feb 2002 17:48:00 -0000	1.83
+++ swscale.c	21 Feb 2002 19:41:50 -0000	1.84
@@ -68,6 +68,7 @@
 //#define HAVE_3DNOW
 //#undef HAVE_MMX
 //#undef ARCH_X86
+//#define WORDS_BIGENDIAN
 #define DITHER1XBPP
 
 #define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit
@@ -294,10 +295,10 @@
 {
 	if(dstFormat==IMGFMT_BGR32)
 	{
+		int i;
 #ifdef WORDS_BIGENDIAN
 	dest++;
 #endif
-		int i;
 		for(i=0; i<(dstW>>1); i++){
 			int j;
 			int Y1=0;

Index: swscale_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_template.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- swscale_template.c	21 Feb 2002 17:48:00 -0000	1.73
+++ swscale_template.c	21 Feb 2002 19:41:50 -0000	1.74
@@ -992,10 +992,10 @@
 #else
 		if(dstFormat==IMGFMT_BGR32)
 		{
+			int i;
 #ifdef WORDS_BIGENDIAN
 			dest++;
 #endif
-			int i;
 			for(i=0;i<dstW;i++){
 				// vertical linear interpolation && yuv2rgb in a single step:
 				int Y=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1118,10 +1118,10 @@
 #else
 		if(dstFormat==IMGFMT_BGR32)
 		{
+			int i;
 #ifdef WORDS_BIGENDIAN
 			dest++;
 #endif
-			int i;
 			for(i=0; i<dstW-1; i+=2){
 				// vertical linear interpolation && yuv2rgb in a single step:
 				int Y1=yuvtab_2568[((buf0[i]*yalpha1+buf1[i]*yalpha)>>19)];
@@ -1399,10 +1399,10 @@
 
 	if(dstFormat==IMGFMT_BGR32)
 	{
+		int i;
 #ifdef WORDS_BIGENDIAN
 		dest++;
 #endif
-		int i;
 		for(i=0; i<dstW-1; i+=2){
 			// vertical linear interpolation && yuv2rgb in a single step:
 			int Y1=yuvtab_2568[buf0[i]>>7];




More information about the MPlayer-cvslog mailing list