Commit 57b2767e authored by michael's avatar michael

compiletime pp-mode support (luminance = chrominance filters though) 1-2%...

compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@3155 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 348757d6
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
//#define TIMING //#define TIMING
//#define MORE_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 #define QP_STORE_T int
struct PPMode{ struct PPMode{
......
...@@ -2553,8 +2553,11 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int ...@@ -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) QP_STORE_T QPs[], int QPStride, int isColor, struct PPMode *ppMode)
{ {
int x,y; int x,y;
#ifdef COMPILE_TIME_MODE
const int mode= COMPILE_TIME_MODE;
#else
const int mode= isColor ? ppMode->chromMode : ppMode->lumMode; const int mode= isColor ? ppMode->chromMode : ppMode->lumMode;
#endif
/* we need 64bit here otherwise well going to have a problem /* we need 64bit here otherwise well going to have a problem
after watching a black picture for 5 hours*/ after watching a black picture for 5 hours*/
static uint64_t *yHistogram= NULL; static uint64_t *yHistogram= NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment