summaryrefslogtreecommitdiff
path: root/libavcodec/packet.h
diff options
context:
space:
mode:
authorMohammad Izadi <izadi-at-google.com@ffmpeg.org>2021-06-17 22:20:44 -0700
committerJames Zern <jzern@google.com>2021-06-24 10:29:17 -0700
commitaca923b3653a7db5fd9fa3dca029936feb152aa2 (patch)
tree618cd27004a7c7510eb52fbd1378cd1d7c4c77c4 /libavcodec/packet.h
parent947122f111afdfe0c16de7177d760e0cf41170eb (diff)
avcodec: Pass HDR10+ metadata to packet side data in VP9 encoder
HDR10+ metadata is stored in the bit stream for HEVC. The story is different for VP9 and cannot store the metadata in the bit stream. HDR10+ should be passed to packet side data an stored in the container (mkv) for VP9. This CL is taking HDR10+ from AVFrame side data in libvpxenc and is passing it to the AVPacket side data. Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec/packet.h')
-rw-r--r--libavcodec/packet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index fad8341c12..a9d3a9b596 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -291,6 +291,14 @@ enum AVPacketSideDataType {
AV_PKT_DATA_S12M_TIMECODE,
/**
+ * HDR10+ dynamic metadata associated with a video frame. The metadata is in
+ * the form of the AVDynamicHDRPlus struct and contains
+ * information for color volume transform - application 4 of
+ * SMPTE 2094-40:2016 standard.
+ */
+ AV_PKT_DATA_DYNAMIC_HDR10_PLUS,
+
+ /**
* The number of side data types.
* This is not part of the public API/ABI in the sense that it may
* change when new side data types are added.