From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 2C42146583 for ; Fri, 21 Jul 2023 13:39:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 30A1368C662; Fri, 21 Jul 2023 16:38:06 +0300 (EEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 329E968C5BF for ; Fri, 21 Jul 2023 16:37:58 +0300 (EEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2228F5C0115 for ; Fri, 21 Jul 2023 09:37:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 21 Jul 2023 09:37:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itanimul.li; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1689946674; x= 1690033074; bh=jjwKR8x2DbAxjf1olYvoiLcQWbudyEIct7Ab1IV7HxI=; b=W Z0Zz1duzzL5pKTSjoVTcln7vxebnTPgIr+q1ARXrzypBA9OCWS+uZx7EU2QGH4uq NCpxfOzClpQjpgwLMw9B9PhZd2iR9q0G7Pd5ZVi5YTZt1d+wxR9oP7UPNeBhgiWh EH2C71STlrvFfYHnyHk/spdzgRTT8zlzVKI7exK+Ggmgz1L6J9DJUu2BVF1yEUnj uE8/qhIsSXgManlZoiRMIShpqSFt3RFn7tD1ctm1S5lK1D1KqankLXzoEZqyPZHe XBfFbFME7O6QVvQuS2nxWuWiWyrH6SPR/Lfd83oiQWSELmTQZqeXyopxCbv5SdsI rOOSS9+fEI+wdnc2TO4mQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1689946674; x=1690033074; bh=j jwKR8x2DbAxjf1olYvoiLcQWbudyEIct7Ab1IV7HxI=; b=yvL0Gz/ZR9ti8jIWS f+XNqYifQV59tr86DMlX3ZF4ABK1GKkvvx1zeKNBKVOBgoh+JwO6hRHl0fsCwFmy vI40PvwylusI4kqkyDCsiAc5mTs+GGm9c3NtQslxNGnGm5UuqJyksOsdIUN8sSMD +PXtxhtlMcqdtQvTUhTd/VYebt/LLX9l+UT5w2cnXjZYoU9yqKqCkrJipaGKhzDT qPUtzBlLNfrMg2doa03hYDVZR0PCDulCnCwxRl7kq0BxhtguzKHA8aMavBstr/7V CDTS25d/FdziNZB/Ww0uKdIHm52HjBKSkDQ2qm4i0Xj+qcsz1FHa0IfQU3EV0NbC qY7Hg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedvgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpedflfdrucffvghkkhgvrhdfuceojhguvghksehithgrnhhimhhu lhdrlhhiqeenucggtffrrghtthgvrhhnpeegvdfhffduudegheevieekieeffefgveffke dtheekieefhfevueetueefhfetteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehjuggvkhesihhtrghnihhmuhhlrdhlih X-ME-Proxy: Feedback-ID: i84994747:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 21 Jul 2023 09:37:53 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 Jul 2023 15:37:45 +0200 Message-ID: <20230721133746.33335-6-jdek@itanimul.li> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721133746.33335-1-jdek@itanimul.li> References: <20230721133746.33335-1-jdek@itanimul.li> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/7] tools/ffprobe: add ecinfo frame side data 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 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: Signed-off-by: J. Dekker --- fftools/ffprobe.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index a39185f6fe..9b1f04e1be 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -39,6 +39,7 @@ #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" #include "libavutil/display.h" +#include "libavutil/ec.h" #include "libavutil/hash.h" #include "libavutil/hdr_dynamic_metadata.h" #include "libavutil/mastering_display_metadata.h" @@ -2277,6 +2278,17 @@ static void print_ambient_viewing_environment(WriterContext *w, print_q("ambient_light_y", env->ambient_light_y, '/'); } +static void print_ecinfo(WriterContext *w, const AVECInfo *ecinfo) +{ + if (!ecinfo) + return; + + print_int("ok", ecinfo->ok); + print_int("error", ecinfo->error); + print_int("ref_ok", ecinfo->ref_ok); + print_int("ref_error", ecinfo->ref_error); +} + static void print_pkt_side_data(WriterContext *w, AVCodecParameters *par, const AVPacketSideData *side_data, @@ -2741,6 +2753,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, } else if (sd->type == AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT) { print_ambient_viewing_environment( w, (const AVAmbientViewingEnvironment *)sd->data); + } else if (sd->type = AV_FRAME_DATA_EC_INFO) { + print_ecinfo(w, (AVECInfo*)sd->data); } writer_print_section_footer(w); } -- 2.41.0 _______________________________________________ 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".