From 0cd715c4ded3b945e7281421552d185018f96a0c Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 28 Sep 2022 02:18:37 +0300 Subject: cam: kms_sink: Add color space support KMS defines YCbCr encoding and quantization properties for planes. When supported by the device, set them to match the color space of the stream to render colors accurately. Signed-off-by: Laurent Pinchart Reviewed-by: Eric Curtin --- src/cam/kms_sink.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cam/kms_sink.h') diff --git a/src/cam/kms_sink.h b/src/cam/kms_sink.h index 76c4e611..e2c618a1 100644 --- a/src/cam/kms_sink.h +++ b/src/cam/kms_sink.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -67,6 +68,8 @@ private: libcamera::PixelFormat format_; libcamera::Size size_; unsigned int stride_; + std::optional colorEncoding_; + std::optional colorRange_; libcamera::Rectangle src_; libcamera::Rectangle dst_; -- cgit v1.2.1