From patchwork Tue Nov 10 11:35:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 11894201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45A01921 for ; Tue, 10 Nov 2020 11:35:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01A2020781 for ; Tue, 10 Nov 2020 11:35:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N2nrICOx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01A2020781 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=N1m3NEIfElW9ICcYm4ZQNsCS8fRx9EAladvXArw37Gc=; b=N2nrICOx14KgDWaM0Z0/9tJSz2 BTsYybYASADAmVGySEs35KlD8F/QDRtxaUYRmEr/PqA9ohRkcTerUf5S2zgyfquTWi4fg1UZi085F xkiK8DIVpfGLBI2UczCp6DkYYKNFQ7NEKtdhlkjDv6h5wcx11WpBSlxsNVwrylRgD1UzTV3+acLSq zRX9Zuy/6hFmFkNSs0GbVEEOFvRw9Pc8bVoVSVK/hAqHzX8klTOgaIebAHL59V3cvDLsd9MZPrf4k ObEETUONXyaAUzGpBVNTkl5OfkP42Mi6oBFLZDtvsSWOJCXxR5+mBXLO/9BcAcJEn9XJt9C/91gj4 +Knpxc7w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcRvy-0006yB-8x; Tue, 10 Nov 2020 11:35:34 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcRvv-0006xC-MT for linux-rockchip@lists.infradead.org; Tue, 10 Nov 2020 11:35:32 +0000 Received: from guri.fritz.box (p200300c7cf1c4d00f55477954bc20769.dip0.t-ipconnect.de [IPv6:2003:c7:cf1c:4d00:f554:7795:4bc2:769]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dafna) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 3A8F21F451AB; Tue, 10 Nov 2020 11:35:29 +0000 (GMT) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Subject: [PATCH v4l-utils 0/1] test-media: Add a python script for rkisp1 tests Date: Tue, 10 Nov 2020 12:35:21 +0100 Message-Id: <20201110113522.14679-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201110_063531_830671_85E968E2 X-CRM114-Status: GOOD ( 13.01 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mchehab@kernel.org, dafna.hirschfeld@collabora.com, dafna3@gmail.com, tfiga@chromium.org, hverkuil@xs4all.nl, linux-rockchip@lists.infradead.org, helen.koike@collabora.com, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, kernel@collabora.com, ezequiel@collabora.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org I am adding the script I used to test the rkisp1 driver. here is the help of the command: # python3 ./test-rkisp1.py -h usage: test-rkisp1.py [-h] [-v] [-s SENSOR] [-o OUTPUT] [-S] [-c] [-C] [-P PIXELFORMAT [PIXELFORMAT ...]] [-p PATH [PATH ...]] [--isp-dim ISP_DIM] [--resizer-dim RESIZER_DIM [RESIZER_DIM ...]] TL;DR: just run `python3 test-rkisp1.py`. This is a tests script for rkisp1 driver. There are two ways to run the script, either by using a hardcoded set of tests, or by giving parameters for a custom test (see 'customized test' options). To run a custom test, you should define all the parameters under the 'customized test' section. If both selfpath and mainpath are given in the '--path' option then the '--pixelformat' and '--resizer-dim' should also have two values, one for each path. For example: Configure selfpath to YUYV,640x480 and mainpath to NV12,800x600: python3 ./test-rkisp1.py -p selfpath mainpath -P YUYV NV12 --isp-dim 640x480 --resizer-dim 640x480 800x600 -S The script was developed for python version 3.7.6 and might not work with other versions. optional arguments: -h, --help show this help message and exit -v, --verbose verbose output, logs are printed to stdout and to {outputdir}/log.txt -s SENSOR, --sensor SENSOR sensor to use. If not given, then the first sensor found is used -o OUTPUT, --output OUTPUT directory to add output streams. Default is current directory '.' -S, --store store stream to output folder -c, --compliance run compliance tests when streaming -C, --cam also run some tests with the 'cam' command from libcamera customized test: those options are for running specific tests of you own. -P PIXELFORMAT [PIXELFORMAT ...], --pixelformat PIXELFORMAT [PIXELFORMAT ...] the pixelformat(s) -p PATH [PATH ...], --path PATH [PATH ...] the stream path. Allowed values are 'selfpath', 'mainpath' --isp-dim ISP_DIM the {width}x{height} of the isp output. --resizer-dim RESIZER_DIM [RESIZER_DIM ...] the {width}x{height} of the final image Dafna Hirschfeld (1): test-media: Add a python script for rkisp1 tests contrib/test/test-rkisp1.py | 576 ++++++++++++++++++++++++++++++++++++ contrib/test/v4l2lib.py | 90 ++++++ 2 files changed, 666 insertions(+) create mode 100755 contrib/test/test-rkisp1.py create mode 100644 contrib/test/v4l2lib.py