Originally committed as revision 11468 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -111,9 +111,6 @@ static DECLARE_ALIGNED(8, uint64_t attribute_used, b08)= 0x0808080808080808LL; |
| 111 | 111 |
static DECLARE_ALIGNED(8, uint64_t attribute_used, b80)= 0x8080808080808080LL; |
| 112 | 112 |
#endif |
| 113 | 113 |
|
| 114 |
-static uint8_t clip_table[3*256]; |
|
| 115 |
-static uint8_t * const clip_tab= clip_table + 256; |
|
| 116 |
- |
|
| 117 | 114 |
static const int attribute_used deringThreshold= 20; |
| 118 | 115 |
|
| 119 | 116 |
|
| ... | ... |
@@ -970,14 +967,6 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int |
| 970 | 970 |
reallocAlign((void **)&c->forcedQPTable, 8, mbWidth*sizeof(QP_STORE_T)); |
| 971 | 971 |
} |
| 972 | 972 |
|
| 973 |
-static void global_init(void){
|
|
| 974 |
- int i; |
|
| 975 |
- memset(clip_table, 0, 256); |
|
| 976 |
- for(i=256; i<512; i++) |
|
| 977 |
- clip_table[i]= i; |
|
| 978 |
- memset(clip_table+512, 0, 256); |
|
| 979 |
-} |
|
| 980 |
- |
|
| 981 | 973 |
static const char * context_to_name(void * ptr) {
|
| 982 | 974 |
return "postproc"; |
| 983 | 975 |
} |
| ... | ... |
@@ -989,8 +978,6 @@ pp_context_t *pp_get_context(int width, int height, int cpuCaps){
|
| 989 | 989 |
int stride= (width+15)&(~15); //assumed / will realloc if needed |
| 990 | 990 |
int qpStride= (width+15)/16 + 2; //assumed / will realloc if needed |
| 991 | 991 |
|
| 992 |
- global_init(); |
|
| 993 |
- |
|
| 994 | 992 |
memset(c, 0, sizeof(PPContext)); |
| 995 | 993 |
c->av_class = &av_codec_context_class; |
| 996 | 994 |
c->cpuCaps= cpuCaps; |
| ... | ... |
@@ -76,17 +76,10 @@ |
| 76 | 76 |
//filters on |
| 77 | 77 |
//#define COMPILE_TIME_MODE 0x77 |
| 78 | 78 |
|
| 79 |
-#if 1 |
|
| 80 | 79 |
static inline int CLIP(int a){
|
| 81 | 80 |
if(a&256) return ((a)>>31)^(-1); |
| 82 | 81 |
else return a; |
| 83 | 82 |
} |
| 84 |
-//#define CLIP(a) (((a)&256) ? ((a)>>31)^(-1) : (a)) |
|
| 85 |
-#elif 0 |
|
| 86 |
-#define CLIP(a) clip_tab[a] |
|
| 87 |
-#else |
|
| 88 |
-#define CLIP(a) (a) |
|
| 89 |
-#endif |
|
| 90 | 83 |
/** |
| 91 | 84 |
* Postprocessng filter. |
| 92 | 85 |
*/ |