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

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

Issue 2997393002: Move rtp dump writer from quality test to test transport (Closed)
Patch Set: Deps Created 3 years, 3 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/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.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 10
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 flags::Codec(), 278 flags::Codec(),
279 flags::NumTemporalLayers(), 279 flags::NumTemporalLayers(),
280 flags::SelectedTL(), 280 flags::SelectedTL(),
281 0, // No min transmit bitrate. 281 0, // No min transmit bitrate.
282 flags::FLAG_use_ulpfec, 282 flags::FLAG_use_ulpfec,
283 flags::FLAG_use_flexfec, 283 flags::FLAG_use_flexfec,
284 flags::Clip(), 284 flags::Clip(),
285 flags::GetCaptureDevice()}; 285 flags::GetCaptureDevice()};
286 params.audio = {flags::FLAG_audio, flags::FLAG_audio_video_sync, 286 params.audio = {flags::FLAG_audio, flags::FLAG_audio_video_sync,
287 flags::FLAG_audio_dtx}; 287 flags::FLAG_audio_dtx};
288 params.logging = {flags::FLAG_logs, flags::FLAG_rtc_event_log_name, 288 params.logging = {flags::FLAG_logs, flags::RtcEventLogName(),
289 flags::FLAG_rtp_dump_name, flags::FLAG_encoded_frame_path}; 289 flags::RtpDumpName(), flags::EncodedFramePath()};
290 params.screenshare.enabled = false; 290 params.screenshare.enabled = false;
291 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(), 291 params.analyzer = {"video", 0.0, 0.0, flags::DurationSecs(),
292 flags::OutputFilename(), flags::GraphTitle()}; 292 flags::OutputFilename(), flags::GraphTitle()};
293 params.pipe = pipe_config; 293 params.pipe = pipe_config;
294 294
295 if (flags::NumStreams() > 1 && flags::Stream0().empty() && 295 if (flags::NumStreams() > 1 && flags::Stream0().empty() &&
296 flags::Stream1().empty()) { 296 flags::Stream1().empty()) {
297 params.ss.infer_streams = true; 297 params.ss.infer_streams = true;
298 } 298 }
299 299
(...skipping 11 matching lines...) Expand all
311 if (flags::DurationSecs()) { 311 if (flags::DurationSecs()) {
312 test.RunWithAnalyzer(params); 312 test.RunWithAnalyzer(params);
313 } else { 313 } else {
314 test.RunWithRenderers(params); 314 test.RunWithRenderers(params);
315 } 315 }
316 } 316 }
317 } // namespace webrtc 317 } // namespace webrtc
318 318
319 int main(int argc, char* argv[]) { 319 int main(int argc, char* argv[]) {
320 ::testing::InitGoogleTest(&argc, argv); 320 ::testing::InitGoogleTest(&argc, argv);
321 rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 321 int flags_status = rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
322 if (webrtc::flags::FLAG_help) { 322 if (webrtc::flags::FLAG_help || flags_status > 0) {
323 rtc::FlagList::Print(nullptr, false); 323 rtc::FlagList::Print(nullptr, false);
324 return 0; 324 return 0;
325 } 325 }
326 326
327 // InitFieldTrialsFromString needs a reference to an std::string instance, 327 // InitFieldTrialsFromString needs a reference to an std::string instance,
328 // with a scope that outlives the test. 328 // with a scope that outlives the test.
329 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials; 329 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials;
330 webrtc::test::InitFieldTrialsFromString(field_trials); 330 webrtc::test::InitFieldTrialsFromString(field_trials);
331 331
332 webrtc::test::RunTest(webrtc::Loopback); 332 webrtc::test::RunTest(webrtc::Loopback);
333 return 0; 333 return 0;
334 } 334 }
OLDNEW
« no previous file with comments | « webrtc/video/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698