]> git.sesse.net Git - ffmpeg/commitdiff
compiletime pp-mode support (luminance = chrominance filters though) 1-2% faster...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Nov 2001 02:25:31 +0000 (02:25 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 Nov 2001 02:25:31 +0000 (02:25 +0000)
Originally committed as revision 3155 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/postprocess.h
postproc/postprocess_template.c

index 8be6374580d35119ec7fd915af65a363b5526342..1c6e25d7e3abd69c0d0f4dc9e7b9e0a8d317be6c 100644 (file)
 //#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{
index 3908c817d66f6944beabd7b5cf2a3ab99ebb6be7..e2ecf5e3df2303905b4eb849442f49b4103c9328 100644 (file)
@@ -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;