From patchwork Fri May 11 10:00:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10393843 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E6E1B60153 for ; Fri, 11 May 2018 10:01:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB82228E61 for ; Fri, 11 May 2018 10:01:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A049028E63; Fri, 11 May 2018 10:01:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BF2228E61 for ; Fri, 11 May 2018 10:01:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752998AbeEKKBW (ORCPT ); Fri, 11 May 2018 06:01:22 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:52661 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752987AbeEKKBU (ORCPT ); Fri, 11 May 2018 06:01:20 -0400 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 25BB420001D; Fri, 11 May 2018 12:01:18 +0200 (CEST) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH 4/5] yavta-hdmi: Generalize capture parameters Date: Fri, 11 May 2018 12:00:38 +0200 Message-Id: <1526032839-14536-5-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> References: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the newly defined ${capture_vin} and ${convert_format} to generalize capture operations from HDMI sources. Signed-off-by: Jacopo Mondi Acked-by: Niklas Söderlund --- yavta-hdmi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yavta-hdmi b/yavta-hdmi index a0a09a3..5806a0d 100755 --- a/yavta-hdmi +++ b/yavta-hdmi @@ -11,10 +11,10 @@ out=/tmp/vin-tests rm -fr $out mkdir -p $out -size=$(v4l2-ctl --all -d /dev/$vin0 | awk '/Width/{print $3}' | tr '/' 'x') +size=$(v4l2-ctl --all -d /dev/$capture_vin | awk '/Width/{print $3}' | tr '/' 'x') -yavta -n 4 --capture=10 /dev/$vin0 --file=$out/frame-#.bin $* +yavta -n 4 --capture=10 /dev/$capture_vin --file=$out/frame-#.bin $* strings $out/frame*.bin | head | wc -l md5sum $out/frame*.bin -for f in $out/frame*.bin ; do $base/convert.sh $f $size ; done; +for f in $out/frame*.bin ; do $base/convert.sh $f $size $convert_format; done;