Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h

Issue 2954503002: Implement FrameMarking header extension support
Patch Set: remove unneeded change in comment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698