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

Side by Side Diff: webrtc/tools/event_log_visualizer/analyzer.cc

Issue 2746333009: OnReceivedUplinkPacketLossFraction() receives [const rtc::Optional<float>&] (Closed)
Patch Set: Rebased Created 3 years, 9 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) 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 plot->SetTitle("Reported audio encoder frame length"); 1291 plot->SetTitle("Reported audio encoder frame length");
1292 } 1292 }
1293 1293
1294 void EventLogAnalyzer::CreateAudioEncoderUplinkPacketLossFractionGraph( 1294 void EventLogAnalyzer::CreateAudioEncoderUplinkPacketLossFractionGraph(
1295 Plot* plot) { 1295 Plot* plot) {
1296 TimeSeries* time_series = plot->AddTimeSeries( 1296 TimeSeries* time_series = plot->AddTimeSeries(
1297 "Audio encoder uplink packet loss fraction", LINE_DOT_GRAPH); 1297 "Audio encoder uplink packet loss fraction", LINE_DOT_GRAPH);
1298 ProcessPoints<AudioNetworkAdaptationEvent>( 1298 ProcessPoints<AudioNetworkAdaptationEvent>(
1299 [](const AudioNetworkAdaptationEvent& ana_event) { 1299 [](const AudioNetworkAdaptationEvent& ana_event) {
1300 if (ana_event.config.uplink_packet_loss_fraction) 1300 if (ana_event.config.uplink_packet_loss_fraction)
1301 return rtc::Optional<float>(static_cast<float>( 1301 return ana_event.config.uplink_packet_loss_fraction;
1302 *ana_event.config.uplink_packet_loss_fraction));
1303 return rtc::Optional<float>(); 1302 return rtc::Optional<float>();
1304 }, 1303 },
1305 audio_network_adaptation_events_, begin_time_, time_series); 1304 audio_network_adaptation_events_, begin_time_, time_series);
1306 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1305 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1307 plot->SetSuggestedYAxis(0, 10, "Percent lost packets", kBottomMargin, 1306 plot->SetSuggestedYAxis(0, 10, "Percent lost packets", kBottomMargin,
1308 kTopMargin); 1307 kTopMargin);
1309 plot->SetTitle("Reported audio encoder lost packets"); 1308 plot->SetTitle("Reported audio encoder lost packets");
1310 } 1309 }
1311 1310
1312 void EventLogAnalyzer::CreateAudioEncoderEnableFecGraph(Plot* plot) { 1311 void EventLogAnalyzer::CreateAudioEncoderEnableFecGraph(Plot* plot) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 return rtc::Optional<float>(); 1351 return rtc::Optional<float>();
1353 }, 1352 },
1354 audio_network_adaptation_events_, begin_time_, time_series); 1353 audio_network_adaptation_events_, begin_time_, time_series);
1355 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1354 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1356 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))", 1355 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))",
1357 kBottomMargin, kTopMargin); 1356 kBottomMargin, kTopMargin);
1358 plot->SetTitle("Reported audio encoder number of channels"); 1357 plot->SetTitle("Reported audio encoder number of channels");
1359 } 1358 }
1360 } // namespace plotting 1359 } // namespace plotting
1361 } // namespace webrtc 1360 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red_unittest.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698