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

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

Issue 2850793002: Replace VideoReceiveStream::Config with new rtclog::StreamConfig in RtcEventLog. (Closed)
Patch Set: Fix merge. 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 event_type != ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT && 324 event_type != ParsedRtcEventLog::AUDIO_SENDER_CONFIG_EVENT &&
325 event_type != ParsedRtcEventLog::LOG_START && 325 event_type != ParsedRtcEventLog::LOG_START &&
326 event_type != ParsedRtcEventLog::LOG_END) { 326 event_type != ParsedRtcEventLog::LOG_END) {
327 uint64_t timestamp = parsed_log_.GetTimestamp(i); 327 uint64_t timestamp = parsed_log_.GetTimestamp(i);
328 first_timestamp = std::min(first_timestamp, timestamp); 328 first_timestamp = std::min(first_timestamp, timestamp);
329 last_timestamp = std::max(last_timestamp, timestamp); 329 last_timestamp = std::max(last_timestamp, timestamp);
330 } 330 }
331 331
332 switch (parsed_log_.GetEventType(i)) { 332 switch (parsed_log_.GetEventType(i)) {
333 case ParsedRtcEventLog::VIDEO_RECEIVER_CONFIG_EVENT: { 333 case ParsedRtcEventLog::VIDEO_RECEIVER_CONFIG_EVENT: {
334 VideoReceiveStream::Config config(nullptr); 334 rtclog::StreamConfig config;
335 parsed_log_.GetVideoReceiveConfig(i, &config); 335 parsed_log_.GetVideoReceiveConfig(i, &config);
336 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket); 336 StreamId stream(config.remote_ssrc, kIncomingPacket);
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.rtp.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 VideoSendStream::Config config(nullptr);
348 parsed_log_.GetVideoSendConfig(i, &config); 348 parsed_log_.GetVideoSendConfig(i, &config);
349 for (auto ssrc : config.rtp.ssrcs) { 349 for (auto ssrc : config.rtp.ssrcs) {
350 StreamId stream(ssrc, kOutgoingPacket); 350 StreamId stream(ssrc, kOutgoingPacket);
351 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); 351 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions);
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 }, 1399 },
1400 audio_network_adaptation_events_, begin_time_, &time_series); 1400 audio_network_adaptation_events_, begin_time_, &time_series);
1401 plot->AppendTimeSeries(std::move(time_series)); 1401 plot->AppendTimeSeries(std::move(time_series));
1402 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); 1402 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
1403 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))", 1403 plot->SetSuggestedYAxis(0, 1, "Number of channels (1 (mono)/2 (stereo))",
1404 kBottomMargin, kTopMargin); 1404 kBottomMargin, kTopMargin);
1405 plot->SetTitle("Reported audio encoder number of channels"); 1405 plot->SetTitle("Reported audio encoder number of channels");
1406 } 1406 }
1407 } // namespace plotting 1407 } // namespace plotting
1408 } // namespace webrtc 1408 } // 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