From 5e1b7a0f6845add01a6d7842ca34f9fbb0712810 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 6 Sep 2021 22:20:49 +0300 Subject: qcam: format_converter: Add fully-planar YUV formats support Add support for the YUV420, YVU420 and YUV422 formats supported by libcamera. YUV420 can be produced by the Raspberry Pi pipeline handler, being able to display it is useful for testing. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Paul Elder --- src/qcam/format_converter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qcam/format_converter.h') diff --git a/src/qcam/format_converter.h b/src/qcam/format_converter.h index 9ce2cc6d..9da2df5d 100644 --- a/src/qcam/format_converter.h +++ b/src/qcam/format_converter.h @@ -29,11 +29,13 @@ private: MJPEG, RGB, YUVPacked, + YUVPlanar, YUVSemiPlanar, }; void convertRGB(const Image *src, unsigned char *dst); void convertYUVPacked(const Image *src, unsigned char *dst); + void convertYUVPlanar(const Image *src, unsigned char *dst); void convertYUVSemiPlanar(const Image *src, unsigned char *dst); libcamera::PixelFormat format_; -- cgit v1.2.1