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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 | 149 |
150 static bool Parse(rtc::ArrayView<const uint8_t> data, StreamId* rsid); | 150 static bool Parse(rtc::ArrayView<const uint8_t> data, StreamId* rsid); |
151 static size_t ValueSize(const StreamId& rsid); | 151 static size_t ValueSize(const StreamId& rsid); |
152 static bool Write(uint8_t* data, const StreamId& rsid); | 152 static bool Write(uint8_t* data, const StreamId& rsid); |
153 | 153 |
154 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid); | 154 static bool Parse(rtc::ArrayView<const uint8_t> data, std::string* rsid); |
155 static size_t ValueSize(const std::string& rsid); | 155 static size_t ValueSize(const std::string& rsid); |
156 static bool Write(uint8_t* data, const std::string& rsid); | 156 static bool Write(uint8_t* data, const std::string& rsid); |
157 }; | 157 }; |
158 | 158 |
159 class FrameMarking { | |
160 public: | |
161 static constexpr RTPExtensionType kId = kRtpExtensionFrameMarking; | |
162 static constexpr const char* kUri = | |
163 "urn:ietf:params:rtp-hdrext:framemarking"; | |
164 static bool Parse(const uint8_t* data, | |
danilchap
2017/06/28 16:07:06
Parse expect rtc::ArrayView<const uint8_t> as 1st
sergio.garcia.murillo
2017/06/29 12:58:58
Done.
| |
165 uint8_t length, | |
166 FrameMarks* frame_marks); | |
167 static size_t ValueSize(const FrameMarks& frame_marks); | |
168 static bool Write(uint8_t* data, const FrameMarks& frame_marks); | |
169 }; | |
170 | |
159 } // namespace webrtc | 171 } // namespace webrtc |
160 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 172 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
OLD | NEW |