diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-13 02:40:56 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-13 02:40:56 +0000 |
commit | 327341ec03d5dd916b34e02fe39059babe627ba5 (patch) | |
tree | 0b2742d125d7868c22a347336385153e487c3c65 /postproc/postprocess.h | |
parent | 9606e8858f562037f1cf954ba79183f712b8eaa4 (diff) | |
download | mpv-327341ec03d5dd916b34e02fe39059babe627ba5.tar.bz2 mpv-327341ec03d5dd916b34e02fe39059babe627ba5.tar.xz |
temporal noise reducer in C (-pp 0x100000)
setting the thresholds from the commandline requires postprocess2() / getPpModeByNameAndQuality() (someone could perhaps modify mplayer so that they are beiing used, iam too lazy for it ;)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2861 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/postprocess.h')
-rw-r--r-- | postproc/postprocess.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/postproc/postprocess.h b/postproc/postprocess.h index 85f3f32dfc..8be6374580 100644 --- a/postproc/postprocess.h +++ b/postproc/postprocess.h @@ -56,6 +56,8 @@ #define CUBIC_IPOL_DEINT_FILTER 0x40000 // 262144 #define MEDIAN_DEINT_FILTER 0x80000 // 524288 +#define TEMP_NOISE_FILTER 0x100000 + #define GET_PP_QUALITY_MAX 6 @@ -73,19 +75,22 @@ struct PPMode{ int oldMode; // will be passed to odivx int error; // non zero on error - int minAllowedY; - int maxAllowedY; + int minAllowedY; // for brigtness correction + int maxAllowedY; // for brihtness correction + + int maxTmpNoise[3]; // for Temporal Noise Reducing filter (Maximal sum of abs differences) }; struct PPFilter{ char *shortName; char *longName; - int chromDefault; - int minLumQuality; - int minChromQuality; - int mask; + int chromDefault; // is chrominance filtering on by default if this filter is manually activated + int minLumQuality; // minimum quality to turn luminance filtering on + int minChromQuality; // minimum quality to turn chrominance filtering on + int mask; // Bitmask to turn this filter on }; +/* Obsolete, dont use it, use postprocess2() instead */ void postprocess(unsigned char * src[], int src_stride, unsigned char * dst[], int dst_stride, int horizontal_size, int vertical_size, @@ -97,8 +102,10 @@ void postprocess2(unsigned char * src[], int src_stride, QP_STORE_T *QP_store, int QP_stride, struct PPMode *mode); +/* Obsolete, dont use it, use getPpModeByNameAndQuality() instead */ int getPpModeForQuality(int quality); +// name is the stuff after "-pp" on the command line struct PPMode getPpModeByNameAndQuality(char *name, int quality); #endif |