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

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

Issue 2857933002: Replace VideoSendStream::Config with new rtclog::StreamConfig in RtcEventLog. (Closed)
Patch Set: Rebased Created 3 years, 7 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp_extensions); 337 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp_extensions);
338 video_ssrcs_.insert(stream); 338 video_ssrcs_.insert(stream);
339 StreamId rtx_stream(config.rtx_ssrc, kIncomingPacket); 339 StreamId rtx_stream(config.rtx_ssrc, kIncomingPacket);
340 extension_maps[rtx_stream] = 340 extension_maps[rtx_stream] =
341 RtpHeaderExtensionMap(config.rtp_extensions); 341 RtpHeaderExtensionMap(config.rtp_extensions);
342 video_ssrcs_.insert(rtx_stream); 342 video_ssrcs_.insert(rtx_stream);
343 rtx_ssrcs_.insert(rtx_stream); 343 rtx_ssrcs_.insert(rtx_stream);
344 break; 344 break;
345 } 345 }
346 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: { 346 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: {
347 VideoSendStream::Config config(nullptr); 347 rtclog::StreamConfig config;
348 parsed_log_.GetVideoSendConfig(i, &config); 348 parsed_log_.GetVideoSendConfig(i, &config);
349 for (auto ssrc : config.rtp.ssrcs) { 349 StreamId stream(config.local_ssrc, kOutgoingPacket);
350 StreamId stream(ssrc, kOutgoingPacket); 350 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp_extensions);
351 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); 351 video_ssrcs_.insert(stream);
352 video_ssrcs_.insert(stream); 352 StreamId rtx_stream(config.rtx_ssrc, kOutgoingPacket);
353 } 353 extension_maps[rtx_stream] =
354 for (auto ssrc : config.rtp.rtx.ssrcs) { 354 RtpHeaderExtensionMap(config.rtp_extensions);
355 StreamId rtx_stream(ssrc, kOutgoingPacket); 355 video_ssrcs_.insert(rtx_stream);
356 extension_maps[rtx_stream] = 356 rtx_ssrcs_.insert(rtx_stream);
357 RtpHeaderExtensionMap(config.rtp.extensions);
358 video_ssrcs_.insert(rtx_stream);
359 rtx_ssrcs_.insert(rtx_stream);
360 }
361 break; 357 break;
362 } 358 }
363 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: { 359 case ParsedRtcEventLog::AUDIO_RECEIVER_CONFIG_EVENT: {
364 AudioReceiveStream::Config config; 360 AudioReceiveStream::Config config;
365 parsed_log_.GetAudioReceiveConfig(i, &config); 361 parsed_log_.GetAudioReceiveConfig(i, &config);
366 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket); 362 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket);
367 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); 363 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions);
368 audio_ssrcs_.insert(stream); 364 audio_ssrcs_.insert(stream);
369 break; 365 break;
370 } 366 }
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 }, 1395 },
1400 audio_network_adaptation_events_, begin_time_, &time_series); 1396 audio_network_adaptation_events_, begin_time_, &time_series);
1401 plot->AppendTimeSeries(std::move(time_series)); 1397 plot->AppendTimeSeries(std::move(time_series));
1402 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1398 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1403 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))", 1399 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))",
1404 kBottomMargin, kTopMargin); 1400 kBottomMargin, kTopMargin);
1405 plot->SetTitle("Reported audio encoder number of channels"); 1401 plot->SetTitle("Reported audio encoder number of channels");
1406 } 1402 }
1407 } // namespace plotting 1403 } // namespace plotting
1408 } // namespace webrtc 1404 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698