From patchwork Wed Feb 8 14:04:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9562605 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 2AD15601E5 for ; Wed, 8 Feb 2017 14:05:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D805284F1 for ; Wed, 8 Feb 2017 14:05:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 125CD284F6; Wed, 8 Feb 2017 14:05:07 +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=-6.9 required=2.0 tests=BAYES_00,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 7DA81284F5 for ; Wed, 8 Feb 2017 14:05:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932399AbdBHOFE (ORCPT ); Wed, 8 Feb 2017 09:05:04 -0500 Received: from mail.kernel.org ([198.145.29.136]:41602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754633AbdBHOE1 (ORCPT ); Wed, 8 Feb 2017 09:04:27 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 563DC20340; Wed, 8 Feb 2017 14:04:21 +0000 (UTC) Received: from CookieMonster.cookiemonster.local (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBDD720256; Wed, 8 Feb 2017 14:04:18 +0000 (UTC) From: Kieran Bingham To: laurent.pinchart@ideasonboard.com, linux-renesas-soc@vger.kernel.org, kieran.bingham@ideasonboard.com Subject: [PATCH 5/5] tests: Add RPF cropping test Date: Wed, 8 Feb 2017 14:04:00 +0000 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP 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 From: Kieran Bingham Test both the input cropping size and position Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- tests/vsp-unit-test-0021.sh | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+) create mode 100755 tests/vsp-unit-test-0021.sh diff --git a/tests/vsp-unit-test-0021.sh b/tests/vsp-unit-test-0021.sh new file mode 100755 index 000000000000..d00dd0dece97 --- /dev/null +++ b/tests/vsp-unit-test-0021.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# +# Test RPF crop in RGB and YUV mode. Use a RPF -> WPF pipeline with a fixed ARGB32 +# format on the input and capture output frames in all RGB formats supported +# by the WPF. +# + +source vsp-lib.sh + +features="rpf.0 wpf.0" +crops="(0,0)/512x384 (32,32)/512x384 (32,64)/512x384 (64,32)/512x384" + + +test_rpf_cropping() { + test_start "RPF crop from $crop" + + pipe_configure rpf-wpf 0 0 + format_configure crop-rpf-wpf 0 0 RGB24 1024x768 ARGB32 $crop + + vsp_runner rpf.0 & + vsp_runner wpf.0 + + local result=$(compare_frames crop=${crop}) + + test_complete $result +} + +test_main() { + local format + local crop + + for crop in $crops ; do + test_rpf_cropping $crop + done +} + +test_init $0 "$features" +test_run