qcam: Pass color space to ViewFinder::setFormat()
To prepare for color space support in the viewfinder, pass the color space to the setFormat() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
@@ -54,8 +54,9 @@ const QList<libcamera::PixelFormat> &ViewFinderQt::nativeFormats() const
|
||||
return formats;
|
||||
}
|
||||
|
||||
int ViewFinderQt::setFormat(const libcamera::PixelFormat &format,
|
||||
const QSize &size, unsigned int stride)
|
||||
int ViewFinderQt::setFormat(const libcamera::PixelFormat &format, const QSize &size,
|
||||
[[maybe_unused]] const libcamera::ColorSpace &colorSpace,
|
||||
unsigned int stride)
|
||||
{
|
||||
image_ = QImage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user