[MPlayer-cvslog] CVS: main/postproc rgb2rgb.c,1.66,1.67

Diego Biurrun CVS syncmail at mplayerhq.hu
Sat Feb 11 14:42:56 CET 2006


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv11411/postproc

Modified Files:
	rgb2rgb.c 
Log Message:
cosmetics: indentation fixes


Index: rgb2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/rgb2rgb.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- rgb2rgb.c	11 Feb 2006 13:35:46 -0000	1.66
+++ rgb2rgb.c	11 Feb 2006 13:42:54 -0000	1.67
@@ -334,15 +334,15 @@
 	for(i=0; i<num_pixels; i++)
 	{
 		#ifdef WORDS_BIGENDIAN
-		dst[3]= palette[ src[i]*4+2 ];
-		dst[2]= palette[ src[i]*4+1 ];
-		dst[1]= palette[ src[i]*4+0 ];
+			dst[3]= palette[ src[i]*4+2 ];
+			dst[2]= palette[ src[i]*4+1 ];
+			dst[1]= palette[ src[i]*4+0 ];
 		#else
 		//FIXME slow?
-		dst[0]= palette[ src[i]*4+2 ];
-		dst[1]= palette[ src[i]*4+1 ];
-		dst[2]= palette[ src[i]*4+0 ];
-//		dst[3]= 0; /* do we need this cleansing? */
+			dst[0]= palette[ src[i]*4+2 ];
+			dst[1]= palette[ src[i]*4+1 ];
+			dst[2]= palette[ src[i]*4+0 ];
+			//dst[3]= 0; /* do we need this cleansing? */
 		#endif
 		dst+= 4;
 	}
@@ -354,15 +354,15 @@
 	for(i=0; i<num_pixels; i++)
 	{
 		#ifdef WORDS_BIGENDIAN
-		dst[3]= palette[ src[i]*4+0 ];
-		dst[2]= palette[ src[i]*4+1 ];
-		dst[1]= palette[ src[i]*4+2 ];
+			dst[3]= palette[ src[i]*4+0 ];
+			dst[2]= palette[ src[i]*4+1 ];
+			dst[1]= palette[ src[i]*4+2 ];
 		#else
-		//FIXME slow?
-		dst[0]= palette[ src[i]*4+0 ];
-		dst[1]= palette[ src[i]*4+1 ];
-		dst[2]= palette[ src[i]*4+2 ];
-//		dst[3]= 0; /* do we need this cleansing? */
+			//FIXME slow?
+			dst[0]= palette[ src[i]*4+0 ];
+			dst[1]= palette[ src[i]*4+1 ];
+			dst[2]= palette[ src[i]*4+2 ];
+			//dst[3]= 0; /* do we need this cleansing? */
 		#endif
 		
 		dst+= 4;
@@ -447,14 +447,14 @@
 	for(i=0; i<num_pixels; i++)
 	{
 		#ifdef WORDS_BIGENDIAN
-		/* RGB32 (= A,B,G,R) -> BGR24 (= B,G,R) */
-		dst[3*i + 0] = src[4*i + 1];
-		dst[3*i + 1] = src[4*i + 2];
-		dst[3*i + 2] = src[4*i + 3];
+			/* RGB32 (= A,B,G,R) -> BGR24 (= B,G,R) */
+			dst[3*i + 0] = src[4*i + 1];
+			dst[3*i + 1] = src[4*i + 2];
+			dst[3*i + 2] = src[4*i + 3];
 		#else
-		dst[3*i + 0] = src[4*i + 2];
-		dst[3*i + 1] = src[4*i + 1];
-		dst[3*i + 2] = src[4*i + 0];
+			dst[3*i + 0] = src[4*i + 2];
+			dst[3*i + 1] = src[4*i + 1];
+			dst[3*i + 2] = src[4*i + 0];
 		#endif
 	}
 }
@@ -465,16 +465,16 @@
 	for(i=0; 3*i<src_size; i++)
 	{
 		#ifdef WORDS_BIGENDIAN
-		/* RGB24 (= R,G,B) -> BGR32 (= A,R,G,B) */
-		dst[4*i + 0] = 0;
-		dst[4*i + 1] = src[3*i + 0];
-		dst[4*i + 2] = src[3*i + 1];
-		dst[4*i + 3] = src[3*i + 2];
+			/* RGB24 (= R,G,B) -> BGR32 (= A,R,G,B) */
+			dst[4*i + 0] = 0;
+			dst[4*i + 1] = src[3*i + 0];
+			dst[4*i + 2] = src[3*i + 1];
+			dst[4*i + 3] = src[3*i + 2];
 		#else
-		dst[4*i + 0] = src[3*i + 2];
-		dst[4*i + 1] = src[3*i + 1];
-		dst[4*i + 2] = src[3*i + 0];
-		dst[4*i + 3] = 0;
+			dst[4*i + 0] = src[3*i + 2];
+			dst[4*i + 1] = src[3*i + 1];
+			dst[4*i + 2] = src[3*i + 0];
+			dst[4*i + 3] = 0;
 		#endif
 	}
 }
@@ -490,15 +490,15 @@
 		register uint16_t bgr;
 		bgr = *s++;
 		#ifdef WORDS_BIGENDIAN
-		*d++ = 0;
-		*d++ = (bgr&0x1F)<<3;
-		*d++ = (bgr&0x7E0)>>3;
-		*d++ = (bgr&0xF800)>>8;
+			*d++ = 0;
+			*d++ = (bgr&0x1F)<<3;
+			*d++ = (bgr&0x7E0)>>3;
+			*d++ = (bgr&0xF800)>>8;
 		#else
-		*d++ = (bgr&0xF800)>>8;
-		*d++ = (bgr&0x7E0)>>3;
-		*d++ = (bgr&0x1F)<<3;
-		*d++ = 0;
+			*d++ = (bgr&0xF800)>>8;
+			*d++ = (bgr&0x7E0)>>3;
+			*d++ = (bgr&0x1F)<<3;
+			*d++ = 0;
 		#endif
 	}
 }
@@ -564,15 +564,15 @@
 		register uint16_t bgr;
 		bgr = *s++;
 		#ifdef WORDS_BIGENDIAN
-		*d++ = 0;
-		*d++ = (bgr&0x1F)<<3;
-		*d++ = (bgr&0x3E0)>>2;
-		*d++ = (bgr&0x7C00)>>7;
+			*d++ = 0;
+			*d++ = (bgr&0x1F)<<3;
+			*d++ = (bgr&0x3E0)>>2;
+			*d++ = (bgr&0x7C00)>>7;
 		#else
-		*d++ = (bgr&0x7C00)>>7;
-		*d++ = (bgr&0x3E0)>>2;
-		*d++ = (bgr&0x1F)<<3;
-		*d++ = 0;
+			*d++ = (bgr&0x7C00)>>7;
+			*d++ = (bgr&0x3E0)>>2;
+			*d++ = (bgr&0x1F)<<3;
+			*d++ = 0;
 		#endif
 	}
 }




More information about the MPlayer-cvslog mailing list