pipeline: imx8-isi: Cosmetic changes

Change indentation to pass checkstyle script.

Fixes: 680cde6005 ("libcamera: imx8-isi: Split Bayer/YUV config generation")
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Antoine Bouyer 2025-06-04 15:14:02 +02:00 committed by Laurent Pinchart
parent b544ce1c19
commit 5c8de8a08e

View file

@ -761,30 +761,28 @@ PipelineHandlerISI::generateConfiguration(Camera *camera,
*/
StreamConfiguration cfg;
switch (role) {
case StreamRole::StillCapture:
case StreamRole::Viewfinder:
case StreamRole::VideoRecording: {
Size size = role == StreamRole::StillCapture
? data->sensor_->resolution()
: PipelineHandlerISI::kPreviewSize;
cfg = generateYUVConfiguration(camera, size);
if (cfg.pixelFormat.isValid())
break;
switch (role) {
case StreamRole::StillCapture:
case StreamRole::Viewfinder:
case StreamRole::VideoRecording: {
Size size = role == StreamRole::StillCapture
? data->sensor_->resolution()
: PipelineHandlerISI::kPreviewSize;
cfg = generateYUVConfiguration(camera, size);
if (cfg.pixelFormat.isValid())
break;
/*
* Fallback to use a Bayer format if that's what the
* sensor supports.
*/
[[fallthrough]];
}
/*
* Fallback to use a Bayer format if that's what the
* sensor supports.
*/
[[fallthrough]];
}
case StreamRole::Raw: {
cfg = generateRawConfiguration(camera);
break;
}
case StreamRole::Raw: {
cfg = generateRawConfiguration(camera);
break;
}
default:
LOG(ISI, Error) << "Requested stream role not supported: " << role;