diff libpostproc/postprocess_template.c @ 172:a0efaf471d6b libavcodec

compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster with -benchmark -vo null -nosound
author michael
date Tue, 27 Nov 2001 02:25:31 +0000
parents 20bcd5b70886
children 37eaaa9596cc
line wrap: on
line diff
--- a/libpostproc/postprocess_template.c	Tue Nov 27 01:12:30 2001 +0000
+++ b/libpostproc/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;