diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-06 22:20:49 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-22 10:58:38 +0300 |
commit | 5e1b7a0f6845add01a6d7842ca34f9fbb0712810 (patch) | |
tree | bd0b9dbc2ae9f8b6d5f3a34240ddba70f56d7d2c /src/qcam/format_converter.h | |
parent | 3a4e251122b57de6bb3dcae8dfd8e9f0381fb91b (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/qcam/format_converter.h')
-rw-r--r-- | src/qcam/format_converter.h | 2 |
1 files changed, 2 insertions, 0 deletions
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_; |