[Mplayer-cvslog] CVS: main/postproc postprocess.c,1.30,1.31

Michael Niedermayer michael at mplayer.dev.hu
Fri Oct 26 11:35:02 CEST 2001


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

Modified Files:
	postprocess.c 
Log Message:
faster dering


Index: postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- postprocess.c	26 Oct 2001 00:35:41 -0000	1.30
+++ postprocess.c	26 Oct 2001 09:34:41 -0000	1.31
@@ -1978,16 +1978,19 @@
 		"movq " #lx ", " #t1 "				\n\t" /* src[-1] */\
 		PAVGB(t0, lx)				              /* (src[-1] + src[+1])/2 */\
 		PAVGB(sx, lx)				      /* (src[-1] + 2src[0] + src[+1])/4 */\
-		"psubusb temp0, " #t1 "				\n\t"\
-		"psubusb temp0, " #t0 "				\n\t"\
-		"psubusb temp0, " #sx "				\n\t"\
-		"pcmpeqb b00, " #t1 "				\n\t" /* src[-1] > a ? 0 : -1*/\
-		"pcmpeqb b00, " #t0 "				\n\t" /* src[+1] > a ? 0 : -1*/\
-		"pcmpeqb b00, " #sx "				\n\t" /* src[0]  > a ? 0 : -1*/\
+		PAVGB(lx, pplx)					     \
+		"movq " #lx ", temp1				\n\t"\
+		"movq temp0, " #lx "				\n\t"\
+		"psubusb " #lx ", " #t1 "				\n\t"\
+		"psubusb " #lx ", " #t0 "				\n\t"\
+		"psubusb " #lx ", " #sx "				\n\t"\
+		"movq b00, " #lx "				\n\t"\
+		"pcmpeqb " #lx ", " #t1 "				\n\t" /* src[-1] > a ? 0 : -1*/\
+		"pcmpeqb " #lx ", " #t0 "				\n\t" /* src[+1] > a ? 0 : -1*/\
+		"pcmpeqb " #lx ", " #sx "				\n\t" /* src[0]  > a ? 0 : -1*/\
 		"paddb " #t1 ", " #t0 "				\n\t"\
 		"paddb " #t0 ", " #sx "				\n\t"\
 \
-		PAVGB(lx, pplx)					     \
 		PAVGB(plx, pplx)				      /* filtered */\
 		"movq " #dst ", " #t0 "				\n\t" /* dst */\
 		"movq " #t0 ", " #t1 "				\n\t" /* dst */\
@@ -1999,11 +2002,12 @@
 		"paddb " #psx ", " #ppsx "			\n\t"\
 	"#paddb b02, " #ppsx "				\n\t"\
 		"pand b08, " #ppsx "				\n\t"\
-		"pcmpeqb b00, " #ppsx "				\n\t"\
+		"pcmpeqb " #lx ", " #ppsx "				\n\t"\
 		"pand " #ppsx ", " #pplx "			\n\t"\
 		"pandn " #dst ", " #ppsx "			\n\t"\
 		"por " #pplx ", " #ppsx "				\n\t"\
-		"movq " #ppsx ", " #dst "			\n\t"
+		"movq " #ppsx ", " #dst "			\n\t"\
+		"movq temp1, " #lx "				\n\t"
 
 /*
 0000000




More information about the MPlayer-cvslog mailing list