Revert "Refactor rate profile update."
This reverts commit b6cdfdc165d76d86a67d829e0ccec50c36106e73. Reason for revert: breaks downstream projects Original change's description: > Refactor rate profile update. > > RateProfile::frame_num specifies frame at which this rate profile > should be applied. > > Bug: none > Change-Id: I003ee43f44299a49d83f547558284817bfaeacc0 > Reviewed-on: https://webrtc-review.googlesource.com/c/115242 > Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> > Reviewed-by: Seth Hampson <shampson@webrtc.org> > Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#26080} TBR=ilnik@webrtc.org,shampson@webrtc.org,ssilkin@webrtc.org Change-Id: I5957a0169841008436d1db70403d3694bf25d5cf No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: none Reviewed-on: https://webrtc-review.googlesource.com/c/115400 Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26081}
This commit is contained in:
committed by
Commit Bot
parent
b6cdfdc165
commit
a1f78a4fa6
@ -54,7 +54,8 @@ TEST(VideoCodecTestMediaCodec, ForemanCif500kbpsVp8) {
|
||||
352, 288);
|
||||
auto fixture = CreateTestFixtureWithConfig(config);
|
||||
|
||||
std::vector<RateProfile> rate_profiles = {{500, kForemanFramerateFps, 0}};
|
||||
std::vector<RateProfile> rate_profiles = {
|
||||
{500, kForemanFramerateFps, kForemanNumFrames}};
|
||||
|
||||
// The thresholds below may have to be tweaked to let even poor MediaCodec
|
||||
// implementations pass. If this test fails on the bots, disable it and
|
||||
@ -76,7 +77,8 @@ TEST(VideoCodecTestMediaCodec, ForemanCif500kbpsH264CBP) {
|
||||
352, 288);
|
||||
auto fixture = CreateTestFixtureWithConfig(config);
|
||||
|
||||
std::vector<RateProfile> rate_profiles = {{500, kForemanFramerateFps, 0}};
|
||||
std::vector<RateProfile> rate_profiles = {
|
||||
{500, kForemanFramerateFps, kForemanNumFrames}};
|
||||
|
||||
// The thresholds below may have to be tweaked to let even poor MediaCodec
|
||||
// implementations pass. If this test fails on the bots, disable it and
|
||||
@ -102,7 +104,8 @@ TEST(VideoCodecTestMediaCodec, DISABLED_ForemanCif500kbpsH264CHP) {
|
||||
352, 288);
|
||||
auto fixture = CreateTestFixtureWithConfig(config);
|
||||
|
||||
std::vector<RateProfile> rate_profiles = {{500, kForemanFramerateFps, 0}};
|
||||
std::vector<RateProfile> rate_profiles = {
|
||||
{500, kForemanFramerateFps, kForemanNumFrames}};
|
||||
|
||||
// The thresholds below may have to be tweaked to let even poor MediaCodec
|
||||
// implementations pass. If this test fails on the bots, disable it and
|
||||
@ -123,7 +126,7 @@ TEST(VideoCodecTestMediaCodec, ForemanMixedRes100kbpsVp8H264) {
|
||||
const std::vector<std::tuple<int, int>> resolutions = {
|
||||
{128, 96}, {160, 120}, {176, 144}, {240, 136}, {320, 240}, {480, 272}};
|
||||
const std::vector<RateProfile> rate_profiles = {
|
||||
{100, kForemanFramerateFps, 0}};
|
||||
{100, kForemanFramerateFps, kNumFrames}};
|
||||
const std::vector<QualityThresholds> quality_thresholds = {
|
||||
{29, 26, 0.8, 0.75}};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user