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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h

Issue 2954503002: Implement FrameMarking header extension support
Patch Set: Missing fix on temporal_layer_id 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 d3e72ebd22af9b294d04daa432d5f14e40ad57f4..619836c2a1ba902df63c18aed645d66b4f476b02 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h
@@ -156,5 +156,17 @@ 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(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.
+};
+
} // namespace webrtc
#endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_HEADER_EXTENSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698