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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 static bool Parse(rtc::ArrayView<const uint8_t> data, StreamId* rsid); | 169 static bool Parse(rtc::ArrayView<const uint8_t> data, StreamId* rsid); |
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 class FrameMarking { |
| 179 public: |
| 180 static constexpr RTPExtensionType kId = kRtpExtensionFrameMarking; |
| 181 static constexpr const char* kUri = "urn:ietf:params:rtp-hdrext:framemarking"; |
| 182 static bool Parse(rtc::ArrayView<const uint8_t> data, |
| 183 FrameMarks* frame_marks); |
| 184 static size_t ValueSize(const FrameMarks& frame_marks); |
| 185 static bool Write(uint8_t* data, const FrameMarks& frame_marks); |
| 186 |
| 187 static uint8_t CreateLayerId(const RTPVideoHeaderVP9& vp9); |
| 188 |
| 189 private: |
| 190 static bool IsScalable(const FrameMarks& frame_marks); |
| 191 }; |
| 192 |
178 } // namespace webrtc | 193 } // namespace webrtc |
179 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ | 194 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ |
OLD | NEW |