From 72c69e14ad7b5375fed113c025dca70d20fcaf0a Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 11 Oct 2017 11:06:34 -0700 Subject: [PATCH] Adjust threshold in datarate tests for 1 pass VBR Small increase in threshold for the 1 pass VBR datarate tests. Needed due to commit: <017257a Adjustment to scene detection and key frame> Change-Id: I28b3bd7db2192a8cc2bccc3cb0e3b8dbb910ca16 --- test/datarate_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/datarate_test.cc b/test/datarate_test.cc index 3229b69f3..7b0d62818 100644 --- a/test/datarate_test.cc +++ b/test/datarate_test.cc @@ -649,7 +649,7 @@ TEST_P(DatarateTestVP9Large, BasicRateTargetingVBRLagZero) { ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); ASSERT_GE(effective_datarate_[0], cfg_.rc_target_bitrate * 0.75) << " The datarate for the file is lower than target by too much!"; - ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.25) + ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.30) << " The datarate for the file is greater than target by too much!"; } } @@ -676,7 +676,7 @@ TEST_P(DatarateTestVP9Large, BasicRateTargetingVBRLagNonZero) { ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); ASSERT_GE(effective_datarate_[0], cfg_.rc_target_bitrate * 0.75) << " The datarate for the file is lower than target by too much!"; - ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.25) + ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.30) << " The datarate for the file is greater than target by too much!"; } } @@ -706,7 +706,7 @@ TEST_P(DatarateTestVP9Large, BasicRateTargetingVBRLagNonZeroFrameParDecOff) { ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); ASSERT_GE(effective_datarate_[0], cfg_.rc_target_bitrate * 0.75) << " The datarate for the file is lower than target by too much!"; - ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.25) + ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.30) << " The datarate for the file is greater than target by too much!"; } }