shithub: libvpx

Download patch

ref: e70b8ccd5216871793927d216df150a13e9d1bdc
parent: 7c4aed2ccc4dacf7cb79838d40a961b13cdc4659
author: Jerome Jiang <jianj@google.com>
date: Thu Aug 9 12:55:47 EDT 2018

Change target bitrate in vp9 datarate test.

Due to the change of clip.

Change-Id: Ibbe1a865df0837c349770287d148081230d10aaa

--- a/test/vp9_datarate_test.cc
+++ b/test/vp9_datarate_test.cc
@@ -627,7 +627,7 @@
 
   ::libvpx_test::I420VideoSource video("niklas_640_480_30.yuv", 640, 480, 30, 1,
                                        0, 400);
-  cfg_.rc_target_bitrate = 200;
+  cfg_.rc_target_bitrate = 400;
   ResetModel();
   // 40-20-40 bitrate allocation for 3 temporal layers.
   cfg_.layer_target_bitrate[0] = 40 * cfg_.rc_target_bitrate / 100;
@@ -650,8 +650,8 @@
         << j;
     // Expect some frame drops in this test: for this 200 frames test,
     // expect at least 10% and not more than 60% drops.
-    ASSERT_GE(num_drops_, 20);
-    ASSERT_LE(num_drops_, 130);
+    ASSERT_GE(num_drops_, 40);
+    ASSERT_LE(num_drops_, 240);
   }
 }
 
@@ -752,7 +752,7 @@
   // For the temporal denoiser (#if CONFIG_VP9_TEMPORAL_DENOISING),
   // there is only one denoiser mode: denoiserYonly(which is 1),
   // but may add more modes in the future.
-  cfg_.rc_target_bitrate = 300;
+  cfg_.rc_target_bitrate = 400;
   ResetModel();
   // Turn on the denoiser.
   denoiser_on_ = 1;
@@ -839,7 +839,7 @@
   // For the temporal denoiser (#if CONFIG_VP9_TEMPORAL_DENOISING),
   // there is only one denoiser mode: denoiserYonly(which is 1),
   // but may add more modes in the future.
-  cfg_.rc_target_bitrate = 300;
+  cfg_.rc_target_bitrate = 400;
   ResetModel();
   // The denoiser is off by default.
   denoiser_on_ = 0;