mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 1/2] media: uapi: videodev2: Fix comment for 12-bit packed Bayer formats
@ 2025-06-23 13:51 Mehdi Djait
  2025-06-23 13:51 ` [PATCH v1 2/2] media: v4l2-common: Add the missing Raw Bayer pixel formats Mehdi Djait
  2025-06-23 13:53 ` [PATCH v1 1/2] media: uapi: videodev2: Fix comment for 12-bit packed Bayer formats Laurent Pinchart
  0 siblings, 2 replies; 4+ messages in thread
From: Mehdi Djait @ 2025-06-23 13:51 UTC (permalink / raw)
  To: sakari.ailus, laurent.pinchart, hverkuil
  Cc: tomi.valkeinen, jacopo.mondi, kieran.bingham, mchehab,
	michael.riesch, nicolas.dufresne, linux-media, linux-kernel,
	Mehdi Djait

For 12-bit packed Bayer formats: every two consecutive samples are
packed into three bytes. Fix the corresponding comment.

Signed-off-by: Mehdi Djait <mehdi.djait@linux.intel.com>
---
 include/uapi/linux/videodev2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 9e3b366d5fc7..421cc0d22ed7 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -726,7 +726,7 @@ struct v4l2_pix_format {
 #define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc('G', 'B', '1', '2') /* 12  GBGB.. RGRG.. */
 #define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc('B', 'A', '1', '2') /* 12  GRGR.. BGBG.. */
 #define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc('R', 'G', '1', '2') /* 12  RGRG.. GBGB.. */
-	/* 12bit raw bayer packed, 6 bytes for every 4 pixels */
+	/* 12bit raw bayer packed, 3 bytes for every 2 pixels */
 #define V4L2_PIX_FMT_SBGGR12P v4l2_fourcc('p', 'B', 'C', 'C')
 #define V4L2_PIX_FMT_SGBRG12P v4l2_fourcc('p', 'G', 'C', 'C')
 #define V4L2_PIX_FMT_SGRBG12P v4l2_fourcc('p', 'g', 'C', 'C')
-- 
2.49.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-23 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-23 13:51 [PATCH v1 1/2] media: uapi: videodev2: Fix comment for 12-bit packed Bayer formats Mehdi Djait
2025-06-23 13:51 ` [PATCH v1 2/2] media: v4l2-common: Add the missing Raw Bayer pixel formats Mehdi Djait
2025-06-23 13:56   ` Laurent Pinchart
2025-06-23 13:53 ` [PATCH v1 1/2] media: uapi: videodev2: Fix comment for 12-bit packed Bayer formats Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®