[Mplayer-cvslog] CVS: main/postproc postprocess_template.c,1.47,1.48 postprocess.c,1.47,1.48

Michael Niedermayer michael at mplayer.dev.hu
Sat Nov 24 23:16:38 CET 2001


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

Modified Files:
	postprocess_template.c postprocess.c 
Log Message:
runtime cpu detection


Index: postprocess_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess_template.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- postprocess_template.c	24 Nov 2001 02:05:06 -0000	1.47
+++ postprocess_template.c	24 Nov 2001 22:16:29 -0000	1.48
@@ -16,76 +16,9 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-/*
-			C	MMX	MMX2	3DNow
-isVertDC		Ec	Ec
-isVertMinMaxOk		Ec	Ec
-doVertLowPass		E		e	e
-doVertDefFilter		Ec	Ec	e	e
-isHorizDC		Ec	Ec
-isHorizMinMaxOk		a	E
[...1037 lines suppressed...]
-					tempNoiseReducer(dstBlock-8, stride,
+					RENAME(tempNoiseReducer)(dstBlock-8, stride,
 						tempBlured[isColor] + y*dstStride + x,
 						tempBluredPast[isColor] + (y>>3)*256 + (x>>3),
 						ppMode->maxTmpNoise);
@@ -3751,12 +3037,12 @@
 
 		if(mode & DERING)
 		{
-				if(y > 0) dering(dstBlock - dstStride - 8, dstStride, QP);
+				if(y > 0) RENAME(dering)(dstBlock - dstStride - 8, dstStride, QP);
 		}
 
 		if((mode & TEMP_NOISE_FILTER))
 		{
-			tempNoiseReducer(dstBlock-8, dstStride,
+			RENAME(tempNoiseReducer)(dstBlock-8, dstStride,
 				tempBlured[isColor] + y*dstStride + x,
 				tempBluredPast[isColor] + (y>>3)*256 + (x>>3),
 				ppMode->maxTmpNoise);

Index: postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- postprocess.c	24 Nov 2001 02:05:06 -0000	1.47
+++ postprocess.c	24 Nov 2001 22:16:29 -0000	1.48
@@ -62,6 +62,8 @@
 try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
 smart blur
 commandline option for   the deblock / dering thresholds
+put fastmemcpy back
+dont use #ifdef ARCH_X86 for the asm stuff ... cross compilers? (note cpudetect uses ARCH_X86)
 ...
 */
 
@@ -78,43 +80,25 @@
 //#undef HAVE_MMX2
 //#define HAVE_3DNOW
[...3299 lines suppressed...]
-		for(i=1; i<256; i++)
-		{
-			int x;
-			int start=yHistogram[i-1]/(max/256+1);
-			int end=yHistogram[i]/(max/256+1);
-			int inc= end > start ? 1 : -1;
-			for(x=start; x!=end+inc; x+=inc)
-				dst[ i*dstStride + x]+=128;
-		}
-
-		for(i=0; i<100; i+=2)
-		{
-			dst[ (white)*dstStride + i]+=128;
-			dst[ (black)*dstStride + i]+=128;
-		}
-
-	}
-#endif
-
-}




More information about the MPlayer-cvslog mailing list