From patchwork Tue Jul 9 14:49:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 20633 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 12BCBBD87C for ; Tue, 9 Jul 2024 14:50:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 338B863381; Tue, 9 Jul 2024 16:50:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Kf3gviK8"; 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 E340C6336D for ; Tue, 9 Jul 2024 16:49:55 +0200 (CEST) Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4B0141894; Tue, 9 Jul 2024 16:49:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1720536563; bh=l+ruGOtUEsf+oom+1AAtuuNzfM0E7wBmzYXQw3sMT5s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kf3gviK8nLoeEr47/bBnYCNaENCx0F85npsjWERS5DmVLazm0qItWlUOaIXCTRKhY mWYpr6iXQfjeNfRpX59iFwFZNKTP7lxezDdDOYHEeO6MGyl69hL+h/WkIzWxLhhwma DbX3Pv9u9qpNf9ycWOXpZR0UVO8PyiwQVVnH7TZQ= From: Daniel Scally To: libcamera-devel@lists.libcamera.org Cc: Daniel Scally , Nayden Kanchev , Jacopo Mondi Subject: [PATCH v2 02/10] include: linux: Add Mali-C55 Stats and Params V4L2 format Date: Tue, 9 Jul 2024 15:49:42 +0100 Message-Id: <20240709144950.3277837-3-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240709144950.3277837-1-dan.scally@ideasonboard.com> References: <20240709144950.3277837-1-dan.scally@ideasonboard.com> 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" Add the new format describing the Mali C55's Statistics and Parameters to videodev2. Acked-by: Nayden Kanchev Co-developed-by: Jacopo Mondi Signed-off-by: Jacopo Mondi Signed-off-by: Daniel Scally Acked-by: Kieran Bingham --- Changes in v2: - None include/linux/videodev2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 7fe522e8..fbb8fbcd 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -839,6 +839,9 @@ struct v4l2_pix_format { /* The metadata format identifier for FE stats buffers. */ #define V4L2_META_FMT_RPI_FE_STATS v4l2_fourcc('R', 'P', 'F', 'S') +#define V4L2_META_FMT_MALI_C55_PARAMS v4l2_fourcc('C', '5', '5', 'P') /* ARM Mali-C55 Parameters */ +#define V4L2_META_FMT_MALI_C55_3A_STATS v4l2_fourcc('C', '5', '5', 'S') /* ARM Mali-C55 3A Statistics */ + /* priv field value to indicates that subsequent fields are valid. */ #define V4L2_PIX_FMT_PRIV_MAGIC 0xfeedcafe