From: Timothee Regaud <timothee.informati...@regaud-chapuy.fr>

Adds the AV_CODEC_EXPORT_DATA_VIDEO_CODING_INFO flag and the corresponding 
video_coding_info option to the options table, allowing users to enable this 
feature.

Signed-off-by: Timothee Regaud <timothee.informati...@regaud-chapuy.fr>
---
 libavcodec/avcodec.h       | 6 ++++++
 libavcodec/options_table.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index a004cccd2d..a1f95f78dd 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -405,6 +405,12 @@ typedef struct RcOverride{
  */
 #define AV_CODEC_EXPORT_DATA_ENHANCEMENTS (1 << 4)
 
+/**
+ * Export detailed video coding information from the decoder.
+ * @see AV_FRAME_DATA_VIDEO_CODING_INFO
+ */
+#define AV_CODEC_EXPORT_DATA_VIDEO_CODING_INFO (1 << 5)
+
 /**
  * The decoder will keep a reference to the frame and may reuse it later.
  */
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h
index c525cde80a..b773055068 100644
--- a/libavcodec/options_table.h
+++ b/libavcodec/options_table.h
@@ -90,6 +90,7 @@ static const AVOption avcodec_options[] = {
 {"prft", "export Producer Reference Time through packet side data", 0, 
AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_EXPORT_DATA_PRFT}, INT_MIN, INT_MAX, 
A|V|S|E, .unit = "export_side_data"},
 {"venc_params", "export video encoding parameters through frame side data", 0, 
AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_EXPORT_DATA_VIDEO_ENC_PARAMS}, INT_MIN, 
INT_MAX, V|D, .unit = "export_side_data"},
 {"film_grain", "export film grain parameters through frame side data", 0, 
AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_EXPORT_DATA_FILM_GRAIN}, INT_MIN, INT_MAX, 
V|D, .unit = "export_side_data"},
+{ "video_coding_info", "Export video coding information", 0, 
AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_EXPORT_DATA_VIDEO_CODING_INFO }, 0, 0, V|D, 
"export_side_data" },
 {"enhancements", "export picture enhancement metadata through frame side 
data", 0, AV_OPT_TYPE_CONST, {.i64 = AV_CODEC_EXPORT_DATA_ENHANCEMENTS}, 
INT_MIN, INT_MAX, V|D, .unit = "export_side_data"},
 {"time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, {.dbl = 0}, 0, 
INT_MAX},
 {"g", "set the group of picture (GOP) size", OFFSET(gop_size), 
AV_OPT_TYPE_INT, {.i64 = 12 }, INT_MIN, INT_MAX, V|E},
-- 
2.39.5

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to