From patchwork Thu Jul 7 15:03:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 16571 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 65AA4BD1F1 for ; Thu, 7 Jul 2022 15:03:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8C9176330E; Thu, 7 Jul 2022 17:03:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657206212; bh=mj5zcWxAcGTdek1JvKZ8al1nGM8xKCKbHmMegRmZ+JI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KhsbmevoUi79aNYZ1aWmVZt/4ZsSHDZOAeEVMa6FSSjG3x4kDvmjR8JBuGAScZ/QQ Iq6Ecga7iMPTZ3EVFMvOQ83sRAF5KNebLL/CPCkeNTOD7QoF5P9lXBAblnqc+lMry2 26M3A9JqeTWtR2wOU8sjCZdQ/NVKgsBsk2UbLd4bZb/ctd0ogu61IpSmVvUb2EL6gG 5ElNJwjvr1xN4p7InZQ1as3Uizqd7YbnxjGpGKaYIIEuBcIbrYx5noDiBXkxmI2mLW 8yfDBm2LoQndeere+KkAbAFZyc/N962X4c2llnJe1nSKWtVfwPs8GcXGi5y0LwrGpO 6lA1ESmaZJLHQ== 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 C9A7C60400 for ; Thu, 7 Jul 2022 17:03:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="SqBxrMdt"; dkim-atps=neutral Received: from pyrite.rasen.tech (softbank036240121080.bbtec.net [36.240.121.80]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1860D6CA; Thu, 7 Jul 2022 17:03:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1657206210; bh=mj5zcWxAcGTdek1JvKZ8al1nGM8xKCKbHmMegRmZ+JI=; h=From:To:Cc:Subject:Date:From; b=SqBxrMdtKdBw7WRceKrPj0MyN9kbQ1OoIJCR2Q31xwFEUa6/GhYMHxMYg+j1TrWhg ed0UlHp0zdilXzbsy/M7mm/A/GKTDMROIOo2vnV1wpTdzYwIvcaaqaNxqaQs+yFiDG znPViQDD5t0JdJolcz/zfazex4EsnayRKrTuC5b0= To: libcamera-devel@lists.libcamera.org Date: Fri, 8 Jul 2022 00:03:06 +0900 Message-Id: <20220707150310.3645858-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] Add more formats to rkisp1 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" This series adds support to the rkisp1 pipeline handler for YUV420, YVU420, YUV422, and YVU422 as available output formats. The first two are already supported, while the latter two require a modification in how V4L2PixelFormats are chosen, which is in patch 2/4. Patch 4/4 is RFC as it adds a format that is not yet supported by the driver but will be in the future, and I want to commence discussion on how this situation should be handled, including backwards compatibility and preventing the user from choosing the format when on an older version of the driver. (The kernel patch hasn't been sent yet because I haven't yet been able to test it on the rk3399) Paul Elder (4): pipeline: rkisp1: Add output support for YUV420 and YVU420 libcamera: v4l2_pixelformat: Use multiplanar if single is unavailable pipeline: rkisp1: Add support for YUV422 and YVU422 pipeline: rkisp1: Add support for UYVY src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 9 ++++++++- src/libcamera/v4l2_pixelformat.cpp | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-)