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

Michael Niedermayer michael at mplayer.dev.hu
Thu Feb 21 18:48:03 CET 2002


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

Modified Files:
	swscale.c swscale_template.c 
Log Message:
fixing bgr32 output on big-endian systems


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- swscale.c	21 Feb 2002 16:57:34 -0000	1.82
+++ swscale.c	21 Feb 2002 17:48:00 -0000	1.83
@@ -294,6 +294,9 @@
 {
 	if(dstFormat==IMGFMT_BGR32)
 	{
+#ifdef WORDS_BIGENDIAN
+	dest++;
+#endif
 		int i;
 		for(i=0; i<(dstW>>1); i++){
 			int j;

Index: swscale_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_template.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- swscale_template.c	14 Feb 2002 16:38:50 -0000	1.72
+++ swscale_template.c	21 Feb 2002 17:48:00 -0000	1.73
@@ -992,6 +992,9 @@
 #else
 		if(dstFormat==IMGFMT_BGR32)
 		{
+#ifdef WORDS_BIGENDIAN
+			dest++;
+#endif
 			int i;
 			for(i=0;i<dstW;i++){
 				// vertical linear interpolation && yuv2rgb in a single step:
@@ -1115,6 +1118,9 @@
 #else
 		if(dstFormat==IMGFMT_BGR32)
 		{
+#ifdef WORDS_BIGENDIAN
+			dest++;
+#endif
 			int i;
 			for(i=0; i<dstW-1; i+=2){
 				// vertical linear interpolation && yuv2rgb in a single step:
@@ -1393,6 +1399,9 @@
 
 	if(dstFormat==IMGFMT_BGR32)
 	{
+#ifdef WORDS_BIGENDIAN
+		dest++;
+#endif
 		int i;
 		for(i=0; i<dstW-1; i+=2){
 			// vertical linear interpolation && yuv2rgb in a single step:




More information about the MPlayer-cvslog mailing list