shithub: libvpx

Download patch

ref: 5b860e1251c62f0561274ffdec53ec879250b268
parent: 1da0402efffff6cd5ba02ce2614edc9a5719c0aa
author: Jingning Han <jingning@google.com>
date: Tue Jan 6 05:04:56 EST 2015

Turn denoiser sensitivity on starting from kf in unit test

The denoiser sensitivity level should be set to 1 starting from
key frame. The internal function of denoiser should make the
temporal denoising operations cut off in key frame coding.

Change-Id: Id3e704a73e98e4ea801284a2cbbab2ea9c371d23

--- a/test/datarate_test.cc
+++ b/test/datarate_test.cc
@@ -313,10 +313,11 @@
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 1)
       encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
-      encoder->Control(VP9E_SET_NOISE_SENSITIVITY, denoiser_on_);
-    }
+
+    encoder->Control(VP9E_SET_NOISE_SENSITIVITY, denoiser_on_);
+
     if (cfg_.ts_number_layers > 1) {
       if (video->frame() == 1) {
         encoder->Control(VP9E_SET_SVC, 1);