summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2020-06-17 10:27:39 -0700
committerMarco Paniconi <marpan@google.com>2020-06-18 09:36:09 -0700
commite9c6cb64744f6df31ba52501d4759b50ba832df2 (patch)
treec9ac57898e01215bb9713423f71d8edbf04793d4 /test
parent3101666d2a8b5b2e6bff14ffb39db685f1cc98a0 (diff)
downloadlibvpx-e9c6cb64744f6df31ba52501d4759b50ba832df2.tar
libvpx-e9c6cb64744f6df31ba52501d4759b50ba832df2.tar.gz
libvpx-e9c6cb64744f6df31ba52501d4759b50ba832df2.tar.bz2
libvpx-e9c6cb64744f6df31ba52501d4759b50ba832df2.zip
vp9-rtc: Fixes to resizer for real-time
Reduce the time before sampling begins (after key) and reduce averaging window, to make resize act faster. Reset RC paramaters for temporal layers on resize. Add per-frame-bandwidth thresholds to force downsize for extreme case, for HD input. Change-Id: I8e08580b2216a2e6981502552025370703cd206c
Diffstat (limited to 'test')
-rw-r--r--test/resize_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/resize_test.cc b/test/resize_test.cc
index d996cbe1b..a2dc5d7a7 100644
--- a/test/resize_test.cc
+++ b/test/resize_test.cc
@@ -672,11 +672,11 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) {
ASSERT_EQ(info->h, GetFrameHeight(idx));
if (info->w != last_w || info->h != last_h) {
resize_count++;
- if (resize_count == 1) {
+ if (resize_count <= 2) {
// Verify that resize down occurs.
ASSERT_LT(info->w, last_w);
ASSERT_LT(info->h, last_h);
- } else if (resize_count == 2) {
+ } else if (resize_count > 2) {
// Verify that resize up occurs.
ASSERT_GT(info->w, last_w);
ASSERT_GT(info->h, last_h);
@@ -687,8 +687,8 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) {
}
#if CONFIG_VP9_DECODER
- // Verify that we get 2 resize events in this test.
- ASSERT_EQ(resize_count, 2) << "Resizing should occur twice.";
+ // Verify that we get 4 resize events in this test.
+ ASSERT_EQ(resize_count, 4) << "Resizing should occur twice.";
EXPECT_EQ(static_cast<unsigned int>(0), GetMismatchFrames());
#else
printf("Warning: VP9 decoder unavailable, unable to check resize count!\n");