From patchwork Mon Feb 13 15:46:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9570185 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 0F6D660572 for ; Mon, 13 Feb 2017 15:46:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0749328358 for ; Mon, 13 Feb 2017 15:46:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F04D02838E; Mon, 13 Feb 2017 15:46:37 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 D98C028358 for ; Mon, 13 Feb 2017 15:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752861AbdBMPqg (ORCPT ); Mon, 13 Feb 2017 10:46:36 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:46824 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753157AbdBMPqe (ORCPT ); Mon, 13 Feb 2017 10:46:34 -0500 Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 2D20220004; Mon, 13 Feb 2017 16:45:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1487000745; bh=k5/49eSTh8zyrVgKDqZjslXFvfJvRivWjf5IuYN7U4I=; h=From:To:Cc:Subject:Date:From; b=sumD6G6yEI4Uh7kLG2TV7m15SN1srohYBkh/0inrcp/485EV/lOHuuoavpNZD5YEo xb0D8CLyDn2VNWEWtZh2NfY3+HWArFVc3z6zXb+C/SJ+n/U/QLcjOhOwnN8nJYU5FQ 02dG/vAPNIdqAD+Xv1spzBz6OmI5Y6VTS4AWUHxw= From: Laurent Pinchart To: linux-renesas-soc@vger.kernel.org Cc: kieran.bingham@ideasonboard.com Subject: [PATCH] vsp-lib: Fix reference frame generation for HSV input formats Date: Mon, 13 Feb 2017 17:46:56 +0200 Message-Id: <20170213154656.30363-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.10.2 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 gen-image doesn't support processing HSV input frames. Fortunately the HSV tests don't require it either, when they take an HSV input frame they just pass it straight to the WPF. We can thus set the input format to RGB for reference frame generation. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- scripts/vsp-lib.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index ae9683cffab6..695e081bf34d 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -103,6 +103,16 @@ reference_frame() { local alpha= local options= + # gen-image doesn't support processing HSV input images. The good news + # is that the HSV tests that take HSV images as inputs don't need to + # perform any processing. We can set the input format to RGB for HSB + # reference frame generation. + case $in_format in + HSV24 | HSV32) + in_format=ARGB32 + ;; + esac + # Start with the input format to compute the alpha value being used by # the RPF after unpacking. Keep in sync with generate_input_frame. case $in_format in