From patchwork Thu Jul 7 15:03:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 16574 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 33577BD1F1 for ; Thu, 7 Jul 2022 15:03:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DA81663315; Thu, 7 Jul 2022 17:03:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657206217; bh=W/fkLtNY3HSnCbs4zt9sFFBG9AmC8RU3aDGdKLpJ4vI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HfhiaR/1Vr5J8sU/RbYzgesaNAnBRyPGZx/VmttmDJU8lZ9LxTgvv8syhlHEd11jr 9wSTT1iW4/LQtQmQG5cWkLlWV9N+vbe0kDc7shy7Hpv9D3ab92R9OjLwrtRtaIZunD Ldb0QdvT5CnXMMEljvQ/68oKhTyO+x+o7SghEl+FO9K0VBSaB+4nZ36rMPapLid4qM piHPbqNGFjYsI4HoAeymz49Xqo1Kx541ZpfPyG7dwbVO3lCkPBcjFCT3YIf9X331gO 30Bsiz9LrfjOutRQ8hmCtYwYGi66jkTLcWTPVwxFrET8SPFp7b61LgnP4JiSkHvMTF VpE14qoVzTAkg== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 202EC60400 for ; Thu, 7 Jul 2022 17:03:36 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bFWDD93+"; dkim-atps=neutral Received: from pyrite.rasen.tech (softbank036240121080.bbtec.net [36.240.121.80]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A5AA8D01; Thu, 7 Jul 2022 17:03:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1657206215; bh=W/fkLtNY3HSnCbs4zt9sFFBG9AmC8RU3aDGdKLpJ4vI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bFWDD93+hnmyesQScxpRsV1+MiNYq8gvEMCKur4iiyy3nSPMAkggQD705FuDkYxY+ 7qZH47AkOzJz/r8/UXS/jRMKjPMxTD8XWVssJ0ZqGcpqYe74oJDJS55EHYU6wFHlYI jzE7tApfFgich2nWauCU/y5kr930cMR+Vx3Q1Qoo= To: libcamera-devel@lists.libcamera.org Date: Fri, 8 Jul 2022 00:03:09 +0900 Message-Id: <20220707150310.3645858-4-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220707150310.3645858-1-paul.elder@ideasonboard.com> References: <20220707150310.3645858-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/4] pipeline: rkisp1: Add support for YUV422 and YVU422 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Elder via libcamera-devel From: Paul Elder Reply-To: Paul Elder Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" YUV422 and YVU422 are already supported as output formats by the rkisp1 driver. Add them to the pipeline handler to support them in libcamera as well. Signed-off-by: Paul Elder --- src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp index c34e4147..24ff62e1 100644 --- a/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp +++ b/src/libcamera/pipeline/rkisp1/rkisp1_path.cpp @@ -209,10 +209,12 @@ void RkISP1Path::stop() namespace { constexpr Size RKISP1_RSZ_MP_SRC_MIN{ 32, 16 }; constexpr Size RKISP1_RSZ_MP_SRC_MAX{ 4416, 3312 }; -constexpr std::array RKISP1_RSZ_MP_FORMATS{ +constexpr std::array RKISP1_RSZ_MP_FORMATS{ formats::YUYV, formats::YUV420, formats::YVU420, + formats::YUV422, + formats::YVU422, formats::NV16, formats::NV61, formats::NV21,