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

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

Issue 2954503002: Implement FrameMarking header extension support
Patch Set: Implement Frame Marking header extension 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..ad80b9751b4f7898bd814923bbb34d7558c7f455 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(const uint8_t* data,
danilchap 2017/06/28 16:07:06 Parse expect rtc::ArrayView<const uint8_t> as 1st
sergio.garcia.murillo 2017/06/29 12:58:58 Done.
+ uint8_t length,
+ FrameMarks* frame_marks);
+ static size_t ValueSize(const FrameMarks& frame_marks);
+ static bool Write(uint8_t* data, 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