OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 #include "webrtc/config.h" | 10 #include "webrtc/config.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 return ss.str(); | 30 return ss.str(); |
31 } | 31 } |
32 | 32 |
33 const char* RtpExtension::kTOffset = "urn:ietf:params:rtp-hdrext:toffset"; | 33 const char* RtpExtension::kTOffset = "urn:ietf:params:rtp-hdrext:toffset"; |
34 const char* RtpExtension::kAbsSendTime = | 34 const char* RtpExtension::kAbsSendTime = |
35 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; | 35 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; |
36 const char* RtpExtension::kVideoRotation = "urn:3gpp:video-orientation"; | 36 const char* RtpExtension::kVideoRotation = "urn:3gpp:video-orientation"; |
37 const char* RtpExtension::kAudioLevel = | 37 const char* RtpExtension::kAudioLevel = |
38 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; | 38 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; |
39 const char* RtpExtension::kTransportSequenceNumber = | 39 const char* RtpExtension::kTransportSequenceNumber = |
40 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions"; | 40 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"; |
41 | 41 |
42 bool RtpExtension::IsSupportedForAudio(const std::string& name) { | 42 bool RtpExtension::IsSupportedForAudio(const std::string& name) { |
43 return name == webrtc::RtpExtension::kAbsSendTime || | 43 return name == webrtc::RtpExtension::kAbsSendTime || |
44 name == webrtc::RtpExtension::kAudioLevel || | 44 name == webrtc::RtpExtension::kAudioLevel || |
45 name == webrtc::RtpExtension::kTransportSequenceNumber; | 45 name == webrtc::RtpExtension::kTransportSequenceNumber; |
46 } | 46 } |
47 | 47 |
48 bool RtpExtension::IsSupportedForVideo(const std::string& name) { | 48 bool RtpExtension::IsSupportedForVideo(const std::string& name) { |
49 return name == webrtc::RtpExtension::kTOffset || | 49 return name == webrtc::RtpExtension::kTOffset || |
50 name == webrtc::RtpExtension::kAbsSendTime || | 50 name == webrtc::RtpExtension::kAbsSendTime || |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 114 } |
115 ss << ", encoder_specific_settings: "; | 115 ss << ", encoder_specific_settings: "; |
116 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); | 116 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); |
117 | 117 |
118 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; | 118 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; |
119 ss << '}'; | 119 ss << '}'; |
120 return ss.str(); | 120 return ss.str(); |
121 } | 121 } |
122 | 122 |
123 } // namespace webrtc | 123 } // namespace webrtc |
OLD | NEW |