Commit 204cde58 authored by jackychen's avatar jackychen
Browse files

Enable resize test(down&up) by changing the bitrate.

Change-Id: I5a4f1f7b9de20fbfc28cb743dcd29c0eeca736f8
parent 988fd77c
...@@ -407,7 +407,7 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) { ...@@ -407,7 +407,7 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) {
// Disable dropped frames. // Disable dropped frames.
cfg_.rc_dropframe_thresh = 0; cfg_.rc_dropframe_thresh = 0;
// Starting bitrate low. // Starting bitrate low.
cfg_.rc_target_bitrate = 90; cfg_.rc_target_bitrate = 80;
ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
unsigned int last_w = cfg_.g_w; unsigned int last_w = cfg_.g_w;
...@@ -431,10 +431,8 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) { ...@@ -431,10 +431,8 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) {
} }
} }
// Verify that we get at least 1 resize event in this test. // Verify that we get 2 resize events in this test.
// TODO(marpan): We should be able to force 2 resize events ASSERT_EQ(resize_count, 2) << "Resizing should occur twice.";
// with some change in encoder settings/bitrate.
ASSERT_GE(resize_count, 1) << "Resizing should occur at least once.";
} }
vpx_img_fmt_t CspForFrameNumber(int frame) { vpx_img_fmt_t CspForFrameNumber(int frame) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment