OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 void PerformTest() override { | 245 void PerformTest() override { |
246 EXPECT_EQ(kEventSignaled, Wait()) | 246 EXPECT_EQ(kEventSignaled, Wait()) |
247 << "Timed out while waiting for enough frames to be decoded."; | 247 << "Timed out while waiting for enough frames to be decoded."; |
248 } | 248 } |
249 | 249 |
250 void ModifyConfigs(VideoSendStream::Config* send_config, | 250 void ModifyConfigs(VideoSendStream::Config* send_config, |
251 std::vector<VideoReceiveStream::Config>* receive_configs, | 251 std::vector<VideoReceiveStream::Config>* receive_configs, |
252 VideoEncoderConfig* encoder_config) override { | 252 VideoEncoderConfig* encoder_config) override { |
253 send_config->encoder_settings.encoder = encoder_.get(); | 253 send_config->encoder_settings.encoder = encoder_.get(); |
254 send_config->encoder_settings.payload_name = "VP9"; | 254 send_config->encoder_settings.payload_name = "VP9"; |
255 send_config->encoder_settings.payload_type = VCM_VP9_PAYLOAD_TYPE; | 255 send_config->encoder_settings.payload_type = 124; |
256 encoder_config->streams[0].min_bitrate_bps = 50000; | 256 encoder_config->streams[0].min_bitrate_bps = 50000; |
257 encoder_config->streams[0].target_bitrate_bps = | 257 encoder_config->streams[0].target_bitrate_bps = |
258 encoder_config->streams[0].max_bitrate_bps = 2000000; | 258 encoder_config->streams[0].max_bitrate_bps = 2000000; |
259 | 259 |
260 (*receive_configs)[0].renderer = this; | 260 (*receive_configs)[0].renderer = this; |
261 (*receive_configs)[0].decoders.resize(1); | 261 (*receive_configs)[0].decoders.resize(1); |
262 (*receive_configs)[0].decoders[0].payload_type = | 262 (*receive_configs)[0].decoders[0].payload_type = |
263 send_config->encoder_settings.payload_type; | 263 send_config->encoder_settings.payload_type; |
264 (*receive_configs)[0].decoders[0].payload_name = | 264 (*receive_configs)[0].decoders[0].payload_name = |
265 send_config->encoder_settings.payload_name; | 265 send_config->encoder_settings.payload_name; |
(...skipping 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2831 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) | 2831 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) |
2832 << "Enabling RTX requires rtpmap: rtx negotiation."; | 2832 << "Enabling RTX requires rtpmap: rtx negotiation."; |
2833 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) | 2833 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) |
2834 << "Enabling RTP extensions require negotiation."; | 2834 << "Enabling RTP extensions require negotiation."; |
2835 | 2835 |
2836 VerifyEmptyNackConfig(default_receive_config.rtp.nack); | 2836 VerifyEmptyNackConfig(default_receive_config.rtp.nack); |
2837 VerifyEmptyFecConfig(default_receive_config.rtp.fec); | 2837 VerifyEmptyFecConfig(default_receive_config.rtp.fec); |
2838 } | 2838 } |
2839 | 2839 |
2840 } // namespace webrtc | 2840 } // namespace webrtc |
OLD | NEW |