From patchwork Fri Jul 25 04:16:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 23951 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 DB16DC3237 for ; Fri, 25 Jul 2025 04:16:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 133026907E; Fri, 25 Jul 2025 06:16:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="Kchn1Lea"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D934F614CD for ; Fri, 25 Jul 2025 06:16:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eFCjHa5MR6paWwVXTqWStwnT9qCrIe/5o7wWoRWb9qk=; b=Kchn1LeasQDKtndlaHeCHR5+x1 usVzT+A3hFSqNBnqK5296kutZbz02XZTaKDJRyI1u92LB/kdmpDyjHhO8urApgR9lcLU3jEiRWNRY 11G6GXOdOWIxI46iAA3BDqMXr6LHr5x1C5S9CFa1yCQB5TdyXSzCdArDdCY9Y6W4pt1EZtT8VsZSD v2IJZKmE52h/WKChvLGv+tsHJPlvbqk0GDaBm38fuJInOn1qUrjrtAMLc0FtWQcp2i2+YfpTfMzI4 /QdUqpognEVizqBkgx0rYhRegXY9TZ+tYeJ+ih/n59H6U6C/WCpD2k1TYCtlAIz3qelmOrh00sGhk 7RatFt1Q==; Received: from [49.36.71.87] (helo=uajain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1uf9qp-003Wbp-OX; Fri, 25 Jul 2025 06:16:08 +0200 From: Umang Jain To: libcamera-devel@lists.libcamera.org Cc: Umang Jain Subject: [PATCH] gstreamer: Make format_map[] const Date: Fri, 25 Jul 2025 09:46:17 +0530 Message-ID: <20250725041617.9715-1-uajain@igalia.com> X-Mailer: git-send-email 2.50.0 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" format_map[] is the mapping between GstVideoFormat and libcamera's PixelFormat. Make it const as it is not meant to be changed. Signed-off-by: Umang Jain Reviewed-by: Barnabás Pőcze Reviewed-by: Laurent Pinchart --- src/gstreamer/gstlibcamera-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gstreamer/gstlibcamera-utils.cpp b/src/gstreamer/gstlibcamera-utils.cpp index a548b0c1..66fc8642 100644 --- a/src/gstreamer/gstlibcamera-utils.cpp +++ b/src/gstreamer/gstlibcamera-utils.cpp @@ -13,7 +13,7 @@ using namespace libcamera; -static struct { +static const struct { GstVideoFormat gst_format; PixelFormat format; } format_map[] = {