[libcamera-devel,03/13] include: linux: Add V4L2 YUVA32 and YUVX32 pixel formats
diff mbox series

Message ID 20220801000543.3501-4-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • libcamera: pipeline: simple: Support the NXP i.MX8 ISI
Related show

Commit Message

Laurent Pinchart Aug. 1, 2022, 12:05 a.m. UTC
These YUV 4:4:4 packed formats are used by the ISI driver. Add them to
videodev2.h.

This is merged in the upstream kernel as 00f6842ef41d ("media: v4l: Add
packed YUV 4:4:4 YUVA and YUVX pixel formats").

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 include/linux/videodev2.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jacopo Mondi Aug. 3, 2022, 12:03 p.m. UTC | #1
Hi Laurent

On Mon, Aug 01, 2022 at 03:05:33AM +0300, Laurent Pinchart via libcamera-devel wrote:
> These YUV 4:4:4 packed formats are used by the ISI driver. Add them to
> videodev2.h.
>
> This is merged in the upstream kernel as 00f6842ef41d ("media: v4l: Add
> packed YUV 4:4:4 YUVA and YUVX pixel formats").
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

This mmatches what's implemented in the above mentioned commit

Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>

Thanks
  j

> ---
>  include/linux/videodev2.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
> index 6e3d58e5a5c4..bfb315d6d058 100644
> --- a/include/linux/videodev2.h
> +++ b/include/linux/videodev2.h
> @@ -587,6 +587,8 @@ struct v4l2_pix_format {
>  #define V4L2_PIX_FMT_XYUV32  v4l2_fourcc('X', 'Y', 'U', 'V') /* 32  XYUV-8-8-8-8  */
>  #define V4L2_PIX_FMT_VUYA32  v4l2_fourcc('V', 'U', 'Y', 'A') /* 32  VUYA-8-8-8-8  */
>  #define V4L2_PIX_FMT_VUYX32  v4l2_fourcc('V', 'U', 'Y', 'X') /* 32  VUYX-8-8-8-8  */
> +#define V4L2_PIX_FMT_YUVA32  v4l2_fourcc('Y', 'U', 'V', 'A') /* 32  YUVA-8-8-8-8  */
> +#define V4L2_PIX_FMT_YUVX32  v4l2_fourcc('Y', 'U', 'V', 'X') /* 32  YUVX-8-8-8-8  */
>  #define V4L2_PIX_FMT_M420    v4l2_fourcc('M', '4', '2', '0') /* 12  YUV 4:2:0 2 lines y, 1 line uv interleaved */
>
>  /* two planes -- one Y, one Cr + Cb interleaved  */
> --
> Regards,
>
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 6e3d58e5a5c4..bfb315d6d058 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -587,6 +587,8 @@  struct v4l2_pix_format {
 #define V4L2_PIX_FMT_XYUV32  v4l2_fourcc('X', 'Y', 'U', 'V') /* 32  XYUV-8-8-8-8  */
 #define V4L2_PIX_FMT_VUYA32  v4l2_fourcc('V', 'U', 'Y', 'A') /* 32  VUYA-8-8-8-8  */
 #define V4L2_PIX_FMT_VUYX32  v4l2_fourcc('V', 'U', 'Y', 'X') /* 32  VUYX-8-8-8-8  */
+#define V4L2_PIX_FMT_YUVA32  v4l2_fourcc('Y', 'U', 'V', 'A') /* 32  YUVA-8-8-8-8  */
+#define V4L2_PIX_FMT_YUVX32  v4l2_fourcc('Y', 'U', 'V', 'X') /* 32  YUVX-8-8-8-8  */
 #define V4L2_PIX_FMT_M420    v4l2_fourcc('M', '4', '2', '0') /* 12  YUV 4:2:0 2 lines y, 1 line uv interleaved */
 
 /* two planes -- one Y, one Cr + Cb interleaved  */