[libcamera-devel] [PATCH 03/13] include: linux: Add V4L2 YUVA32 and YUVX32 pixel formats
Jacopo Mondi
jacopo at jmondi.org
Wed Aug 3 14:03:19 CEST 2022
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 at ideasonboard.com>
This mmatches what's implemented in the above mentioned commit
Reviewed-by: Jacopo Mondi <jacopo at 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
>
More information about the libcamera-devel
mailing list