[Mplayer-cvslog] CVS: main/postproc swscale.c,1.2,1.3

Atmosfear atmos4 at mplayer.dev.hu
Wed Oct 17 02:29:48 CEST 2001


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

Modified Files:
	swscale.c 
Log Message:
fix rgb/bgr for 15/16bpp


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- swscale.c	16 Oct 2001 23:58:17 -0000	1.2
+++ swscale.c	17 Oct 2001 00:29:07 -0000	1.3
@@ -103,11 +103,11 @@
 	dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)];
 #else
 	unsigned short *d=dest;
-	unsigned int r=clip_table[((Y + yuvtab_3343[U]) >>13)];
+	unsigned int b=clip_table[((Y + yuvtab_3343[U]) >>13)];
 	unsigned int g=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)];
-	unsigned int b=clip_table[((Y + yuvtab_40cf[V]) >>13)];
-	d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
-//	d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
+	unsigned int r=clip_table[((Y + yuvtab_40cf[V]) >>13)];
+//	d[0]=((r>>3)<<10)|((g>>3)<<5)|((b>>3)); // 15bpp
+	d[0]=((r>>3)<<11)|((g>>2)<<5)|((b>>3)); // 16bpp
 #endif
 	dest+=dstbpp;
     }




More information about the MPlayer-cvslog mailing list