From d3bf4d4142457ad9ed0882dec2317b3f18c0919e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85sa=20Persson?= Date: Thu, 2 Sep 2021 13:19:05 +0200 Subject: [PATCH] CallPerfTest: Add encode framerate test with lower input fps. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verify if framerate expectation on top layer can be enabled. Bug: webrtc:13031 Change-Id: Ib720b808ce7b0cf8ad932d9d5307322b04a4b066 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/231126 Reviewed-by: Björn Terelius Commit-Queue: Åsa Persson Cr-Commit-Position: refs/heads/main@{#34907} --- call/call_perf_tests.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/call/call_perf_tests.cc b/call/call_perf_tests.cc index 8510af475e..f4a20b82fe 100644 --- a/call/call_perf_tests.cc +++ b/call/call_perf_tests.cc @@ -1187,4 +1187,16 @@ TEST_F(CallPerfTest, TestEncodeFramerateVp8Simulcast) { /*max_framerates=*/{20, 30}); } +TEST_F(CallPerfTest, TestEncodeFramerateVp8SimulcastLowerInputFps) { + InternalEncoderFactory internal_encoder_factory; + test::FunctionVideoEncoderFactory encoder_factory( + [&internal_encoder_factory]() { + return std::make_unique( + &internal_encoder_factory, SdpVideoFormat("VP8")); + }); + + TestEncodeFramerate(&encoder_factory, "VP8", + /*max_framerates=*/{14, 20}); +} + } // namespace webrtc