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

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

Issue 2954503002: Implement FrameMarking header extension support
Patch Set: fix fuzzer Created 3 years, 3 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static constexpr const char kUri[] = 175 static constexpr const char kUri[] =
176 "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"; 176 "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id";
177 }; 177 };
178 178
179 class RtpMid : public BaseRtpStringExtension { 179 class RtpMid : public BaseRtpStringExtension {
180 public: 180 public:
181 static constexpr RTPExtensionType kId = kRtpExtensionMid; 181 static constexpr RTPExtensionType kId = kRtpExtensionMid;
182 static constexpr const char kUri[] = "urn:ietf:params:rtp-hdrext:sdes:mid"; 182 static constexpr const char kUri[] = "urn:ietf:params:rtp-hdrext:sdes:mid";
183 }; 183 };
184 184
185 class FrameMarking {
186 public:
187 static constexpr RTPExtensionType kId = kRtpExtensionFrameMarking;
188 static constexpr const char* kUri = "urn:ietf:params:rtp-hdrext:framemarking";
189 static bool Parse(rtc::ArrayView<const uint8_t> data,
190 FrameMarks* frame_marks);
191 static size_t ValueSize(const FrameMarks& frame_marks);
192 static bool Write(uint8_t* data, const FrameMarks& frame_marks);
193
194 static uint8_t CreateLayerId(const RTPVideoHeaderVP9& vp9);
195
196 private:
197 static bool IsScalable(const FrameMarks& frame_marks);
198 };
199
185 } // namespace webrtc 200 } // namespace webrtc
186 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_ 201 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extension_map.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698