diff options
author | Marco Paniconi <marpan@google.com> | 2014-07-14 18:15:39 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2014-07-15 09:51:03 -0700 |
commit | 21042c7154c87048fd1b056d8c905ddf2352185f (patch) | |
tree | c0b30ec68b016ff4e454a1e1d79b19cdc97cea82 /examples | |
parent | 1f6aaeddc54bd74fa9f6ba9cf467d31951f580a7 (diff) | |
download | libvpx-21042c7154c87048fd1b056d8c905ddf2352185f.tar libvpx-21042c7154c87048fd1b056d8c905ddf2352185f.tar.gz libvpx-21042c7154c87048fd1b056d8c905ddf2352185f.tar.bz2 libvpx-21042c7154c87048fd1b056d8c905ddf2352185f.zip |
vp8: Allow for on/off control of UV temporal denoiser.
Use noise_sensitivity level for enabling UV denoiser.
Change-Id: Ib208786a6fdf654981bcd96a3cf44e8e678025c1
Diffstat (limited to 'examples')
-rw-r--r-- | examples/vpx_temporal_svc_encoder.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c index 9f32bd8fe..e4616ef69 100644 --- a/examples/vpx_temporal_svc_encoder.c +++ b/examples/vpx_temporal_svc_encoder.c @@ -32,6 +32,14 @@ void usage_exit() { exit(EXIT_FAILURE); } +// Denoiser states, for temporal denoising. +enum denoiserState { + kDenoiserOff, + kDenoiserOnYOnly, + kDenoiserOnYUV, + kDenoiserOnYUVAggressive // Aggressive mode not implemented currently. +}; + static int mode_to_num_layers[12] = {1, 2, 2, 3, 3, 3, 3, 5, 2, 3, 3, 3}; // For rate control encoding stats. @@ -571,7 +579,7 @@ int main(int argc, char **argv) { if (strncmp(encoder->name, "vp8", 3) == 0) { vpx_codec_control(&codec, VP8E_SET_CPUUSED, -speed); - vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, 1); + vpx_codec_control(&codec, VP8E_SET_NOISE_SENSITIVITY, kDenoiserOnYUV); } else if (strncmp(encoder->name, "vp9", 3) == 0) { vpx_codec_control(&codec, VP8E_SET_CPUUSED, speed); vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3); |