changeset 4794:45f652f8b7c8

101++
author michael
date Thu, 21 Feb 2002 19:41:50 +0000
parents 68e7ed0c22be
children b18e61cb457a
files postproc/swscale.c postproc/swscale_template.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Thu Feb 21 17:48:00 2002 +0000
+++ b/postproc/swscale.c	Thu Feb 21 19:41:50 2002 +0000
@@ -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;
--- a/postproc/swscale_template.c	Thu Feb 21 17:48:00 2002 +0000
+++ b/postproc/swscale_template.c	Thu Feb 21 19:41:50 2002 +0000
@@ -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];