From patchwork Fri Jul 21 13:47:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Dekker" X-Patchwork-Id: 42890 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:be1d:b0:130:ccc6:6c4b with SMTP id ge29csp234496pzb; Fri, 21 Jul 2023 06:48:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlFEewEJieNPTS52UIfG7Aw4oMwnEjA19SO/5TmS9xaW35zgWJOGoo3ruFm310HK+0Bqqps2 X-Received: by 2002:a19:ca1b:0:b0:4fa:d522:a38e with SMTP id a27-20020a19ca1b000000b004fad522a38emr1330483lfg.35.1689947280601; Fri, 21 Jul 2023 06:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689947280; cv=none; d=google.com; s=arc-20160816; b=gvMb3+MdJLj6TIEp1REeLeCbx3fBpPwOzIUCwGLK+DPfY7j9cJzQhslvL1rcWnMHga 7rEaFhHkgFCj1Ukxr4msj4NjUDT/8uqoJf1+PSD02xk7er4ZtkbnqB/I9O5gY333AFAT yfc/xS7X96IXN+rTS9nT/8InVgTxitBSAKmFVW/xuZHUuWS2JobqGpoeeAeEsZ8m/9IA REp6FDHFb29mu0RzxjgdAV8KiEU1+dvmTP4GOy3zoQDh3eL3ZWkYYuGgg4+9ko88jgxH KgiysKoQh9lpX3uk9j4z9u3CW9Ed4hP3wLQ9OmmAs7L2pFf0X4SDPI2/aveTbSTdftx6 5/JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:feedback-id:dkim-signature:dkim-signature:delivered-to; bh=wBfwq/iJNpdAWrJcIh+/LqEsDqjzqLGeOaj+0ekyzrE=; fh=RX379NAUHdZIU7CQlxbXTMt5HBBB5CUKf4o4OtPlQjY=; b=rq2c+WnSTuJCVpReslFldtl6veJau7H8xAEY1Pd7oMrGa1ppNglOJrsaAVaw3zcc/0 7/np4IYngfGpSOeJrDvErbCXF162C81WX1XD8Vql8yMTvGl7fnpZRVZ/fdD/QX2b4Zb6 9vGiEVPdhui87yd+EW3B1Q24nLPV6vmTrZJcqL1PGXP76eOIJJuVEfmSh5gf3lvY0yZf 13dc4rgNyPCEfKYcKsHWLOtN5Tlzy7qGvoUzVhhhWereCawcbe7cMlD+PC7LJsfUJ60D ul4ltFigb1aQYczhGr5+AFUyFWKvfN2niq4xJ/R3QDhaOHcxK8ohs6niz2BUAn7M16yX 3JFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm1 header.b=J5ck47n6; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm3 header.b=OfqXVO3a; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id jt18-20020a170906ca1200b00993cc1242ccsi2074252ejb.623.2023.07.21.06.48.00; Fri, 21 Jul 2023 06:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@itanimul.li header.s=fm1 header.b=J5ck47n6; dkim=neutral (body hash did not verify) header.i=@messagingengine.com header.s=fm3 header.b=OfqXVO3a; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4233C68C607; Fri, 21 Jul 2023 16:47:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: DsOcka5Kb9UM 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); }