OLD | NEW |
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 Loading... |
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 for (auto kv : config.rtp.rtx) { | 314 StreamId rtx_stream(config.rtp.rtx_ssrc, kIncomingPacket); |
315 StreamId rtx_stream(kv.second.ssrc, kIncomingPacket); | 315 extension_maps[rtx_stream] = |
316 extension_maps[rtx_stream] = | 316 RtpHeaderExtensionMap(config.rtp.extensions); |
317 RtpHeaderExtensionMap(config.rtp.extensions); | 317 video_ssrcs_.insert(rtx_stream); |
318 video_ssrcs_.insert(rtx_stream); | 318 rtx_ssrcs_.insert(rtx_stream); |
319 rtx_ssrcs_.insert(rtx_stream); | |
320 } | |
321 break; | 319 break; |
322 } | 320 } |
323 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: { | 321 case ParsedRtcEventLog::VIDEO_SENDER_CONFIG_EVENT: { |
324 VideoSendStream::Config config(nullptr); | 322 VideoSendStream::Config config(nullptr); |
325 parsed_log_.GetVideoSendConfig(i, &config); | 323 parsed_log_.GetVideoSendConfig(i, &config); |
326 for (auto ssrc : config.rtp.ssrcs) { | 324 for (auto ssrc : config.rtp.ssrcs) { |
327 StreamId stream(ssrc, kOutgoingPacket); | 325 StreamId stream(ssrc, kOutgoingPacket); |
328 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); | 326 extension_maps[stream] = RtpHeaderExtensionMap(config.rtp.extensions); |
329 video_ssrcs_.insert(stream); | 327 video_ssrcs_.insert(stream); |
330 } | 328 } |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 int64_t capture_ms = packet.header.timestamp / 90.0; | 1191 int64_t capture_ms = packet.header.timestamp / 90.0; |
1194 int64_t arrival_ms = packet.timestamp / 1000.0; | 1192 int64_t arrival_ms = packet.timestamp / 1000.0; |
1195 timestamps.push_back(std::make_pair(capture_ms, arrival_ms)); | 1193 timestamps.push_back(std::make_pair(capture_ms, arrival_ms)); |
1196 } | 1194 } |
1197 } | 1195 } |
1198 } | 1196 } |
1199 return timestamps; | 1197 return timestamps; |
1200 } | 1198 } |
1201 } // namespace plotting | 1199 } // namespace plotting |
1202 } // namespace webrtc | 1200 } // namespace webrtc |
OLD | NEW |