Message ID | 20240202085819.119320-1-nicolas@ndufresne.ca |
---|---|
State | Accepted |
Commit | 05894d2652b340c400cdac8c7e96d0399387e9ca |
Headers | show |
Series |
|
Related | show |
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@collabora.com> > > This enables monochrome support in libcamerasrc. > > Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@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 }, >
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 },