From patchwork Mon Jun 29 08:36:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 27075 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 EB2ABC3264 for ; Mon, 29 Jun 2026 09:42:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8C5D465F19; Mon, 29 Jun 2026 11:42:28 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="A9TYo/0P"; dkim-atps=neutral Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4F14658B4 for ; Mon, 29 Jun 2026 11:42:25 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-473987fc217so68327f8f.0 for ; Mon, 29 Jun 2026 02:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1782726145; x=1783330945; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jjn/Cv38r0CBDn6xvS/obDVXTgG4SR205+YKmG/PUv0=; b=A9TYo/0P2AmMjDZMWCAEXBjuDcIOfY+K5ZOiZidty/cA/BoDiFItAkgZdCmdg5Sxa4 KcfCI0IfoXuH8IyX21MxHm+KeTRVw9xOydbZmQzB4SzNVejO+EWlvpZ/losPhusEgy8b 4SV4zo3wdD3c/m/xA5cfUHa9j3pATTy+iY+lzS6vc7pzhb8wHZmgzEfTpI8+rhHus1nM GnpfygXoSJYI95Agke/TpoOI8lUt2jST+91YnSWdlmwHNmiN7gHb8IvunDQcaJI7KI8I TSI+6T/CfYID7vlqG+LjXwulwZ4fXICGrhsBgAMR7fiY7QqZYauUqmsKPAlhhjgmG6Fa DULQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782726145; x=1783330945; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jjn/Cv38r0CBDn6xvS/obDVXTgG4SR205+YKmG/PUv0=; b=bR03nP4L0Knctv2Xucm3JO2666QpmEc7ZS4/GCrSh7MFwImegG0el3byotNkAklgSo z8tHQdsEgoTQ5xH4QyPKm2wdPgbfaoJIXrelj/UdNcsiIPSTrsZilEEQrtwRF0xUU5um Xlpfxolis4+8l2QrKWiWg3WdGypuBm+RkHh6P9+QYI4UeJDLIMn0wZJFU/jXJQMaZt5p dGRJmKPKU8RXMMlyzAcORsqoo4cFEkK9ItdYVAC6PFP/czpkPhnNSnLgVvPiJS+BsFgy Gx1MsXpqRBdNXUb6bAt6KbqXxdQmpYEaCUraUqO4/vMcefuoXMFBL1OkUlcX57R4e5nk 9TvA== X-Gm-Message-State: AOJu0YwNYZRE0Hh1/S/qkWJWKgUddV6wfoQbQE41YrCbfgaj50W+YTq3 pGp23K1ZkF/mPROh8GBJfzFFWkduzQcLIZRO2rBaasNazON6BQy+Fgkn/VY4FJiFvvxLSDcvuAk 8rFagyJo= X-Gm-Gg: AfdE7cmWTXP+y1dKzcSSHjCHMk54zQggWZhg+pBGhbRSVqCCJGRjV6yttbrAdGQKrGR TJNSuSZ/LezhU4yOO0qLnMXtKZMu73uD53aWZ8X9IcEEtGr1SQ/0X0igfey6J3E1Q+m5brTz1E0 6AZJFiyr7VHAUQkXlEPVylSYCZpq1Dv1gSLPTECpFKEyiTLqKtBkQNtXWgHeB6B7TCkPkwZZHhT qHuAW8V5G+fS/clDtKen2TKv7rkFYbC/8Pmx6RGLc0XwGjbNsy22Z3wBuViNeQ1nMxDENZu1QZ/ quyZLV+2qgPmgU4kB50LfaTf4T2tIJT0E97+KEx+et/uWg3vg24oo+m3S6TwKZDCxOUmml0VkvW lbzZv5/IFgnene7mczOKXZBaqoo2B2ZT19aBQj6LNvRP4EviW4+ADznRIPK4uwV4PDmRji33NCl PaBLkkunBFC48FJ/tGXqpK7KtvV/eMWs748Qmo+jyyMfsv8YQja0i0AwJNNyP0tv9TUIGbytKll WmjH4vK2f6GMcpAm5pi9WVJt+SmPD7Tg6exL/mlaS2aDpuXpuGsWa39jWN9ZZcqgk93TKDIMJJe TIc5/IEJ6M4jUYma/bpC X-Received: by 2002:a05:600c:6386:b0:493:a974:f15d with SMTP id 5b1f17b1804b1-493a974f26emr33058925e9.7.1782726145414; Mon, 29 Jun 2026 02:42:25 -0700 (PDT) Received: from naush-dell.pitowers.org ([2a00:1098:3142:1f:496e:3dec:bc78:809f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49268f700c0sm345499125e9.0.2026.06.29.02.42.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2026 02:42:25 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v2 2/3] include: linux: videodev2: Add NV12MT_COL128 8/10-bit pixel formats Date: Mon, 29 Jun 2026 09:36:41 +0100 Message-ID: <20260629094216.747340-3-naush@raspberrypi.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260629094216.747340-1-naush@raspberrypi.com> References: <20260629094216.747340-1-naush@raspberrypi.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 V4L2_PIX_FMT_NV12MT_COL128 and V4L2_PIX_FMT_NV12MT_10_COL128 4CCs. These formats are available from the PiSP Backend hardware. Signed-off-by: Naushir Patuck --- include/linux/videodev2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 8bccad84ff83..0c6c4c6831d9 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -670,6 +670,9 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc('V', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 16x16 tiles */ #define V4L2_PIX_FMT_NV12M_8L128 v4l2_fourcc('N', 'A', '1', '2') /* Y/CbCr 4:2:0 8x128 tiles */ #define V4L2_PIX_FMT_NV12M_10BE_8L128 v4l2_fourcc_be('N', 'T', '1', '2') /* Y/CbCr 4:2:0 10-bit 8x128 tiles */ +#define V4L2_PIX_FMT_NV12MT_COL128 v4l2_fourcc('N', 'c', '1', '2') /* 12 Y/CbCr 4:2:0 128 pixel wide column */ +#define V4L2_PIX_FMT_NV12MT_10_COL128 v4l2_fourcc('N', 'c', '3', '0') + /* Y/CbCr 4:2:0 10bpc, 3x10 packed as 4 bytes in a 128 bytes / 96 pixel wide column */ /* Bayer formats - see http://www.siliconimaging.com/RGB%20Bayer.htm */ #define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc('B', 'A', '8', '1') /* 8 BGBG.. GRGR.. */