[Mplayer-cvslog] CVS: main/postproc postprocess_template.c,1.48,1.49 postprocess.h,1.16,1.17
Michael Niedermayer
michael at mplayer.dev.hu
Tue Nov 27 03:25:35 CET 2001
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv15193/postproc
Modified Files:
postprocess_template.c postprocess.h
Log Message:
compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound
Index: postprocess_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess_template.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- postprocess_template.c 24 Nov 2001 22:16:29 -0000 1.48
+++ postprocess_template.c 27 Nov 2001 02:25:31 -0000 1.49
@@ -2553,8 +2553,11 @@
QP_STORE_T QPs[], int QPStride, int isColor, struct PPMode *ppMode)
{
int x,y;
+#ifdef COMPILE_TIME_MODE
+ const int mode= COMPILE_TIME_MODE;
+#else
const int mode= isColor ? ppMode->chromMode : ppMode->lumMode;
-
+#endif
/* we need 64bit here otherwise we´ll going to have a problem
after watching a black picture for 5 hours*/
static uint64_t *yHistogram= NULL;
Index: postprocess.h
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- postprocess.h 13 Nov 2001 02:40:56 -0000 1.16
+++ postprocess.h 27 Nov 2001 02:25:31 -0000 1.17
@@ -67,6 +67,12 @@
//#define TIMING
//#define MORE_TIMING
+//use if u want a faster postprocessing code
+//cant differentiate between chroma & luma filters (both on or both off)
+//obviosly the -pp option at the commandline has no effect except turning the here selected
+//filters on
+//#define COMPILE_TIME_MODE 0x77
+
#define QP_STORE_T int
struct PPMode{
More information about the MPlayer-cvslog
mailing list