]> granicus.if.org Git - libvpx/commitdiff
Turn denoiser sensitivity on starting from kf in unit test
authorJingning Han <jingning@google.com>
Tue, 6 Jan 2015 18:04:56 +0000 (10:04 -0800)
committerJingning Han <jingning@google.com>
Tue, 6 Jan 2015 18:08:43 +0000 (10:08 -0800)
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

test/datarate_test.cc

index a76d806bfdbe17ec52846916987e5290b846f435..3d40148b75e07db9bf01a3bcca42f95f712b941c 100644 (file)
@@ -313,10 +313,11 @@ class DatarateTestVP9Large : public ::libvpx_test::EncoderTest,
 
   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);