From 05894d2652b340c400cdac8c7e96d0399387e9ca Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 2 Feb 2024 09:58:18 +0100 Subject: gstreamer: Map R8/R16 pixel format This enables monochrome support in libcamerasrc. Signed-off-by: Nicolas Dufresne Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/gstreamer/gstlibcamera-utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gstreamer') 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 }, -- cgit v1.2.1