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 |
11 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" | 11 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h" |
12 | 12 |
13 #include <stdint.h> | 13 #include <stdint.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <fstream> | 17 #include <fstream> |
18 #include <istream> | 18 #include <istream> |
19 #include <map> | 19 #include <map> |
20 #include <utility> | 20 #include <utility> |
21 | 21 |
22 #include "webrtc/base/checks.h" | |
23 #include "webrtc/base/logging.h" | |
24 #include "webrtc/base/protobuf_utils.h" | |
25 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 22 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
26 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" | 23 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ
k_adaptor.h" |
27 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" | 24 #include "webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h" |
28 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 26 #include "webrtc/rtc_base/checks.h" |
| 27 #include "webrtc/rtc_base/logging.h" |
| 28 #include "webrtc/rtc_base/protobuf_utils.h" |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 namespace { | 32 namespace { |
33 RtcpMode GetRuntimeRtcpMode(rtclog::VideoReceiveConfig::RtcpMode rtcp_mode) { | 33 RtcpMode GetRuntimeRtcpMode(rtclog::VideoReceiveConfig::RtcpMode rtcp_mode) { |
34 switch (rtcp_mode) { | 34 switch (rtcp_mode) { |
35 case rtclog::VideoReceiveConfig::RTCP_COMPOUND: | 35 case rtclog::VideoReceiveConfig::RTCP_COMPOUND: |
36 return RtcpMode::kCompound; | 36 return RtcpMode::kCompound; |
37 case rtclog::VideoReceiveConfig::RTCP_REDUCEDSIZE: | 37 case rtclog::VideoReceiveConfig::RTCP_REDUCEDSIZE: |
38 return RtcpMode::kReducedSize; | 38 return RtcpMode::kReducedSize; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 ParsedRtcEventLog::MediaType ParsedRtcEventLog::GetMediaType( | 647 ParsedRtcEventLog::MediaType ParsedRtcEventLog::GetMediaType( |
648 uint32_t ssrc, | 648 uint32_t ssrc, |
649 PacketDirection direction) const { | 649 PacketDirection direction) const { |
650 for (auto rit = streams_.rbegin(); rit != streams_.rend(); ++rit) { | 650 for (auto rit = streams_.rbegin(); rit != streams_.rend(); ++rit) { |
651 if (rit->ssrc == ssrc && rit->direction == direction) | 651 if (rit->ssrc == ssrc && rit->direction == direction) |
652 return rit->media_type; | 652 return rit->media_type; |
653 } | 653 } |
654 return MediaType::ANY; | 654 return MediaType::ANY; |
655 } | 655 } |
656 } // namespace webrtc | 656 } // namespace webrtc |
OLD | NEW |