[FFmpeg-cvslog] r11468 - in trunk/libpostproc: postprocess.c postprocess_internal.h

reimar subversion
Tue Jan 8 23:03:30 CET 2008


Author: reimar
Date: Tue Jan  8 23:03:30 2008
New Revision: 11468

Log:
Remove clip_table as it is not used anymore.
Patch by Diego 'Flameeyes' Petten? (flameeyes gmail com)


Modified:
   trunk/libpostproc/postprocess.c
   trunk/libpostproc/postprocess_internal.h

Modified: trunk/libpostproc/postprocess.c
==============================================================================
--- trunk/libpostproc/postprocess.c	(original)
+++ trunk/libpostproc/postprocess.c	Tue Jan  8 23:03:30 2008
@@ -111,9 +111,6 @@ static DECLARE_ALIGNED(8, uint64_t attri
 static DECLARE_ALIGNED(8, uint64_t attribute_used, b80)= 0x8080808080808080LL;
 #endif
 
-static uint8_t clip_table[3*256];
-static uint8_t * const clip_tab= clip_table + 256;
-
 static const int attribute_used deringThreshold= 20;
 
 
@@ -970,14 +967,6 @@ static void reallocBuffers(PPContext *c,
         reallocAlign((void **)&c->forcedQPTable, 8, mbWidth*sizeof(QP_STORE_T));
 }
 
-static void global_init(void){
-        int i;
-        memset(clip_table, 0, 256);
-        for(i=256; i<512; i++)
-                clip_table[i]= i;
-        memset(clip_table+512, 0, 256);
-}
-
 static const char * context_to_name(void * ptr) {
     return "postproc";
 }
@@ -989,8 +978,6 @@ pp_context_t *pp_get_context(int width, 
         int stride= (width+15)&(~15);    //assumed / will realloc if needed
         int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed
 
-        global_init();
-
         memset(c, 0, sizeof(PPContext));
         c->av_class = &av_codec_context_class;
         c->cpuCaps= cpuCaps;

Modified: trunk/libpostproc/postprocess_internal.h
==============================================================================
--- trunk/libpostproc/postprocess_internal.h	(original)
+++ trunk/libpostproc/postprocess_internal.h	Tue Jan  8 23:03:30 2008
@@ -76,17 +76,10 @@
 //filters on
 //#define COMPILE_TIME_MODE 0x77
 
-#if 1
 static inline int CLIP(int a){
         if(a&256) return ((a)>>31)^(-1);
         else      return a;
 }
-//#define CLIP(a) (((a)&256) ? ((a)>>31)^(-1) : (a))
-#elif 0
-#define CLIP(a) clip_tab[a]
-#else
-#define CLIP(a) (a)
-#endif
 /**
  * Postprocessng filter.
  */




More information about the ffmpeg-cvslog mailing list