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

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

Issue 1937983002: Added flag for FEC for video_loopback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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/video_quality_test.h ('k') | no next file » | 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at 1120 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at
1121 // least share as much code as possible. That way this test would also match 1121 // least share as much code as possible. That way this test would also match
1122 // the full stack tests better. 1122 // the full stack tests better.
1123 transport.SetReceiver(call->Receiver()); 1123 transport.SetReceiver(call->Receiver());
1124 1124
1125 SetupCommon(&transport, &transport); 1125 SetupCommon(&transport, &transport);
1126 1126
1127 video_send_config_.local_renderer = local_preview.get(); 1127 video_send_config_.local_renderer = local_preview.get();
1128 video_receive_configs_[stream_id].renderer = loopback_video.get(); 1128 video_receive_configs_[stream_id].renderer = loopback_video.get();
1129 1129
1130 if (params.common.fec) {
1131 video_send_config_.rtp.fec.red_payload_type = kRedPayloadType;
1132 video_send_config_.rtp.fec.ulpfec_payload_type = kUlpfecPayloadType;
1133 video_receive_configs_[stream_id].rtp.fec.red_payload_type =
1134 kRedPayloadType;
1135 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type =
1136 kUlpfecPayloadType;
1137 }
1138
1130 if (params_.screenshare.enabled) 1139 if (params_.screenshare.enabled)
1131 SetupScreenshare(); 1140 SetupScreenshare();
1132 1141
1133 video_send_stream_ = 1142 video_send_stream_ =
1134 call->CreateVideoSendStream(video_send_config_, video_encoder_config_); 1143 call->CreateVideoSendStream(video_send_config_, video_encoder_config_);
1135 VideoReceiveStream* receive_stream = 1144 VideoReceiveStream* receive_stream =
1136 call->CreateVideoReceiveStream(video_receive_configs_[stream_id]); 1145 call->CreateVideoReceiveStream(video_receive_configs_[stream_id]);
1137 CreateCapturer(video_send_stream_->Input()); 1146 CreateCapturer(video_send_stream_->Input());
1138 1147
1139 receive_stream->Start(); 1148 receive_stream->Start();
1140 video_send_stream_->Start(); 1149 video_send_stream_->Start();
1141 capturer_->Start(); 1150 capturer_->Start();
1142 1151
1143 test::PressEnterToContinue(); 1152 test::PressEnterToContinue();
1144 1153
1145 capturer_->Stop(); 1154 capturer_->Stop();
1146 video_send_stream_->Stop(); 1155 video_send_stream_->Stop();
1147 receive_stream->Stop(); 1156 receive_stream->Stop();
1148 1157
1149 call->DestroyVideoReceiveStream(receive_stream); 1158 call->DestroyVideoReceiveStream(receive_stream);
1150 call->DestroyVideoSendStream(video_send_stream_); 1159 call->DestroyVideoSendStream(video_send_stream_);
1151 1160
1152 transport.StopSending(); 1161 transport.StopSending();
1153 } 1162 }
1154 1163
1155 } // namespace webrtc 1164 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_quality_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698