summaryrefslogtreecommitdiffstats
path: root/postproc/postprocess_template.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-27 02:25:31 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-27 02:25:31 +0000
commitb5c58f8381a8c5f566f522cb4119f23bc21304e3 (patch)
tree9891c95772de757cb4d97e98989e2b77e113bf0a /postproc/postprocess_template.c
parent615bffb9b313e037f2770f5ddfa73b60b4b281a0 (diff)
downloadmpv-b5c58f8381a8c5f566f522cb4119f23bc21304e3.tar.bz2
mpv-b5c58f8381a8c5f566f522cb4119f23bc21304e3.tar.xz
compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3155 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/postprocess_template.c')
-rw-r--r--postproc/postprocess_template.c5
1 files changed, 4 insertions, 1 deletions
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;