pipeline: raspberrypi: Always use ColorSpace::Raw for raw streams
Commit613d540267("pipeline: raspberrypi: Fix handling of colour spaces") adjusts the colorspace to ColorSpace::Raw for raw streams. However, if the colorspace is not requested for raw streams(nullopt), we should still set the colorspace to ColorSpace::Raw, for raw streams. Fixes:613d540267("pipeline: raspberrypi: Fix handling of colour spaces") Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
committed by
Umang Jain
parent
3f8bcc1a36
commit
02f0492c55
@@ -449,10 +449,9 @@ CameraConfiguration::Status RPiCameraConfiguration::validateColorSpaces([[maybe_
|
||||
/* First fix up raw streams to have the "raw" colour space. */
|
||||
if (isRaw(cfg.pixelFormat)) {
|
||||
/* If there was no value here, that doesn't count as "adjusted". */
|
||||
if (cfg.colorSpace && cfg.colorSpace != ColorSpace::Raw) {
|
||||
if (cfg.colorSpace && cfg.colorSpace != ColorSpace::Raw)
|
||||
status = Adjusted;
|
||||
cfg.colorSpace = ColorSpace::Raw;
|
||||
}
|
||||
cfg.colorSpace = ColorSpace::Raw;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user