[Mplayer-cvslog] CVS: main/postproc swscale.c,1.16,1.17

Michael Niedermayer michael at mplayer.dev.hu
Sat Oct 20 23:12:31 CEST 2001


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

Modified Files:
	swscale.c 
Log Message:
fixed alignment (static variables where sometimes not 8-byte aligned)
added half uv interpolation support
added prefetch
BGR15 support in MMX (untested) (so BGR15,16,24,32 are supported)
special unscaled height version (not much faster but it doesnt interpolate uv vertically)


Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- swscale.c	19 Oct 2001 15:50:44 -0000	1.16
+++ swscale.c	20 Oct 2001 21:12:09 -0000	1.17
@@ -3,54 +3,91 @@
 
 // Orginal C implementation by A'rpi/ESP-team <arpi at thot.banki.hu>
 // current version mostly by Michael Niedermayer (michaelni at gmx.at)
+// the parts written by michael are under GNU GPL
 
 #include <inttypes.h>
 #include "../config.h"
+#include "swscale.h"
 
 //#undef HAVE_MMX2
 //#undef HAVE_MMX
[...1296 lines suppressed...]
-				(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+=2;
-		}
-	}
-#endif
-
-	b16Dither= b16Dither1;
+    	b16Dither= b16Dither1;
 	b16Dither1= b16Dither2;
 	b16Dither2= b16Dither;
 
 	g16Dither= g16Dither1;
 	g16Dither1= g16Dither2;
 	g16Dither2= g16Dither;
+#endif
   }
 
 #ifdef HAVE_3DNOW




More information about the MPlayer-cvslog mailing list