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

Side by Side Diff: webrtc/rtc_tools/event_log_visualizer/main.cc

Issue 2996953002: Make path to wav file for jitter buffer simulation in event_log_visualizer configurable. (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 DEFINE_bool(plot_audio_jitter_buffer, 81 DEFINE_bool(plot_audio_jitter_buffer,
82 false, 82 false,
83 "Plot the audio jitter buffer delay profile."); 83 "Plot the audio jitter buffer delay profile.");
84 DEFINE_string( 84 DEFINE_string(
85 force_fieldtrials, 85 force_fieldtrials,
86 "", 86 "",
87 "Field trials control experimental feature code which can be forced. " 87 "Field trials control experimental feature code which can be forced. "
88 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/" 88 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/"
89 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple " 89 " will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
90 "trials are separated by \"/\""); 90 "trials are separated by \"/\"");
91 DEFINE_string(wav_filename,
92 "",
hlundin-webrtc 2017/08/15 11:54:45 Is it possible to use webrtc::test::ResourcePath("
owb1 2017/08/15 13:01:28 This does not seem to work and results in an undef
hlundin-webrtc 2017/08/15 13:51:17 Acknowledged. I thought so too, but figured that m
93 "Path to wav file used for simulation of jitter buffer");
91 DEFINE_bool(help, false, "prints this message"); 94 DEFINE_bool(help, false, "prints this message");
92 95
93 DEFINE_bool( 96 DEFINE_bool(
94 show_detector_state, 97 show_detector_state,
95 false, 98 false,
96 "Mark the delay based bwe detector state on the total bitrate graph"); 99 "Mark the delay based bwe detector state on the total bitrate graph");
97 100
98 int main(int argc, char* argv[]) { 101 int main(int argc, char* argv[]) {
99 std::string program_name = argv[0]; 102 std::string program_name = argv[0];
100 std::string usage = 103 std::string usage =
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 237
235 if (FLAG_plot_all || FLAG_audio_encoder_dtx) { 238 if (FLAG_plot_all || FLAG_audio_encoder_dtx) {
236 analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot()); 239 analyzer.CreateAudioEncoderEnableDtxGraph(collection->AppendNewPlot());
237 } 240 }
238 241
239 if (FLAG_plot_all || FLAG_audio_encoder_num_channels) { 242 if (FLAG_plot_all || FLAG_audio_encoder_num_channels) {
240 analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot()); 243 analyzer.CreateAudioEncoderNumChannelsGraph(collection->AppendNewPlot());
241 } 244 }
242 245
243 if (FLAG_plot_all || FLAG_plot_audio_jitter_buffer) { 246 if (FLAG_plot_all || FLAG_plot_audio_jitter_buffer) {
244 analyzer.CreateAudioJitterBufferGraph( 247 std::string wav_path;
hlundin-webrtc 2017/08/15 11:54:45 If you can't set the flag default as above, I sugg
owb1 2017/08/15 13:01:28 I implemented this version. FLAG_wav_filename is a
hlundin-webrtc 2017/08/15 13:51:17 Oh, I thought it was a c++ string. I must be confu
245 webrtc::test::ResourcePath( 248 if (FLAG_wav_filename[0] != '\0') {
246 "audio_processing/conversational_speech/EN_script2_F_sp2_B1", 249 wav_path = FLAG_wav_filename;
247 "wav"), 250 } else {
248 48000, collection->AppendNewPlot()); 251 wav_path = webrtc::test::ResourcePath(
252 "audio_processing/conversational_speech/EN_script2_F_sp2_B1", "wav");
253 }
254 analyzer.CreateAudioJitterBufferGraph(wav_path, 48000,
255 collection->AppendNewPlot());
249 } 256 }
250 257
251 collection->Draw(); 258 collection->Draw();
252 259
253 return 0; 260 return 0;
254 } 261 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698