From patchwork Wed May 31 15:59:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vittorio Giovara X-Patchwork-Id: 3773 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp357794vsk; Wed, 31 May 2017 09:06:21 -0700 (PDT) X-Received: by 10.28.31.135 with SMTP id f129mr6412923wmf.78.1496246781862; Wed, 31 May 2017 09:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496246781; cv=none; d=google.com; s=arc-20160816; b=obAh3QLzrA86jlIV1UK99gF/7LODHaTAKWxiZKeNOq6bbbjtXggjplWgJCZFnOzcay O9BNgDehL4qoTVYwhCgBXdiG9WHs+swfY9y0AAb58atWYQZ9wchkneVUFljbTCJ909nw no8NCRutrcFYuAd/HkSJWfkSgZrT+tfWdfhgWFlybxTcKy+Urd+uGY9pxzseGsdqOKom 8Cb4c+Nms4d3aXHqwSsyi/0osNslcLqT5Qv14yIfr1+dj1yPzibghwSLo2ca9PVV00tl DG2f5XVXLqZbhU0Lb46/HBtePYX37jB/ijop5uVVVJmoEnlsoaKK/ywaAE3cFgxvUyYy I4IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=s1aec+Eh4+7Aj2sYQZ3JonyVKV7IOrYUFCjDUdLM2AE=; b=svmVJBdq8nmNxZfgBMPZjRU/wViD16g8Q7Ze4OTrnV720emOEn1oyF4wcHJ06YP/aq tk0A6KtgMVsGVMRdSWtTOAnjiXf6PALULKMxrNcmr3srpmqpBBb0zXb5aX2cfxaGJ5yj AueXSMIxqnqEQ66dugVUlb7YQlX2GI+QwJp+SkRmlcprMz5UFhYCJkqSiXDG1AixiarR Zl/aOzyhe6pRY5qjIspnS2+Cq9Uy3AGXj1DLruZTcD1nk/kuvr1OAYYpWMmUxWf/O+IT NlezhT0lHWA9gJtF5GSkZ9Wd9RyC7AEGDWxvtUR9XpfGhei5qFhpzer2NDW5EJRwMJ4A KT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z28si31153429wmh.121.2017.05.31.09.06.21; Wed, 31 May 2017 09:06:21 -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=@gmail.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 73D16689755; Wed, 31 May 2017 19:06:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 99047680AB4 for ; Wed, 31 May 2017 19:06:06 +0300 (EEST) Received: by mail-qk0-f194.google.com with SMTP id v195so2371488qka.2 for ; Wed, 31 May 2017 09:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=yx1h4rBO7OU2ZMN0pbjhXcoOKAEYS30uDzjxGk+ouCM=; b=oclckH7YNXuM6teycPNPQHYnBtTVVvUixmU1/jsBa3rb1WudOMgP0DAnQ+SiGFcX5j WA0cwBHwWlXjWKSF4/Y7Cao4vM/SocndeGNi5JTk7vKrrazmeQ+6njUxuep4BgC3LQl5 Isl0M0y+BzAc4qimVPCTLvQ+sL21+TG4KsK+TlrZPr2pl9UZJrF2PuE9WsldhqTgcPqY O3rO6ES7GtjYt87nf9mKDO0y9u25glUSJbgB/idmk+rjDIwa2T/GVK4zk5SsNkU02mzf D8y/s+nK71M70+GbdMsiu/Q7B2gqU9GtVsLpJTDUQvF1/2PVqkFEkruEioPa3d6Uf0VV rDOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=yx1h4rBO7OU2ZMN0pbjhXcoOKAEYS30uDzjxGk+ouCM=; b=n8OJVs6rSBIHyD64ksTY4JrFobWYaIPH1B/cs9IwUvJMFqVAfHRySbyvLm3WgPhLL8 QRFvv7EuySguiv2FyJN7Hy2pXtuT+085CbR2I8yNSSdlk0VExXMwh2enO3Prhr09690h 7f4WYgCF1mg/hxC8i5vVPiP6FZdLF+I9kZCDkIb/U23xQllGBtIbCNBCt/zyxkIOKe1j bFUGMuDx2Wsi4zVdmXK4DmUKu4fWWHnDq2r+cxq7lT8mxJBYmYWqKvAkZq/Ow/o6mdxR +EcMmlfx7KrNoY7ELoH+ediwvQK30YlAOHCvU+EwQvXrEh021YXGmhIfpqtTDRzFaxdj 9dbw== X-Gm-Message-State: AODbwcCWMHXBsn4IjAqf+Ez1z7intSuOsmWcZILCOw2OjboqBIXN4KEe AYhKrd+Nw/NdLgt3 X-Received: by 10.55.191.6 with SMTP id p6mr28351016qkf.162.1496246343409; Wed, 31 May 2017 08:59:03 -0700 (PDT) Received: from vimacbookpro.vimeows.com ([8.40.92.161]) by smtp.gmail.com with ESMTPSA id r10sm10768572qtb.15.2017.05.31.08.59.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 31 May 2017 08:59:02 -0700 (PDT) From: Vittorio Giovara To: ffmpeg-devel@ffmpeg.org Date: Wed, 31 May 2017 11:59:00 -0400 Message-Id: <20170531155900.10712-2-vittorio.giovara@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170531155900.10712-1-vittorio.giovara@gmail.com> References: <20170531155900.10712-1-vittorio.giovara@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/2] ffprobe: Print AVContentLightMetadata side data contents X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- ffprobe.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ffprobe.c b/ffprobe.c index f6d0264334..b3464aac8f 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -1913,6 +1913,10 @@ static void print_pkt_side_data(WriterContext *w, print_q("min_luminance", metadata->min_luminance, '/'); print_q("max_luminance", metadata->max_luminance, '/'); } + } else if (sd->type == AV_PKT_DATA_CONTENT_LIGHT_LEVEL) { + AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data; + print_int("max_content", metadata->MaxCLL); + print_int("max_average", metadata->MaxFALL); } writer_print_section_footer(w); } @@ -2155,6 +2159,10 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, print_q("min_luminance", metadata->min_luminance, '/'); print_q("max_luminance", metadata->max_luminance, '/'); } + } else if (sd->type == AV_FRAME_DATA_CONTENT_LIGHT_LEVEL) { + AVContentLightMetadata *metadata = (AVContentLightMetadata *)sd->data; + print_int("max_content", metadata->MaxCLL); + print_int("max_average", metadata->MaxFALL); } writer_print_section_footer(w); }