diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2001-11-27 02:25:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2001-11-27 02:25:31 +0000 |
commit | 06c4804a795dd4c115ad001b0e1f4bc1396829a6 (patch) | |
tree | 1ded5bbe83484e3281c2f605c241fb8ffef05e13 /postproc | |
parent | 726a959a540f4dee1af85747570fd5a5f44407d4 (diff) | |
download | ffmpeg-06c4804a795dd4c115ad001b0e1f4bc1396829a6.tar.gz |
compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound
Originally committed as revision 3155 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/postprocess.h | 6 | ||||
-rw-r--r-- | postproc/postprocess_template.c | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/postproc/postprocess.h b/postproc/postprocess.h index 8be6374580..1c6e25d7e3 100644 --- a/postproc/postprocess.h +++ b/postproc/postprocess.h @@ -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 --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c index 3908c817d6..e2ecf5e3df 100644 --- a/postproc/postprocess_template.c +++ b/postproc/postprocess_template.c @@ -2553,8 +2553,11 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int 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; |