mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 14:59:44 +03:00
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:
parent
b544ce1c19
commit
5c8de8a08e
1 changed files with 20 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue