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_ |
11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 11 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
12 | 12 |
13 #include <stdint.h> | 13 #include <stdint.h> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/api/video/video_content_type.h" | 16 #include "webrtc/api/video/video_content_type.h" |
17 #include "webrtc/api/video/video_rotation.h" | 17 #include "webrtc/api/video/video_rotation.h" |
18 #include "webrtc/api/video/video_timing.h" | 18 #include "webrtc/api/video/video_timing.h" |
| 19 #include "webrtc/base/array_view.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
20 #include "webrtc/rtc_base/array_view.h" | |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class AbsoluteSendTime { | 24 class AbsoluteSendTime { |
25 public: | 25 public: |
26 static constexpr RTPExtensionType kId = kRtpExtensionAbsoluteSendTime; | 26 static constexpr RTPExtensionType kId = kRtpExtensionAbsoluteSendTime; |
27 static constexpr uint8_t kValueSizeBytes = 3; | 27 static constexpr uint8_t kValueSizeBytes = 3; |
28 static constexpr const char* kUri = | 28 static constexpr const char* kUri = |
29 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; | 29 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; |
30 | 30 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 static size_t ValueSize(const StreamId& rsid); | 170 static size_t ValueSize(const StreamId& rsid); |
171 static bool Write(uint8_t* data, const StreamId& rsid); | 171 static bool Write(uint8_t* data, const StreamId& rsid); |
172 | 172 |
173 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid); | 173 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid); |
174 static size_t ValueSize(const std::string& rsid); | 174 static size_t ValueSize(const std::string& rsid); |
175 static bool Write(uint8_t* data, const std::string& rsid); | 175 static bool Write(uint8_t* data, const std::string& rsid); |
176 }; | 176 }; |
177 | 177 |
178 } // namespace webrtc | 178 } // namespace webrtc |
179 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 179 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
OLD | NEW |