summaryrefslogtreecommitdiff
path: root/test/datarate_test.cc
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2016-02-25 08:38:08 -0800
committerMarco <marpan@google.com>2016-03-01 15:48:42 -0800
commitc83bcb34741c55535727da8e4b66ec24ecd573a9 (patch)
treec6a3eac192fc09518c17bbc0e48b5adc777ba4ad /test/datarate_test.cc
parentdbaf5f64e2d1fbcf2a1953c0c3e62011eaeb8d86 (diff)
downloadlibvpx-c83bcb34741c55535727da8e4b66ec24ecd573a9.tar
libvpx-c83bcb34741c55535727da8e4b66ec24ecd573a9.tar.gz
libvpx-c83bcb34741c55535727da8e4b66ec24ecd573a9.tar.bz2
libvpx-c83bcb34741c55535727da8e4b66ec24ecd573a9.zip
vp9-svc: Allow for 2 stage downscaling for spatial layers.
For 1 pass cbr mode: allow for two-stage 1:2 scaling (which will use the 1:2 optimized scaler) if the spatial layer is 1/4x1/4 of souce. Without this change, the base layer for 3 spatial layers would be using the non-normative scaler which is un-optimized/C code. Change-Id: I9d73f92a4a96927d0f1d6bf75315c1e60513226a
Diffstat (limited to 'test/datarate_test.cc')
-rw-r--r--test/datarate_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/datarate_test.cc b/test/datarate_test.cc
index 821a9ecdc..d6b1b5247 100644
--- a/test/datarate_test.cc
+++ b/test/datarate_test.cc
@@ -957,7 +957,7 @@ TEST_P(DatarateOnePassCbrSvc, OnePassCbrSvc3SpatialLayers) {
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
ASSERT_GE(cfg_.rc_target_bitrate, file_datarate_ * 0.85)
<< " The datarate for the file exceeds the target by too much!";
- ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.17)
+ ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.22)
<< " The datarate for the file is lower than the target by too much!";
EXPECT_EQ(GetMismatchFrames(), (unsigned int) 0);
}
@@ -1035,7 +1035,7 @@ TEST_P(DatarateOnePassCbrSvc, OnePassCbrSvc3SpatialLayers4threads) {
ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
ASSERT_GE(cfg_.rc_target_bitrate, file_datarate_ * 0.85)
<< " The datarate for the file exceeds the target by too much!";
- ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.17)
+ ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.22)
<< " The datarate for the file is lower than the target by too much!";
EXPECT_EQ(GetMismatchFrames(), (unsigned int) 0);
}