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 = "urn:ietf:params:rtp-hdrext:framemarking"; | |
163 static bool Parse(rtc::ArrayView<const uint8_t> data, | |
164 FrameMarks* frame_marks); | |
165 static size_t ValueSize(const FrameMarks& frame_marks); | |
166 static bool Write(uint8_t* data, const FrameMarks& frame_marks); | |
167 | |
168 static uint8_t CreateLayerId(RTPVideoHeaderVP9 vp9); | |
danilchap
2017/06/30 12:53:25
probably
const RTPVideoHeaderVP9&
(that struct is
sergio.garcia.murillo
2017/06/30 13:42:00
Indeed. Done.
| |
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 |