aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libpostproc/postprocess_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-03-29 13:31:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-29 13:31:12 +0000
commit134eb1e50483bc503468796b5a1f31509398e785 (patch)
tree6c7d506a3b0d3530bb2f760f88b89d19f0d67239 /libavcodec/libpostproc/postprocess_internal.h
parentdeb0a292b032e46fd60135985a2453471b6c225b (diff)
downloadffmpeg-134eb1e50483bc503468796b5a1f31509398e785.tar.gz
fixing cliping of c deinterlacers
5 tap lowpass deinterlacer Originally committed as revision 1715 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libpostproc/postprocess_internal.h')
-rw-r--r--libavcodec/libpostproc/postprocess_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/libpostproc/postprocess_internal.h b/libavcodec/libpostproc/postprocess_internal.h
index 1956180b7e..febea18188 100644
--- a/libavcodec/libpostproc/postprocess_internal.h
+++ b/libavcodec/libpostproc/postprocess_internal.h
@@ -51,6 +51,7 @@
#define CUBIC_IPOL_DEINT_FILTER 0x40000 // 262144
#define MEDIAN_DEINT_FILTER 0x80000 // 524288
#define FFMPEG_DEINT_FILTER 0x400000
+#define LOWPASS5_DEINT_FILTER 0x800000
#define TEMP_NOISE_FILTER 0x100000
#define FORCE_QUANT 0x200000
@@ -61,6 +62,17 @@
//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.
*/