Mercurial > libavcodec.hg
comparison libpostproc/postprocess_internal.h @ 1157:57fe9c4e0c6e libavcodec
fixing cliping of c deinterlacers
5 tap lowpass deinterlacer
| author | michaelni |
|---|---|
| date | Sat, 29 Mar 2003 13:31:12 +0000 |
| parents | 3644e555a20a |
| children | 2e06398e4647 |
comparison
equal
deleted
inserted
replaced
| 1156:48efa413ac81 | 1157:57fe9c4e0c6e |
|---|---|
| 49 #define LINEAR_BLEND_DEINT_FILTER 0x20000 // 131072 | 49 #define LINEAR_BLEND_DEINT_FILTER 0x20000 // 131072 |
| 50 #define CUBIC_BLEND_DEINT_FILTER 0x8000 // (not implemented yet) | 50 #define CUBIC_BLEND_DEINT_FILTER 0x8000 // (not implemented yet) |
| 51 #define CUBIC_IPOL_DEINT_FILTER 0x40000 // 262144 | 51 #define CUBIC_IPOL_DEINT_FILTER 0x40000 // 262144 |
| 52 #define MEDIAN_DEINT_FILTER 0x80000 // 524288 | 52 #define MEDIAN_DEINT_FILTER 0x80000 // 524288 |
| 53 #define FFMPEG_DEINT_FILTER 0x400000 | 53 #define FFMPEG_DEINT_FILTER 0x400000 |
| 54 #define LOWPASS5_DEINT_FILTER 0x800000 | |
| 54 | 55 |
| 55 #define TEMP_NOISE_FILTER 0x100000 | 56 #define TEMP_NOISE_FILTER 0x100000 |
| 56 #define FORCE_QUANT 0x200000 | 57 #define FORCE_QUANT 0x200000 |
| 57 | 58 |
| 58 //use if u want a faster postprocessing code | 59 //use if u want a faster postprocessing code |
| 59 //cant differentiate between chroma & luma filters (both on or both off) | 60 //cant differentiate between chroma & luma filters (both on or both off) |
| 60 //obviosly the -pp option at the commandline has no effect except turning the here selected | 61 //obviosly the -pp option at the commandline has no effect except turning the here selected |
| 61 //filters on | 62 //filters on |
| 62 //#define COMPILE_TIME_MODE 0x77 | 63 //#define COMPILE_TIME_MODE 0x77 |
| 63 | 64 |
| 65 #if 1 | |
| 66 static inline int CLIP(int a){ | |
| 67 if(a&256) return ((a)>>31)^(-1); | |
| 68 else return a; | |
| 69 } | |
| 70 //#define CLIP(a) (((a)&256) ? ((a)>>31)^(-1) : (a)) | |
| 71 #elif 0 | |
| 72 #define CLIP(a) clip_tab[a] | |
| 73 #else | |
| 74 #define CLIP(a) (a) | |
| 75 #endif | |
| 64 /** | 76 /** |
| 65 * Postprocessng filter. | 77 * Postprocessng filter. |
| 66 */ | 78 */ |
| 67 struct PPFilter{ | 79 struct PPFilter{ |
| 68 char *shortName; | 80 char *shortName; |
