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 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 10 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 VideoContentType* content_type); | 123 VideoContentType* content_type); |
124 static size_t ValueSize(VideoContentType) { | 124 static size_t ValueSize(VideoContentType) { |
125 return kValueSizeBytes; | 125 return kValueSizeBytes; |
126 } | 126 } |
127 static bool Write(uint8_t* data, VideoContentType content_type); | 127 static bool Write(uint8_t* data, VideoContentType content_type); |
128 }; | 128 }; |
129 | 129 |
130 class VideoTimingExtension { | 130 class VideoTimingExtension { |
131 public: | 131 public: |
132 static constexpr RTPExtensionType kId = kRtpExtensionVideoTiming; | 132 static constexpr RTPExtensionType kId = kRtpExtensionVideoTiming; |
133 static constexpr uint8_t kValueSizeBytes = 12; | 133 static constexpr uint8_t kValueSizeBytes = 13; |
134 static constexpr const char kUri[] = | 134 static constexpr const char kUri[] = |
135 "http://www.webrtc.org/experiments/rtp-hdrext/video-timing"; | 135 "http://www.webrtc.org/experiments/rtp-hdrext/video-timing"; |
136 | 136 |
137 static bool Parse(rtc::ArrayView<const uint8_t> data, | 137 static bool Parse(rtc::ArrayView<const uint8_t> data, |
138 VideoSendTiming* timing); | 138 VideoSendTiming* timing); |
139 static size_t ValueSize(const VideoSendTiming&) { return kValueSizeBytes; } | 139 static size_t ValueSize(const VideoSendTiming&) { return kValueSizeBytes; } |
140 static bool Write(uint8_t* data, const VideoSendTiming& timing); | 140 static bool Write(uint8_t* data, const VideoSendTiming& timing); |
141 | 141 |
142 static size_t ValueSize(uint16_t time_delta_ms, uint8_t idx) { | 142 static size_t ValueSize(uint16_t time_delta_ms, uint8_t idx) { |
143 return kValueSizeBytes; | 143 return kValueSizeBytes; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 }; | 177 }; |
178 | 178 |
179 class RtpMid : public BaseRtpStringExtension { | 179 class RtpMid : public BaseRtpStringExtension { |
180 public: | 180 public: |
181 static constexpr RTPExtensionType kId = kRtpExtensionMid; | 181 static constexpr RTPExtensionType kId = kRtpExtensionMid; |
182 static constexpr const char kUri[] = "urn:ietf:params:rtp-hdrext:sdes:mid"; | 182 static constexpr const char kUri[] = "urn:ietf:params:rtp-hdrext:sdes:mid"; |
183 }; | 183 }; |
184 | 184 |
185 } // namespace webrtc | 185 } // namespace webrtc |
186 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 186 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
OLD | NEW |