From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Subject: [raw2rgbpnm] [PATCH 2/2] Add YUVA32 and YUVX32 4:4:4 packed pixel formats support
Date: Sun, 24 Mar 2024 02:44:40 +0200 [thread overview]
Message-ID: <20240324004447.3399-2-laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <20240324004447.3399-1-laurent.pinchart@ideasonboard.com>
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
The YUVA32 and YUVX32 formats are permutations of other YUV 4:4:4 packed
pixel formats. Support them.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
raw2rgbpnm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/raw2rgbpnm.c b/raw2rgbpnm.c
index 6cada340776f..a2e278975d90 100644
--- a/raw2rgbpnm.c
+++ b/raw2rgbpnm.c
@@ -76,6 +76,8 @@ static const struct format_info {
{ V4L2_PIX_FMT_XYUV32, 32, 8, "XYUV32 (32-bit XYUV 8-8-8-8)", 1, 2, 3 },
{ V4L2_PIX_FMT_VUYA32, 32, 8, "VUYA32 (32-bit VUYA 8-8-8-8)", 2, 1, 0 },
{ V4L2_PIX_FMT_VUYX32, 32, 8, "VUYX32 (32-bit VUYX 8-8-8-8)", 2, 1, 0 },
+ { V4L2_PIX_FMT_YUVA32, 32, 8, "YUVA32 (32-bit YUVA 8-8-8-8)", 0, 1, 2 },
+ { V4L2_PIX_FMT_YUVX32, 32, 8, "YUVX32 (32-bit YUVX 8-8-8-8)", 0, 1, 2 },
{ V4L2_PIX_FMT_YUV411P, 12, 8, "YUV411P (12 YUV 4:1:1 planar)", 0, 0, 1 },
{ V4L2_PIX_FMT_YUV420, 12, 8, "YUV420P (12 YUV 4:2:0 planar)", 0, 0, 1 },
{ V4L2_PIX_FMT_YVU420, 12, 8, "YVU420P (12 YVU 4:2:2 planar)", 0, 1, 0 },
@@ -267,7 +269,9 @@ static void raw_to_rgb(const struct format_info *info,
case V4L2_PIX_FMT_AYUV32:
case V4L2_PIX_FMT_XYUV32:
case V4L2_PIX_FMT_VUYA32:
- case V4L2_PIX_FMT_VUYX32: /* Packed YUV 4:4:4 */
+ case V4L2_PIX_FMT_VUYX32:
+ case V4L2_PIX_FMT_YUVA32:
+ case V4L2_PIX_FMT_YUVX32: /* Packed YUV 4:4:4 */
y_pos = info->y_pos;
cb_pos = info->cb_pos;
cr_pos = info->cr_pos;
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-03-24 0:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-24 0:44 [raw2rgbpnm] [PATCH 1/2] Update the kernel headers to v6.8 to support new pixel formats Laurent Pinchart
2024-03-24 0:44 ` Laurent Pinchart [this message]
2024-03-24 12:04 ` [raw2rgbpnm] [PATCH 2/2] Add YUVA32 and YUVX32 4:4:4 packed pixel formats support Sakari Ailus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240324004447.3399-2-laurent.pinchart@ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).