# HG changeset patch # User michael # Date 1006827931 0 # Node ID b2e24fec97bcd3167a1c5bc566f2ab120e99edab # Parent 5b8db331d0c1f64927beb32f2de7fab95b5d6ef5 compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound diff -r 5b8db331d0c1 -r b2e24fec97bc postproc/postprocess.h --- a/postproc/postprocess.h Tue Nov 27 01:54:13 2001 +0000 +++ b/postproc/postprocess.h Tue Nov 27 02:25:31 2001 +0000 @@ -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{ diff -r 5b8db331d0c1 -r b2e24fec97bc postproc/postprocess_template.c --- a/postproc/postprocess_template.c Tue Nov 27 01:54:13 2001 +0000 +++ b/postproc/postprocess_template.c Tue Nov 27 02:25:31 2001 +0000 @@ -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;