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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
index c0a4bca913e6ce96a1ceaf0098fbb8b34d447e9a..296e553bc16cc8bd3ccd530e611d0750f5bbb502 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
@@ -175,5 +175,20 @@ class RepairedRtpStreamId {
static bool Write(uint8_t* data, const std::string& rsid);
};
+class FrameMarking {
+ public:
+ static constexpr RTPExtensionType kId = kRtpExtensionFrameMarking;
+ static constexpr const char* kUri = "urn:ietf:params:rtp-hdrext:framemarking";
+ static bool Parse(rtc::ArrayView<const uint8_t> data,
+ FrameMarks* frame_marks);
+ static size_t ValueSize(const FrameMarks& frame_marks);
+ static bool Write(uint8_t* data, const FrameMarks& frame_marks);
+
+ static uint8_t CreateLayerId(const RTPVideoHeaderVP9& vp9);
+
+ private:
+ static bool IsScalable(const FrameMarks& frame_marks);
+};
+
} // namespace webrtc
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698