/external/webrtc/video/ |
D | encoder_overshoot_detector_unittest.cc | 25 : detector_(kWindowSizeMs), in EncoderOvershootDetectorTest() 66 static constexpr int64_t kWindowSizeMs = 3000; member in webrtc::EncoderOvershootDetectorTest 93 RunConstantUtilizationTest(1.0, 1.0, 0.01, kWindowSizeMs); in TEST_F() 99 RunConstantUtilizationTest(0.5, 1.0, 0.00, kWindowSizeMs); in TEST_F() 105 RunConstantUtilizationTest(1.2, 1.2, 0.01, kWindowSizeMs); in TEST_F() 111 RunConstantUtilizationTest(1.2, 1.2, 0.01, kWindowSizeMs); in TEST_F() 113 RunConstantUtilizationTest(1.2, 1.2, 0.01, kWindowSizeMs / 2); in TEST_F() 115 RunConstantUtilizationTest(1.2, 1.2, 0.01, kWindowSizeMs / 2); in TEST_F() 121 RunConstantUtilizationTest(1.1, 1.1, 0.01, kWindowSizeMs); in TEST_F() 124 RunConstantUtilizationTest(1.2, 1.15, 0.01, kWindowSizeMs / 2); in TEST_F() [all …]
|
D | encoder_bitrate_adjuster_unittest.cc | 27 static constexpr int64_t kWindowSizeMs = 3000; member in webrtc::test::EncoderBitrateAdjusterTest 254 InsertFrames({{1.0}}, kWindowSizeMs); in TEST_F() 268 InsertFrames({{1.2}}, kWindowSizeMs); in TEST_F() 282 InsertFrames({{0.5}}, kWindowSizeMs); in TEST_F() 297 InsertFrames({{1.0, 1.0, 1.0}}, kWindowSizeMs); in TEST_F() 312 InsertFrames({{1.1, 1.1, 1.1}}, kWindowSizeMs); in TEST_F() 328 InsertFrames({{0.8, 0.8, 0.8}}, kWindowSizeMs); in TEST_F() 344 InsertFrames({{1.1, 1.2, 1.2}}, kWindowSizeMs); in TEST_F() 363 InsertFrames({{1.1, 1.2, 1.2, 1.2}}, kWindowSizeMs); in TEST_F() 381 InsertFrames({{1.1}}, kWindowSizeMs); in TEST_F() [all …]
|
D | encoder_bitrate_adjuster.h | 26 static constexpr int64_t kWindowSizeMs = 3000;
|
D | encoder_bitrate_adjuster.cc | 43 constexpr int64_t EncoderBitrateAdjuster::kWindowSizeMs; member in webrtc::EncoderBitrateAdjuster 90 std::make_unique<EncoderOvershootDetector>(kWindowSizeMs); in AdjustRateAllocation()
|
/external/webrtc/rtc_base/ |
D | rate_limiter_unittest.cc | 25 : clock_(0), rate_limiter(new RateLimiter(&clock_, kWindowSizeMs)) {} in RateLimitTest() 31 static constexpr int64_t kWindowSizeMs = 1000; member in webrtc::RateLimitTest 35 (kMaxRateBps * kWindowSizeMs) / (8 * 1000); 43 clock_.AdvanceTimeMilliseconds(kWindowSizeMs - 1); in TEST_F() 60 clock_.AdvanceTimeMilliseconds(kWindowSizeMs - 1); in TEST_F() 77 clock_.AdvanceTimeMilliseconds(kWindowSizeMs - 1); in TEST_F() 84 rate_limiter->SetWindowSize(kWindowSizeMs / 2); in TEST_F() 90 rate_limiter->SetWindowSize(kWindowSizeMs); in TEST_F() 105 EXPECT_TRUE(rate_limiter->SetWindowSize(kWindowSizeMs)); in TEST_F() 106 EXPECT_FALSE(rate_limiter->SetWindowSize(kWindowSizeMs + 1)); in TEST_F() [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtp_sender_unittest.cc | 1871 const uint32_t kWindowSizeMs = 1000; in TEST_P() local 1874 (kWindowSizeMs - kPacketInterval) / kPacketInterval; in TEST_P()
|