[PATCH 1/2] gstreamer: Map R8/R16 pixel format

Laurent Pinchart laurent.pinchart at ideasonboard.com
Fri Feb 2 10:29:18 CET 2024


Hi Nicolas,

Thank you for the patch.

On Fri, Feb 02, 2024 at 09:58:18AM +0100, Nicolas Dufresne wrote:
> From: Nicolas Dufresne <nicolas.dufresne at collabora.com>
> 
> This enables monochrome support in libcamerasrc.
> 
> Signed-off-by: Nicolas Dufresne <nicolas.dufresne at collabora.com>

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

> ---
>  src/gstreamer/gstlibcamera-utils.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/gstreamer/gstlibcamera-utils.cpp b/src/gstreamer/gstlibcamera-utils.cpp
> index 750ec351..2a0b77f4 100644
> --- a/src/gstreamer/gstlibcamera-utils.cpp
> +++ b/src/gstreamer/gstlibcamera-utils.cpp
> @@ -26,6 +26,10 @@ static struct {
>  	{ GST_VIDEO_FORMAT_ENCODED, formats::SGRBG8 },
>  	{ GST_VIDEO_FORMAT_ENCODED, formats::SRGGB8 },
>  
> +	/* Monochrome */
> +	{ GST_VIDEO_FORMAT_GRAY8, formats::R8 },
> +	{ GST_VIDEO_FORMAT_GRAY16_LE, formats::R16 },
> +
>  	/* RGB16 */
>  	{ GST_VIDEO_FORMAT_RGB16, formats::RGB565 },
>  

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list