[Mplayer-cvslog] CVS: main/postproc swscale.c,1.5,1.6

Arpi of Ize arpi at mplayer.dev.hu
Wed Oct 17 12:55:31 CEST 2001


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

Modified Files:
	swscale.c 
Log Message:
bpp changed from bytespp to bitspp

Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- swscale.c	17 Oct 2001 03:40:03 -0000	1.5
+++ swscale.c	17 Oct 2001 10:55:29 -0000	1.6
@@ -472,7 +472,7 @@
 #ifdef HAVE_MMX
 	//FIXME write lq version with less uv ...
 	//FIXME reorder / optimize
-	if(dstbpp == 4)
+	if(dstbpp == 32)
 	{
 		asm volatile(
 
@@ -555,7 +555,7 @@
 		: "%eax"
 		);
 	}
-	else if(dstbpp==2)
+	else if(dstbpp==16)
 	{
 		asm volatile(
 
@@ -590,7 +590,7 @@
 		);
 	}
 #else
-	if(dstbpp==4 || dstbpp==3)
+	if(dstbpp==32 || dstbpp==24)
 	{
 		for(i=0;i<dstw;i++){
 			// vertical linear interpolation && yuv2rgb in a single step:
@@ -600,10 +600,10 @@
 			dest[0]=clip_table[((Y + yuvtab_3343[U]) >>13)];
 			dest[1]=clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)];
 			dest[2]=clip_table[((Y + yuvtab_40cf[V]) >>13)];
-			dest+=dstbpp;
+			dest+=dstbpp>>3;
 		}
 	}
-	else if(dstbpp==2) //16bit
+	else if(dstbpp==16) //16bit
 	{
 		for(i=0;i<dstw;i++){
 			// vertical linear interpolation && yuv2rgb in a single step:
@@ -615,10 +615,10 @@
 				(clip_table[((Y + yuvtab_3343[U]) >>13)]>>3) |
 				(clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)]<<3)&0x07E0 |
 				(clip_table[((Y + yuvtab_40cf[V]) >>13)]<<8)&0xF800;
-			dest+=dstbpp;
+			dest+=2;
 		}
 	}
-	else if(dstbpp==2) //15bit FIXME how do i figure out if its 15 or 16?
+	else if(dstbpp==15) //15bit FIXME how do i figure out if its 15 or 16?
 	{
 		for(i=0;i<dstw;i++){
 			// vertical linear interpolation && yuv2rgb in a single step:
@@ -630,7 +630,7 @@
 				(clip_table[((Y + yuvtab_3343[U]) >>13)]>>3) |
 				(clip_table[((Y + yuvtab_0c92[V] + yuvtab_1a1e[U]) >>13)]<<2)&0x03E0 |
 				(clip_table[((Y + yuvtab_40cf[V]) >>13)]<<7)&0x7C00;
-			dest+=dstbpp;
+			dest+=2;
 		}
 	}
 #endif




More information about the MPlayer-cvslog mailing list