From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E98384A5CA for ; Fri, 18 Jul 2025 10:31:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 3EDF168C619; Fri, 18 Jul 2025 13:31:18 +0300 (EEST) Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [84.16.66.175]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id EFD0B68C306 for ; Fri, 18 Jul 2025 13:31:09 +0300 (EEST) Received: from smtp-4-0000.mail.infomaniak.ch (smtp-4-0000.mail.infomaniak.ch [10.7.10.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4bk5g13VKzzvyK; Fri, 18 Jul 2025 12:31:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=regaud-chapuy.fr; s=20201206; t=1752834669; bh=J4eyvqwmRcvD1QBAsbtj7wXrKQQ/AovUn2rA79tqqDM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gAw2Ql2WsMF+ZWeIPgI5tdfZ+bQqfdAHpig4iiHJMfsQ5HwgMZ7/OVi72sCzP1Xnl aOvTCb52F38QajKaNonSRXrhULm8vXuWjEjcpe0QVWJH+8yASuF4pAbBadP2KHgJwt k+SJCMMOE41muLE4jNoSJ2pQ82+IRMnhNN9EQuV8= Received: from unknown by smtp-4-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4bk5g05bkZzWdT; Fri, 18 Jul 2025 12:31:08 +0200 (CEST) From: =?UTF-8?q?Timoth=C3=A9e=20Regaud?= To: ffmpeg-devel@ffmpeg.org Date: Fri, 18 Jul 2025 12:30:53 +0200 Message-Id: <20250718103055.1172733-2-timothee.informatique@regaud-chapuy.fr> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250718103055.1172733-1-timothee.informatique@regaud-chapuy.fr> References: <20250718103055.1172733-1-timothee.informatique@regaud-chapuy.fr> MIME-Version: 1.0 X-Infomaniak-Routing: alpha Subject: [FFmpeg-devel] [PATCH 2/4] avcodec: add option to export video coding info X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Timothee Regaud Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Timothee Regaud 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 --- 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-request@ffmpeg.org with subject "unsubscribe".