From patchwork Wed May 4 13:15:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 15767 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 D2A4DC0F2A for ; Wed, 4 May 2022 13:16:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1BBA765649; Wed, 4 May 2022 15:16:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1651670166; bh=oWmoj5/5mCrDYd6vyKpZpc983r/eirffXmNRraKQKuA=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GDuc3Ip6OuA1HeESq2CkDFPPedC2xhSnWdjZ+2Z9SdYHhlPcdNOdj8udXy4MSoEBP m3uOIVWjmfT0heU0WCJ6bQopUin08CCVQ6Y65Gdvad7s8HvCwUQ4XWciExSWdLjIRU 8msz2vF64KyeyxXr+88BAv1GfwqBC/2uRyvWe0xMX+lHq4mZZQiJ7bwU8F0+PhmUhH JyhkTVGv7cwyi+UYFnMQAq0loTEQIr2wWzjbgkfg+0TXBn8uwYq0FTGrCaCFEg2MJV b4bc4nwkY75CEixdjouPOyK5TTizs9h1nkpt+oGjSx5WKSpQeHsZeU0Nym2/u9auxA SRjh5tnyGPlSg== 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 D8F49604A4 for ; Wed, 4 May 2022 15:16:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="dYQaT/sx"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 61B334A8 for ; Wed, 4 May 2022 15:16:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1651670163; bh=oWmoj5/5mCrDYd6vyKpZpc983r/eirffXmNRraKQKuA=; h=From:To:Subject:Date:From; b=dYQaT/sxaom6IqzTF9FrGzzqrk9/Suq9jGNg7syyiVgXI4aUs+gayGmBeLwktXP7I s1F4DFwIrXcwwDyUDWacUqLkvSYSqA8yuQlccDsuxdtOLEYVwcztb0O3g9rZBb06Y5 +cWdW80ZQErF8hPbpKBCfhG74OycFxoMDtHqBIU4= To: libcamera-devel@lists.libcamera.org Date: Wed, 4 May 2022 16:15:53 +0300 Message-Id: <20220504131558.9498-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] libcamera: Support additional pixel formats and media bus codes 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: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, While developing support for the i.MX8MP ISI in the simple pipeline handler, I ran into missing support for some media bus codes and pixel formats, resulting in error messages in the libcamera log. This patch series fixes it. The ISI driver is under development and will be posted shortly to the linux-media mailing list. Patches for libcamera will be posted as well. I think this series could go in already, as those formats are likely to be useful on other platforms. Laurent Pinchart (5): libcamera: formats: Add YVU422 pixel format libcamera: formats: Add YUV444 and YVU444 pixel formats libcamera: v4l2_subdevice: Use MEDIA_BUS_FMT_* macros libcamera: v4l2_subdevice: Add RGB565_1X16 media bus format libcamera: v4l2_subdevice: Add YUV8_1X24 media bus format src/libcamera/formats.cpp | 39 ++++++++ src/libcamera/formats.yaml | 6 ++ src/libcamera/v4l2_pixelformat.cpp | 6 ++ src/libcamera/v4l2_subdevice.cpp | 148 +++++++++++++++-------------- 4 files changed, 126 insertions(+), 73 deletions(-) base-commit: 8a845ab078c3fe12ac4edd16c8cbac5b7ec03b98