changeset 4793:68e7ed0c22be

fixing bgr32 output on big-endian systems
author michael
date Thu, 21 Feb 2002 17:48:00 +0000
parents c85ee559fc3d
children 45f652f8b7c8
files postproc/swscale.c postproc/swscale_template.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Thu Feb 21 17:22:03 2002 +0000
+++ b/postproc/swscale.c	Thu Feb 21 17:48:00 2002 +0000
@@ -294,6 +294,9 @@
 {
 	if(dstFormat==IMGFMT_BGR32)
 	{
+#ifdef WORDS_BIGENDIAN
+	dest++;
+#endif
 		int i;
 		for(i=0; i<(dstW>>1); i++){
 			int j;
--- a/postproc/swscale_template.c	Thu Feb 21 17:22:03 2002 +0000
+++ b/postproc/swscale_template.c	Thu Feb 21 17:48:00 2002 +0000
@@ -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: