[libcamera-devel] [PATCH] libcamera: pipeline: vimc: Remove unsupportable format

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Jun 4 11:09:09 CEST 2020


Hi Kieran,

Thank you for the patch.

On Thu, Jun 04, 2020 at 10:05:03AM +0100, Kieran Bingham wrote:
> The DRM(BGRA8888)/V4L2(ARGB8888) format is not supported by the debayer
> unit at all in VIMC.

That's not where it should be supported though, conversion to different
RGB formats should happen at the (virtual) DMA level. Regardless, I
agree it's not supported by the driver, so the patch is fine. With an
update of the commit message,

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> Remove it from the list of supported configurations.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
>  src/libcamera/pipeline/vimc/vimc.cpp | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/libcamera/pipeline/vimc/vimc.cpp b/src/libcamera/pipeline/vimc/vimc.cpp
> index 914df3476eb9..9952e36b016d 100644
> --- a/src/libcamera/pipeline/vimc/vimc.cpp
> +++ b/src/libcamera/pipeline/vimc/vimc.cpp
> @@ -110,7 +110,6 @@ namespace {
>  static const std::map<PixelFormat, uint32_t> pixelformats{
>  	{ PixelFormat(DRM_FORMAT_RGB888), MEDIA_BUS_FMT_BGR888_1X24 },
>  	{ PixelFormat(DRM_FORMAT_BGR888), MEDIA_BUS_FMT_RGB888_1X24 },
> -	{ PixelFormat(DRM_FORMAT_BGRA8888), MEDIA_BUS_FMT_ARGB8888_1X32 },
>  };
>  
>  } /* namespace */

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list