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

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

Issue 2060403002: Add task queue to Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@move_getpadding
Patch Set: Use SequencedTaskChecker in i420_buffer_pool.cc Created 4 years, 5 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
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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 test::LayerFilteringTransport transport( 1115 test::LayerFilteringTransport transport(
1116 params.pipe, call.get(), kPayloadTypeVP8, kPayloadTypeVP9, 1116 params.pipe, call.get(), kPayloadTypeVP8, kPayloadTypeVP9,
1117 params.common.selected_tl, params_.ss.selected_sl); 1117 params.common.selected_tl, params_.ss.selected_sl);
1118 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at 1118 // TODO(ivica): Use two calls to be able to merge with RunWithAnalyzer or at
1119 // least share as much code as possible. That way this test would also match 1119 // least share as much code as possible. That way this test would also match
1120 // the full stack tests better. 1120 // the full stack tests better.
1121 transport.SetReceiver(call->Receiver()); 1121 transport.SetReceiver(call->Receiver());
1122 1122
1123 SetupCommon(&transport, &transport); 1123 SetupCommon(&transport, &transport);
1124 1124
1125 video_send_config_.local_renderer = local_preview.get(); 1125 video_send_config_.pre_encode_callback = local_preview.get();
1126 video_receive_configs_[stream_id].renderer = loopback_video.get(); 1126 video_receive_configs_[stream_id].renderer = loopback_video.get();
1127 1127
1128 video_send_config_.suspend_below_min_bitrate = 1128 video_send_config_.suspend_below_min_bitrate =
1129 params_.common.suspend_below_min_bitrate; 1129 params_.common.suspend_below_min_bitrate;
1130 1130
1131 if (params.common.fec) { 1131 if (params.common.fec) {
1132 video_send_config_.rtp.fec.red_payload_type = kRedPayloadType; 1132 video_send_config_.rtp.fec.red_payload_type = kRedPayloadType;
1133 video_send_config_.rtp.fec.ulpfec_payload_type = kUlpfecPayloadType; 1133 video_send_config_.rtp.fec.ulpfec_payload_type = kUlpfecPayloadType;
1134 video_receive_configs_[stream_id].rtp.fec.red_payload_type = 1134 video_receive_configs_[stream_id].rtp.fec.red_payload_type =
1135 kRedPayloadType; 1135 kRedPayloadType;
1136 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type = 1136 video_receive_configs_[stream_id].rtp.fec.ulpfec_payload_type =
1137 kUlpfecPayloadType; 1137 kUlpfecPayloadType;
1138 } 1138 }
1139 1139
1140 if (params_.screenshare.enabled) 1140 if (params_.screenshare.enabled)
1141 SetupScreenshare(); 1141 SetupScreenshare();
1142 1142
1143 video_send_stream_ = 1143 video_send_stream_ = call->CreateVideoSendStream(
1144 call->CreateVideoSendStream(video_send_config_, video_encoder_config_); 1144 video_send_config_.Copy(), video_encoder_config_.Copy());
1145 VideoReceiveStream* receive_stream = 1145 VideoReceiveStream* receive_stream =
1146 call->CreateVideoReceiveStream(video_receive_configs_[stream_id].Copy()); 1146 call->CreateVideoReceiveStream(video_receive_configs_[stream_id].Copy());
1147 CreateCapturer(video_send_stream_->Input()); 1147 CreateCapturer(video_send_stream_->Input());
1148 1148
1149 receive_stream->Start(); 1149 receive_stream->Start();
1150 video_send_stream_->Start(); 1150 video_send_stream_->Start();
1151 capturer_->Start(); 1151 capturer_->Start();
1152 1152
1153 test::PressEnterToContinue(); 1153 test::PressEnterToContinue();
1154 1154
1155 capturer_->Stop(); 1155 capturer_->Stop();
1156 video_send_stream_->Stop(); 1156 video_send_stream_->Stop();
1157 receive_stream->Stop(); 1157 receive_stream->Stop();
1158 1158
1159 call->DestroyVideoReceiveStream(receive_stream); 1159 call->DestroyVideoReceiveStream(receive_stream);
1160 call->DestroyVideoSendStream(video_send_stream_); 1160 call->DestroyVideoSendStream(video_send_stream_);
1161 1161
1162 transport.StopSending(); 1162 transport.StopSending();
1163 } 1163 }
1164 1164
1165 } // namespace webrtc 1165 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698