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

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

Issue 2649323010: Revert of Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Created 3 years, 10 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 | « webrtc/media/engine/webrtcvideoengine2_unittest.cc ('k') | webrtc/video/end_to_end_tests.cc » ('j') | 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 last_timestamp = std::max(last_timestamp, timestamp); 304 last_timestamp = std::max(last_timestamp, timestamp);
305 } 305 }
306 306
307 switch (parsed_log_.GetEventType(i)) { 307 switch (parsed_log_.GetEventType(i)) {
308 case ParsedRtcEventLog::VIDEO_RECEIVER_CONFIG_EVENT: { 308 case ParsedRtcEventLog::VIDEO_RECEIVER_CONFIG_EVENT: {
309 VideoReceiveStream::Config config(nullptr); 309 VideoReceiveStream::Config config(nullptr);
310 parsed_log_.GetVideoReceiveConfig(i, &config); 310 parsed_log_.GetVideoReceiveConfig(i, &config);
311 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket); 311 StreamId stream(config.rtp.remote_ssrc, kIncomingPacket);
312 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); 312 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions);
313 video_ssrcs_.insert(stream); 313 video_ssrcs_.insert(stream);
314 StreamId rtx_stream(config.rtp.rtx_ssrc, kIncomingPacket); 314 for (auto kv : config.rtp.rtx) {
315 extension_maps[rtx_stream] = 315 StreamId rtx_stream(kv.second.ssrc, kIncomingPacket);
316 RtpHeaderExtensionMap(config.rtp.extensions); 316 extension_maps[rtx_stream] =
317 video_ssrcs_.insert(rtx_stream); 317 RtpHeaderExtensionMap(config.rtp.extensions);
318 rtx_ssrcs_.insert(rtx_stream); 318 video_ssrcs_.insert(rtx_stream);
319 rtx_ssrcs_.insert(rtx_stream);
320 }
319 break; 321 break;
320 } 322 }
321 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: { 323 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: {
322 VideoSendStream::Config config(nullptr); 324 VideoSendStream::Config config(nullptr);
323 parsed_log_.GetVideoSendConfig(i, &config); 325 parsed_log_.GetVideoSendConfig(i, &config);
324 for (auto ssrc : config.rtp.ssrcs) { 326 for (auto ssrc : config.rtp.ssrcs) {
325 StreamId stream(ssrc, kOutgoingPacket); 327 StreamId stream(ssrc, kOutgoingPacket);
326 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); 328 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions);
327 video_ssrcs_.insert(stream); 329 video_ssrcs_.insert(stream);
328 } 330 }
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 int64_t capture_ms = packet.header.timestamp / 90.0; 1193 int64_t capture_ms = packet.header.timestamp / 90.0;
1192 int64_t arrival_ms = packet.timestamp / 1000.0; 1194 int64_t arrival_ms = packet.timestamp / 1000.0;
1193 timestamps.push_back(std::make_pair(capture_ms, arrival_ms)); 1195 timestamps.push_back(std::make_pair(capture_ms, arrival_ms));
1194 } 1196 }
1195 } 1197 }
1196 } 1198 }
1197 return timestamps; 1199 return timestamps;
1198 } 1200 }
1199 } // namespace plotting 1201 } // namespace plotting
1200 } // namespace webrtc 1202 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2_unittest.cc ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698