[FFmpeg-devel] [RFC][PATCH 2/3] v210enc: Add HDR metadata passthrough
Devin Heitmueller
devin.heitmueller at ltnglobal.com
Sat Jul 22 00:30:56 EEST 2023
In order to implement HDR output for decklink we need to expose the
side data containing the mastering and light level info.
Add the two additional types of side table to those which are
passed through.
Signed-off-by: Devin Heitmueller <dheitmueller at ltnglobal.com>
---
libavcodec/v210enc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c
index 110d7eb..25b1332 100644
--- a/libavcodec/v210enc.c
+++ b/libavcodec/v210enc.c
@@ -80,6 +80,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
} sd[] = {
{ AV_PKT_DATA_A53_CC, AV_FRAME_DATA_A53_CC },
{ AV_PKT_DATA_AFD, AV_FRAME_DATA_AFD },
+ { AV_PKT_DATA_MASTERING_DISPLAY_METADATA, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA },
+ { AV_PKT_DATA_CONTENT_LIGHT_LEVEL, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL },
};
ret = ff_get_encode_buffer(avctx, pkt, avctx->height * stride, 0);
--
1.8.3.1
More information about the ffmpeg-devel
mailing list