Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 "", | |
| 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 Loading... | |
| 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 const std::string wav_path = |
| 245 webrtc::test::ResourcePath( | 248 (strlen(FLAG_wav_filename) == 0) |
| 246 "audio_processing/conversational_speech/EN_script2_F_sp2_B1", | 249 ? webrtc::test::ResourcePath( |
| 247 "wav"), | 250 "audio_processing/conversational_speech/EN_script2_F_sp2_B1", |
| 248 48000, collection->AppendNewPlot()); | 251 "wav") |
| 252 : FLAG_wav_filename; | |
| 253 analyzer.CreateAudioJitterBufferGraph(FLAG_wav_filename, 48000, | |
|
hlundin-webrtc
2017/08/15 13:51:17
This must be a bug. Now you are always using the F
owb1
2017/08/16 08:24:05
You are right. This was a bug. I reverted to the f
| |
| 254 collection->AppendNewPlot()); | |
| 249 } | 255 } |
| 250 | 256 |
| 251 collection->Draw(); | 257 collection->Draw(); |
| 252 | 258 |
| 253 return 0; | 259 return 0; |
| 254 } | 260 } |
| OLD | NEW |