From patchwork Mon Sep 30 15:20:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 21433 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 3FD05C3257 for ; Mon, 30 Sep 2024 15:20:47 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CD9F763517; Mon, 30 Sep 2024 17:20:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="g5MFIrmv"; dkim-atps=neutral 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 52E3A6350F for ; Mon, 30 Sep 2024 17:20:45 +0200 (CEST) Received: from umang.jain (unknown [IPv6:2405:201:2015:f873:55d7:c02e:b2eb:ee3f]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 49F36280; Mon, 30 Sep 2024 17:19:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1727709554; bh=VYfb7IIOBCssRgGeV/7GXq6C2xM7DjkRnp57tmZCDhU=; h=From:To:Cc:Subject:Date:From; b=g5MFIrmvW/xzi8NvJ/ZVQi6sw/ze3mchlEnfIN+gzp0ylFhR0mfzAa+neF6gPLsL9 mCQ0ZmuxFLhoU2hu8hbAz9KuTVlES+uuPqLZtJQajpatt/b4AiaLbJyzMUhRDvfU54 AIa3EQIes/aPPISuM4cKHQiWmi7e9fJFPpRCDG0I= From: Umang Jain To: libcamera-devel@lists.libcamera.org Cc: Laurent Pinchart , Jacopo Mondi , Kieran Bingham , Daniel Scally , Umang Jain Subject: [PATCH 0/2] libcamera: pixelformat: Add isRaw() helper Date: Mon, 30 Sep 2024 20:50:37 +0530 Message-ID: <20240930152039.72459-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Couple of patches to provide and use isRaw() helper. This replaces all the PixelFormatInfo / ColorEncodingRAW code to determine whether a format is a RAW format or not. Umang Jain (2): libcamera: pixel_format: Add isRaw() helper libcamera: pipeline: Use isRaw() helper to check RAW pixel formats include/libcamera/pixel_format.h | 1 + src/ipa/rkisp1/rkisp1.cpp | 3 +-- src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | 13 ++++-------- src/libcamera/pipeline/ipu3/ipu3.cpp | 6 ++---- src/libcamera/pipeline/mali-c55/mali-c55.cpp | 20 +++++-------------- src/libcamera/pipeline/rkisp1/rkisp1.cpp | 9 +++------ src/libcamera/pipeline/rkisp1/rkisp1_path.cpp | 13 +++++------- src/libcamera/pixel_format.cpp | 11 ++++++++++ 8 files changed, 32 insertions(+), 44 deletions(-)