Use designated initializers for webrtc::SimulcastStream
Style change extracted from https://webrtc-review.googlesource.com/c/src/+/264800 Bug: webrtc:11607 Change-Id: I3dd5ca1eef8d70a61023af37d90032225e40b55d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267841 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37442}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
11fdb08282
commit
39b1b42487
@ -42,33 +42,33 @@ TEST(EncoderSimulcastProxy, ChoosesCorrectImplementation) {
|
||||
"SimulcastEncoderAdapter (Fake, Fake, Fake)";
|
||||
VideoCodec codec_settings;
|
||||
webrtc::test::CodecSettings(kVideoCodecVP8, &codec_settings);
|
||||
codec_settings.simulcastStream[0] = {test::kTestWidth,
|
||||
test::kTestHeight,
|
||||
test::kTestFrameRate,
|
||||
2,
|
||||
2000,
|
||||
1000,
|
||||
1000,
|
||||
56,
|
||||
true};
|
||||
codec_settings.simulcastStream[1] = {test::kTestWidth,
|
||||
test::kTestHeight,
|
||||
test::kTestFrameRate,
|
||||
2,
|
||||
3000,
|
||||
1000,
|
||||
1000,
|
||||
56,
|
||||
true};
|
||||
codec_settings.simulcastStream[2] = {test::kTestWidth,
|
||||
test::kTestHeight,
|
||||
test::kTestFrameRate,
|
||||
2,
|
||||
5000,
|
||||
1000,
|
||||
1000,
|
||||
56,
|
||||
true};
|
||||
codec_settings.simulcastStream[0] = {.width = test::kTestWidth,
|
||||
.height = test::kTestHeight,
|
||||
.maxFramerate = test::kTestFrameRate,
|
||||
.numberOfTemporalLayers = 2,
|
||||
.maxBitrate = 2000,
|
||||
.targetBitrate = 1000,
|
||||
.minBitrate = 1000,
|
||||
.qpMax = 56,
|
||||
.active = true};
|
||||
codec_settings.simulcastStream[1] = {.width = test::kTestWidth,
|
||||
.height = test::kTestHeight,
|
||||
.maxFramerate = test::kTestFrameRate,
|
||||
.numberOfTemporalLayers = 2,
|
||||
.maxBitrate = 3000,
|
||||
.targetBitrate = 1000,
|
||||
.minBitrate = 1000,
|
||||
.qpMax = 56,
|
||||
.active = true};
|
||||
codec_settings.simulcastStream[2] = {.width = test::kTestWidth,
|
||||
.height = test::kTestHeight,
|
||||
.maxFramerate = test::kTestFrameRate,
|
||||
.numberOfTemporalLayers = 2,
|
||||
.maxBitrate = 5000,
|
||||
.targetBitrate = 1000,
|
||||
.minBitrate = 1000,
|
||||
.qpMax = 56,
|
||||
.active = true};
|
||||
codec_settings.numberOfSimulcastStreams = 3;
|
||||
|
||||
auto mock_encoder = std::make_unique<NiceMock<MockVideoEncoder>>();
|
||||
|
||||
Reference in New Issue
Block a user