Ensure FakeVp8Encoder::GetEncoderInfo() writes EncoderInfo.fps_allocation:
Bug: webrtc:10155 Change-Id: I9ba5ec97319a89890b218758fa230bc27c2a917e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/185805 Commit-Queue: Per Kjellander <perkj@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32241}
This commit is contained in:
committed by
Commit Bot
parent
e820cef534
commit
be0aec2174
@ -903,5 +903,15 @@ void SimulcastTestFixtureImpl::TestDecodeWidthHeightSet() {
|
||||
EXPECT_EQ(0, decoder_->Decode(encoded_frame[2], false, 0));
|
||||
}
|
||||
|
||||
void SimulcastTestFixtureImpl::
|
||||
TestEncoderInfoForDefaultTemporalLayerProfileHasFpsAllocation() {
|
||||
VideoEncoder::EncoderInfo encoder_info = encoder_->GetEncoderInfo();
|
||||
EXPECT_EQ(encoder_info.fps_allocation[0].size(),
|
||||
static_cast<size_t>(kDefaultTemporalLayerProfile[0]));
|
||||
EXPECT_EQ(encoder_info.fps_allocation[1].size(),
|
||||
static_cast<size_t>(kDefaultTemporalLayerProfile[1]));
|
||||
EXPECT_EQ(encoder_info.fps_allocation[2].size(),
|
||||
static_cast<size_t>(kDefaultTemporalLayerProfile[2]));
|
||||
}
|
||||
} // namespace test
|
||||
} // namespace webrtc
|
||||
|
||||
@ -50,6 +50,7 @@ class SimulcastTestFixtureImpl final : public SimulcastTestFixture {
|
||||
void TestSpatioTemporalLayers321PatternEncoder() override;
|
||||
void TestStrideEncodeDecode() override;
|
||||
void TestDecodeWidthHeightSet() override;
|
||||
void TestEncoderInfoForDefaultTemporalLayerProfileHasFpsAllocation() override;
|
||||
|
||||
static void DefaultSettings(VideoCodec* settings,
|
||||
const int* temporal_layer_profile,
|
||||
|
||||
Reference in New Issue
Block a user