Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: webrtc/video/video_quality_test.cc

Issue 2351633002: Let ViEEncoder handle resolution changes. (Closed)
Patch Set: rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 "webrtc/video/video_quality_test.h" 10 #include "webrtc/video/video_quality_test.h"
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 video_send_config_.rtp.extensions.push_back( 1007 video_send_config_.rtp.extensions.push_back(
1008 RtpExtension(RtpExtension::kTransportSequenceNumberUri, 1008 RtpExtension(RtpExtension::kTransportSequenceNumberUri,
1009 test::kTransportSequenceNumberExtensionId)); 1009 test::kTransportSequenceNumberExtensionId));
1010 } else { 1010 } else {
1011 video_send_config_.rtp.extensions.push_back(RtpExtension( 1011 video_send_config_.rtp.extensions.push_back(RtpExtension(
1012 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); 1012 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId));
1013 } 1013 }
1014 1014
1015 video_encoder_config_.min_transmit_bitrate_bps = 1015 video_encoder_config_.min_transmit_bitrate_bps =
1016 params_.common.min_transmit_bps; 1016 params_.common.min_transmit_bps;
1017 video_encoder_config_.streams = params_.ss.streams; 1017 test::FillEncoderConfiguration(params_.ss.streams.size(),
1018 &video_encoder_config_);
1018 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; 1019 video_encoder_config_.spatial_layers = params_.ss.spatial_layers;
1019 1020
1020 CreateMatchingReceiveConfigs(recv_transport); 1021 CreateMatchingReceiveConfigs(recv_transport);
1021 1022
1022 for (size_t i = 0; i < num_streams; ++i) { 1023 for (size_t i = 0; i < num_streams; ++i) {
1023 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; 1024 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs;
1024 video_receive_configs_[i].rtp.rtx[payload_type].ssrc = kSendRtxSsrcs[i]; 1025 video_receive_configs_[i].rtp.rtx[payload_type].ssrc = kSendRtxSsrcs[i];
1025 video_receive_configs_[i].rtp.rtx[payload_type].payload_type = 1026 video_receive_configs_[i].rtp.rtx[payload_type].payload_type =
1026 kSendRtxPayloadType; 1027 kSendRtxPayloadType;
1027 video_receive_configs_[i].rtp.transport_cc = params_.common.send_side_bwe; 1028 video_receive_configs_[i].rtp.transport_cc = params_.common.send_side_bwe;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 std::ostringstream str; 1391 std::ostringstream str;
1391 str << receive_logs_++; 1392 str << receive_logs_++;
1392 std::string path = 1393 std::string path =
1393 params_.common.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1394 params_.common.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1394 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1395 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1395 10000000); 1396 10000000);
1396 } 1397 }
1397 } 1398 }
1398 1399
1399 } // namespace webrtc 1400 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698