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

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

Issue 2042603002: Movable support for VideoReceiveStream::Config and avoid copies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add TODO Created 4 years, 6 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/rtp_stream_receiver.cc ('k') | webrtc/video/video_receive_stream.h » ('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 <stdio.h> 10 #include <stdio.h>
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = 1133 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type =
1134 kUlpfecPayloadType; 1134 kUlpfecPayloadType;
1135 } 1135 }
1136 1136
1137 if (params_.screenshare.enabled) 1137 if (params_.screenshare.enabled)
1138 SetupScreenshare(); 1138 SetupScreenshare();
1139 1139
1140 video_send_stream_ = 1140 video_send_stream_ =
1141 call->CreateVideoSendStream(video_send_config_, video_encoder_config_); 1141 call->CreateVideoSendStream(video_send_config_, video_encoder_config_);
1142 VideoReceiveStream* receive_stream = 1142 VideoReceiveStream* receive_stream =
1143 call->CreateVideoReceiveStream(video_receive_configs_[stream_id]); 1143 call->CreateVideoReceiveStream(video_receive_configs_[stream_id].Copy());
1144 CreateCapturer(video_send_stream_->Input()); 1144 CreateCapturer(video_send_stream_->Input());
1145 1145
1146 receive_stream->Start(); 1146 receive_stream->Start();
1147 video_send_stream_->Start(); 1147 video_send_stream_->Start();
1148 capturer_->Start(); 1148 capturer_->Start();
1149 1149
1150 test::PressEnterToContinue(); 1150 test::PressEnterToContinue();
1151 1151
1152 capturer_->Stop(); 1152 capturer_->Stop();
1153 video_send_stream_->Stop(); 1153 video_send_stream_->Stop();
1154 receive_stream->Stop(); 1154 receive_stream->Stop();
1155 1155
1156 call->DestroyVideoReceiveStream(receive_stream); 1156 call->DestroyVideoReceiveStream(receive_stream);
1157 call->DestroyVideoSendStream(video_send_stream_); 1157 call->DestroyVideoSendStream(video_send_stream_);
1158 1158
1159 transport.StopSending(); 1159 transport.StopSending();
1160 } 1160 }
1161 1161
1162 } // namespace webrtc 1162 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/rtp_stream_receiver.cc ('k') | webrtc/video/video_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698