From patchwork Tue Oct 4 13:09:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 9361839 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 5D96960752 for ; Tue, 4 Oct 2016 13:09:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F49B285B5 for ; Tue, 4 Oct 2016 13:09:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44132286BF; Tue, 4 Oct 2016 13:09:53 +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 A94ED28739 for ; Tue, 4 Oct 2016 13:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753946AbcJDNJp (ORCPT ); Tue, 4 Oct 2016 09:09:45 -0400 Received: from smtp-3.sys.kth.se ([130.237.48.192]:39975 "EHLO smtp-3.sys.kth.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753998AbcJDNJo (ORCPT ); Tue, 4 Oct 2016 09:09:44 -0400 Received: from smtp-3.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-3.sys.kth.se (Postfix) with ESMTP id 656F6C12; Tue, 4 Oct 2016 15:09:42 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-3.sys.kth.se ([127.0.0.1]) by smtp-3.sys.kth.se (smtp-3.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id w7IvmrtZxX2P; Tue, 4 Oct 2016 15:09:41 +0200 (CEST) X-KTH-Auth: niso [89.233.230.99] X-KTH-mail-from: niklas.soderlund@ragnatech.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by smtp-3.sys.kth.se (Postfix) with ESMTPSA id 58B461FB2; Tue, 4 Oct 2016 15:09:41 +0200 (CEST) From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= To: laurent.pinchart@ideasonboard.com Cc: linux-renesas-soc@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH 2/3] tests: add hue area wraparound test for HGT Date: Tue, 4 Oct 2016 15:09:14 +0200 Message-Id: <20161004130915.28812-3-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161004130915.28812-1-niklas.soderlund@ragnatech.se> References: <20161004130915.28812-1-niklas.soderlund@ragnatech.se> MIME-Version: 1.0 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: Niklas Söderlund One configuration for HGT histograms are where hue area 0 is wrapped around the hue input value space (0-255), for example area 0 can cover hue values above 220 but bellow 40. Hue area 0 is the only area which supports this mode where the areas lower limit uses a higher value then it's higher limit hence the area wraparound the max hue value. Add a test to verify this works now that gen-image supports generating reference frames with wrapped around hue areas. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- tests/vsp-unit-test-0018.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vsp-unit-test-0018.sh b/tests/vsp-unit-test-0018.sh index 2b49b54..944f7ac 100755 --- a/tests/vsp-unit-test-0018.sh +++ b/tests/vsp-unit-test-0018.sh @@ -31,6 +31,7 @@ test_histogram() { test_main() { test_histogram "0,255,255,255,255,255,255,255,255,255,255,255" test_histogram "0,40,40,80,80,120,120,160,160,200,200,255" + test_histogram "220,40,40,80,80,120,120,160,160,200,200,220" } test_init $0 "$features"