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

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

Issue 2920433002: Fix indexing error in event log analyzer. (Closed)
Patch Set: Created 3 years, 6 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 StreamId rtx_stream(config.rtx_ssrc, kIncomingPacket); 338 StreamId rtx_stream(config.rtx_ssrc, kIncomingPacket);
339 extension_maps[rtx_stream] = 339 extension_maps[rtx_stream] =
340 RtpHeaderExtensionMap(config.rtp_extensions); 340 RtpHeaderExtensionMap(config.rtp_extensions);
341 video_ssrcs_.insert(rtx_stream); 341 video_ssrcs_.insert(rtx_stream);
342 rtx_ssrcs_.insert(rtx_stream); 342 rtx_ssrcs_.insert(rtx_stream);
343 break; 343 break;
344 } 344 }
345 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: { 345 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: {
346 std::vector<rtclog::StreamConfig> configs = 346 std::vector<rtclog::StreamConfig> configs =
347 parsed_log_.GetVideoSendConfig(i); 347 parsed_log_.GetVideoSendConfig(i);
348 for (size_t j = 0; j < configs.size(); j++) { 348 for (const auto& config : configs) {
349 StreamId stream(configs[i].local_ssrc, kOutgoingPacket); 349 StreamId stream(config.local_ssrc, kOutgoingPacket);
350 extension_maps[stream] = 350 extension_maps[stream] =
351 RtpHeaderExtensionMap(configs[i].rtp_extensions); 351 RtpHeaderExtensionMap(config.rtp_extensions);
352 video_ssrcs_.insert(stream); 352 video_ssrcs_.insert(stream);
353 StreamId rtx_stream(configs[i].rtx_ssrc, kOutgoingPacket); 353 StreamId rtx_stream(config.rtx_ssrc, kOutgoingPacket);
354 extension_maps[rtx_stream] = 354 extension_maps[rtx_stream] =
355 RtpHeaderExtensionMap(configs[i].rtp_extensions); 355 RtpHeaderExtensionMap(config.rtp_extensions);
356 video_ssrcs_.insert(rtx_stream); 356 video_ssrcs_.insert(rtx_stream);
357 rtx_ssrcs_.insert(rtx_stream); 357 rtx_ssrcs_.insert(rtx_stream);
358 } 358 }
359 break; 359 break;
360 } 360 }
361 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { 361 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: {
362 rtclog::StreamConfig config = parsed_log_.GetAudioReceiveConfig(i); 362 rtclog::StreamConfig config = parsed_log_.GetAudioReceiveConfig(i);
363 StreamId stream(config.remote_ssrc, kIncomingPacket); 363 StreamId stream(config.remote_ssrc, kIncomingPacket);
364 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp_extensions); 364 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp_extensions);
365 audio_ssrcs_.insert(stream); 365 audio_ssrcs_.insert(stream);
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 }, 1391 },
1392 audio_network_adaptation_events_, begin_time_, &time_series); 1392 audio_network_adaptation_events_, begin_time_, &time_series);
1393 plot->AppendTimeSeries(std::move(time_series)); 1393 plot->AppendTimeSeries(std::move(time_series));
1394 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1394 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1395 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))", 1395 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))",
1396 kBottomMargin, kTopMargin); 1396 kBottomMargin, kTopMargin);
1397 plot->SetTitle("Reported audio encoder number of channels"); 1397 plot->SetTitle("Reported audio encoder number of channels");
1398 } 1398 }
1399 } // namespace plotting 1399 } // namespace plotting
1400 } // namespace webrtc 1400 } // namespace webrtc
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