Add RTP header extension for HDR metadata

Bug: webrtc:8651
Change-Id: I1c956eaac1532ac0d3820084edb4054a4cc9c68d
Reviewed-on: https://webrtc-review.googlesource.com/c/109924
Commit-Queue: Johannes Kron <kron@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25578}
This commit is contained in:
Johannes Kron
2018-11-09 11:12:36 +01:00
committed by Commit Bot
parent ee45f900c4
commit ad1d9f0d78
9 changed files with 208 additions and 0 deletions

View File

@ -15,7 +15,9 @@
#include <stdint.h>
#include <string.h>
#include "absl/types/optional.h"
#include "api/array_view.h"
#include "api/video/hdr_metadata.h"
#include "api/video/video_content_type.h"
#include "api/video/video_frame_marking.h"
#include "api/video/video_rotation.h"
@ -126,6 +128,8 @@ struct RTPHeaderExtension {
// For identifying the media section used to interpret this RTP packet. See
// https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-38
Mid mid;
absl::optional<HdrMetadata> hdr_metadata;
};
struct RTPHeader {