diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-06 18:44:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-06 19:54:36 +0200 |
commit | 62447248f3e5eb95dbd9f123696321903d4d0921 (patch) | |
tree | 80614d6ca516d03c17655b582d303edd47c58d20 /libavfilter | |
parent | 21f4fc2e400ea9cad1777aaa99b7e19653221a6d (diff) | |
download | ffmpeg-62447248f3e5eb95dbd9f123696321903d4d0921.tar.gz |
vf_noise: remove low quality mode
It produces vissible correlation between lines
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_noise.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c index 8db5329b47..be39cb21a7 100644 --- a/libavfilter/vf_noise.c +++ b/libavfilter/vf_noise.c @@ -40,7 +40,6 @@ #define NOISE_UNIFORM 1 #define NOISE_TEMPORAL 2 -#define NOISE_QUALITY 4 #define NOISE_AVERAGED 8 #define NOISE_PATTERN 16 @@ -76,7 +75,6 @@ typedef struct { {#name"f", "set component #"#x" flags", OFFSET(param.flags), AV_OPT_TYPE_FLAGS, {.i64=0}, 0, 31, FLAGS, #name"_flags"}, \ {"a", "averaged noise", 0, AV_OPT_TYPE_CONST, {.i64=NOISE_AVERAGED}, 0, 0, FLAGS, #name"_flags"}, \ {"p", "(semi)regular pattern", 0, AV_OPT_TYPE_CONST, {.i64=NOISE_PATTERN}, 0, 0, FLAGS, #name"_flags"}, \ - {"q", "high quality", 0, AV_OPT_TYPE_CONST, {.i64=NOISE_QUALITY}, 0, 0, FLAGS, #name"_flags"}, \ {"t", "temporal noise", 0, AV_OPT_TYPE_CONST, {.i64=NOISE_TEMPORAL}, 0, 0, FLAGS, #name"_flags"}, \ {"u", "uniform noise", 0, AV_OPT_TYPE_CONST, {.i64=NOISE_UNIFORM}, 0, 0, FLAGS, #name"_flags"}, @@ -274,9 +272,6 @@ static void noise(uint8_t *dst, const uint8_t *src, else shift = n->rand_shift[y]; - if (!(flags & NOISE_QUALITY)) - shift &= ~7; - if (flags & NOISE_AVERAGED) { line_noise_avg(dst, src, width, n->param[comp].prev_shift[y]); n->param[comp].prev_shift[y][n->param[comp].shiftptr] = noise + shift; |