OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 11 matching lines...) Expand all Loading... |
22 #include "webrtc/system_wrappers/include/trace.h" | 22 #include "webrtc/system_wrappers/include/trace.h" |
23 | 23 |
24 #ifdef _WIN32 | 24 #ifdef _WIN32 |
25 // Disable warning C4355: 'this' : used in base member initializer list. | 25 // Disable warning C4355: 'this' : used in base member initializer list. |
26 #pragma warning(disable : 4355) | 26 #pragma warning(disable : 4355) |
27 #endif | 27 #endif |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 | 30 |
31 RTPExtensionType StringToRtpExtensionType(const std::string& extension) { | 31 RTPExtensionType StringToRtpExtensionType(const std::string& extension) { |
32 if (extension == RtpExtension::kTOffset) | 32 if (extension == RtpExtension::kTimestampOffsetUri) |
33 return kRtpExtensionTransmissionTimeOffset; | 33 return kRtpExtensionTransmissionTimeOffset; |
34 if (extension == RtpExtension::kAudioLevel) | 34 if (extension == RtpExtension::kAudioLevelUri) |
35 return kRtpExtensionAudioLevel; | 35 return kRtpExtensionAudioLevel; |
36 if (extension == RtpExtension::kAbsSendTime) | 36 if (extension == RtpExtension::kAbsSendTimeUri) |
37 return kRtpExtensionAbsoluteSendTime; | 37 return kRtpExtensionAbsoluteSendTime; |
38 if (extension == RtpExtension::kVideoRotation) | 38 if (extension == RtpExtension::kVideoRotationUri) |
39 return kRtpExtensionVideoRotation; | 39 return kRtpExtensionVideoRotation; |
40 if (extension == RtpExtension::kTransportSequenceNumber) | 40 if (extension == RtpExtension::kTransportSequenceNumberUri) |
41 return kRtpExtensionTransportSequenceNumber; | 41 return kRtpExtensionTransportSequenceNumber; |
42 RTC_NOTREACHED() << "Looking up unsupported RTP extension."; | 42 RTC_NOTREACHED() << "Looking up unsupported RTP extension."; |
43 return kRtpExtensionNone; | 43 return kRtpExtensionNone; |
44 } | 44 } |
45 | 45 |
46 RtpRtcp::Configuration::Configuration() | 46 RtpRtcp::Configuration::Configuration() |
47 : audio(false), | 47 : audio(false), |
48 receiver_only(false), | 48 receiver_only(false), |
49 clock(nullptr), | 49 clock(nullptr), |
50 receive_statistics(NullObjectReceiveStatistics()), | 50 receive_statistics(NullObjectReceiveStatistics()), |
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( | 987 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( |
988 StreamDataCountersCallback* callback) { | 988 StreamDataCountersCallback* callback) { |
989 rtp_sender_.RegisterRtpStatisticsCallback(callback); | 989 rtp_sender_.RegisterRtpStatisticsCallback(callback); |
990 } | 990 } |
991 | 991 |
992 StreamDataCountersCallback* | 992 StreamDataCountersCallback* |
993 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { | 993 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { |
994 return rtp_sender_.GetRtpStatisticsCallback(); | 994 return rtp_sender_.GetRtpStatisticsCallback(); |
995 } | 995 } |
996 } // namespace webrtc | 996 } // namespace webrtc |
OLD | NEW |