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 E740746EFD for ; Fri, 21 Jul 2023 13:48:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1031568C5F4; Fri, 21 Jul 2023 16:47:57 +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 780CA68C43A for ; Fri, 21 Jul 2023 16:47:50 +0300 (EEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 99DB65C00B1 for ; Fri, 21 Jul 2023 09:47:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 21 Jul 2023 09:47:49 -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=1689947269; x= 1690033669; bh=9YCB90DHqlaj+XSBkvQeYOxGttN2H2rxi8WYAwJSv3U=; b=J 5ck47n6w3wmcdyPvRKlU9is7JWzdXgXHzGlBMqLVByfWFNEVDYLuDVy+ozQTTLTF WjfJ/BhFqZvxtYFRxA3sFT2INa6IB2+dZp7xG2avQP7+n9lOQi6gnTua27L5lkKW cdzQUa18nlHQ4uxd/M9P/JE5Fbs+sAjQFWoZPA7YW2LUfTBq6O5gWuvCzvpCtNBH 2S5DwhJVqmKsp65MU2Ij8ySRpTQTqNdybRKAW6uZc5k9SZMRU/CMZu6orJvarl4F 33bpLCaz5wp3ZE9hJppywY2JvZRR1dhkBpMzS6SIjrQO+NNkuedpZr7h5WXzY5Yk iqNmpsugOP60nMswa+Y0g== 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=1689947269; x=1690033669; bh=9 YCB90DHqlaj+XSBkvQeYOxGttN2H2rxi8WYAwJSv3U=; b=OfqXVO3adVzIh/5aq 5PK78iWXnbXbzpzPARql6PDar5kiNv45hr4XU8uuBD3fkIB34GnPjYZyVzBWQZS+ S5TklIq202WMykbCe7IkHYewZzSsu5bkvbUhYO+OekGck3E7yNRqZG4R4fQ71Dbo bZWa7cEPsuvJi8jSBBzJPc6qvfNpdjfd1OldZlWchWO7hYXCACgv0UuamMi/c0eU aWVvV9zYYQkfQXU7ACrR/jewFsvKml29WwCDEIyuCI8i2uY8908WmaAIuh7huVC4 BRETgCVwWbak1ptbtykBb/j4vBTsizWRbqNgQhycorMd+JlUa3wNuRR6RcmfDhQQ zIk4Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedvgdeigecutefuodetggdotefrodftvf 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:47:48 -0400 (EDT) From: "J. Dekker" To: ffmpeg-devel@ffmpeg.org Date: Fri, 21 Jul 2023 15:47:47 +0200 Message-ID: <20230721134747.13621-1-jdek@itanimul.li> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721133746.33335-6-jdek@itanimul.li> References: <20230721133746.33335-6-jdek@itanimul.li> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/7 v1.1] 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..572a5150cf 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".