[libcamera-devel,5/5] libcamera: v4l2_subdevice: Add YUV8_1X24 media bus format
diff mbox series

Message ID 20220504131558.9498-6-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • libcamera: Support additional pixel formats and media bus codes
Related show

Commit Message

Laurent Pinchart May 4, 2022, 1:15 p.m. UTC
The format is used by the i.MX8 ISI driver that will be supported by the
simple pipeline handler.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/v4l2_subdevice.cpp | 1 +
 1 file changed, 1 insertion(+)

Comments

Jacopo Mondi May 6, 2022, 12:20 p.m. UTC | #1
Hi Laurent

On Wed, May 04, 2022 at 04:15:58PM +0300, Laurent Pinchart via libcamera-devel wrote:
> The format is used by the i.MX8 ISI driver that will be supported by the
> simple pipeline handler.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

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

Thanks
  j

> ---
>  src/libcamera/v4l2_subdevice.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
> index 81d84ae8a9ee..98a3911aa7df 100644
> --- a/src/libcamera/v4l2_subdevice.cpp
> +++ b/src/libcamera/v4l2_subdevice.cpp
> @@ -93,6 +93,7 @@ const std::map<uint32_t, V4L2SubdeviceFormatInfo> formatInfoMap = {
>  	{ MEDIA_BUS_FMT_VYUY10_1X20, { 20, "VYUY10_1X20" } },
>  	{ MEDIA_BUS_FMT_YUYV10_1X20, { 20, "YUYV10_1X20" } },
>  	{ MEDIA_BUS_FMT_YVYU10_1X20, { 20, "YVYU10_1X20" } },
> +	{ MEDIA_BUS_FMT_YUV8_1X24, { 24, "YUV8_1X24" } },
>  	{ MEDIA_BUS_FMT_YUV10_1X30, { 30, "YUV10_1X30" } },
>  	{ MEDIA_BUS_FMT_AYUV8_1X32, { 32, "AYUV8_1X32" } },
>  	{ MEDIA_BUS_FMT_UYVY12_2X12, { 24, "UYVY12_2X12" } },
> --
> Regards,
>
> Laurent Pinchart
>

Patch
diff mbox series

diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
index 81d84ae8a9ee..98a3911aa7df 100644
--- a/src/libcamera/v4l2_subdevice.cpp
+++ b/src/libcamera/v4l2_subdevice.cpp
@@ -93,6 +93,7 @@  const std::map<uint32_t, V4L2SubdeviceFormatInfo> formatInfoMap = {
 	{ MEDIA_BUS_FMT_VYUY10_1X20, { 20, "VYUY10_1X20" } },
 	{ MEDIA_BUS_FMT_YUYV10_1X20, { 20, "YUYV10_1X20" } },
 	{ MEDIA_BUS_FMT_YVYU10_1X20, { 20, "YVYU10_1X20" } },
+	{ MEDIA_BUS_FMT_YUV8_1X24, { 24, "YUV8_1X24" } },
 	{ MEDIA_BUS_FMT_YUV10_1X30, { 30, "YUV10_1X30" } },
 	{ MEDIA_BUS_FMT_AYUV8_1X32, { 32, "AYUV8_1X32" } },
 	{ MEDIA_BUS_FMT_UYVY12_2X12, { 24, "UYVY12_2X12" } },