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

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

Issue 2974903002: Add rtpdump and rtc log functionality to screenshare_loopback and video_loopback (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « webrtc/video/full_stack_tests.cc ('k') | webrtc/video/video_loopback.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int NumTemporalLayers() { 62 int NumTemporalLayers() {
63 return static_cast<int>(FLAG_num_temporal_layers); 63 return static_cast<int>(FLAG_num_temporal_layers);
64 } 64 }
65 65
66 // Flags common with video loopback, with equal default values. 66 // Flags common with video loopback, with equal default values.
67 DEFINE_string(codec, "VP8", "Video codec to use."); 67 DEFINE_string(codec, "VP8", "Video codec to use.");
68 std::string Codec() { 68 std::string Codec() {
69 return static_cast<std::string>(FLAG_codec); 69 return static_cast<std::string>(FLAG_codec);
70 } 70 }
71 71
72 DEFINE_string(rtc_event_log_name, "", "Filename for rtc event log.");
73 std::string RtcEventLogName() {
74 return static_cast<std::string>(FLAG_rtc_event_log_name);
75 }
76
77 DEFINE_string(rtp_dump_name, "", "Filename for dumped received RTP stream.");
78 std::string RtpDumpName() {
79 return static_cast<std::string>(FLAG_rtp_dump_name);
80 }
81
72 DEFINE_int(selected_tl, 82 DEFINE_int(selected_tl,
73 -1, 83 -1,
74 "Temporal layer to show or analyze. -1 to disable filtering."); 84 "Temporal layer to show or analyze. -1 to disable filtering.");
75 int SelectedTL() { 85 int SelectedTL() {
76 return static_cast<int>(FLAG_selected_tl); 86 return static_cast<int>(FLAG_selected_tl);
77 } 87 }
78 88
79 DEFINE_int( 89 DEFINE_int(
80 duration, 90 duration,
81 0, 91 0,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 flags::MinBitrateKbps() * 1000, 270 flags::MinBitrateKbps() * 1000,
261 flags::TargetBitrateKbps() * 1000, 271 flags::TargetBitrateKbps() * 1000,
262 flags::MaxBitrateKbps() * 1000, 272 flags::MaxBitrateKbps() * 1000,
263 false, 273 false,
264 flags::Codec(), 274 flags::Codec(),
265 flags::NumTemporalLayers(), 275 flags::NumTemporalLayers(),
266 flags::SelectedTL(), 276 flags::SelectedTL(),
267 flags::MinTransmitBitrateKbps() * 1000, 277 flags::MinTransmitBitrateKbps() * 1000,
268 false, // ULPFEC disabled. 278 false, // ULPFEC disabled.
269 false, // FlexFEC disabled. 279 false, // FlexFEC disabled.
270 flags::EncodedFramePath(),
271 ""}; 280 ""};
272 params.screenshare = {true, flags::SlideChangeInterval(), 281 params.screenshare = {true, flags::SlideChangeInterval(),
273 flags::ScrollDuration(), flags::Slides()}; 282 flags::ScrollDuration(), flags::Slides()};
274 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(), 283 params.analyzer = {"screenshare", 0.0, 0.0, flags::DurationSecs(),
275 flags::OutputFilename(), flags::GraphTitle()}; 284 flags::OutputFilename(), flags::GraphTitle()};
276 params.pipe = pipe_config; 285 params.pipe = pipe_config;
277 params.logs = flags::FLAG_logs; 286 params.logging = {flags::FLAG_logs, flags::RtcEventLogName(),
287 flags::RtpDumpName(), flags::EncodedFramePath()};
278 288
279 if (flags::NumStreams() > 1 && flags::Stream0().empty() && 289 if (flags::NumStreams() > 1 && flags::Stream0().empty() &&
280 flags::Stream1().empty()) { 290 flags::Stream1().empty()) {
281 params.ss.infer_streams = true; 291 params.ss.infer_streams = true;
282 } 292 }
283 293
284 std::vector<std::string> stream_descriptors; 294 std::vector<std::string> stream_descriptors;
285 stream_descriptors.push_back(flags::Stream0()); 295 stream_descriptors.push_back(flags::Stream0());
286 stream_descriptors.push_back(flags::Stream1()); 296 stream_descriptors.push_back(flags::Stream1());
287 std::vector<std::string> SL_descriptors; 297 std::vector<std::string> SL_descriptors;
(...skipping 21 matching lines...) Expand all
309 } 319 }
310 320
311 // InitFieldTrialsFromString needs a reference to an std::string instance, 321 // InitFieldTrialsFromString needs a reference to an std::string instance,
312 // with a scope that outlives the test. 322 // with a scope that outlives the test.
313 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials; 323 std::string field_trials = webrtc::flags::FLAG_force_fieldtrials;
314 webrtc::test::InitFieldTrialsFromString(field_trials); 324 webrtc::test::InitFieldTrialsFromString(field_trials);
315 325
316 webrtc::test::RunTest(webrtc::Loopback); 326 webrtc::test::RunTest(webrtc::Loopback);
317 return 0; 327 return 0;
318 } 328 }
OLDNEW
« no previous file with comments | « webrtc/video/full_stack_tests.cc ('k') | webrtc/video/video_loopback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698