mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +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;
|
StreamConfiguration cfg;
|
||||||
|
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case StreamRole::StillCapture:
|
case StreamRole::StillCapture:
|
||||||
case StreamRole::Viewfinder:
|
case StreamRole::Viewfinder:
|
||||||
case StreamRole::VideoRecording: {
|
case StreamRole::VideoRecording: {
|
||||||
Size size = role == StreamRole::StillCapture
|
Size size = role == StreamRole::StillCapture
|
||||||
? data->sensor_->resolution()
|
? data->sensor_->resolution()
|
||||||
: PipelineHandlerISI::kPreviewSize;
|
: PipelineHandlerISI::kPreviewSize;
|
||||||
cfg = generateYUVConfiguration(camera, size);
|
cfg = generateYUVConfiguration(camera, size);
|
||||||
if (cfg.pixelFormat.isValid())
|
if (cfg.pixelFormat.isValid())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Fallback to use a Bayer format if that's what the
|
||||||
|
* sensor supports.
|
||||||
|
*/
|
||||||
|
[[fallthrough]];
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
case StreamRole::Raw: {
|
||||||
* Fallback to use a Bayer format if that's what the
|
cfg = generateRawConfiguration(camera);
|
||||||
* sensor supports.
|
break;
|
||||||
*/
|
}
|
||||||
[[fallthrough]];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
case StreamRole::Raw: {
|
|
||||||
cfg = generateRawConfiguration(camera);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG(ISI, Error) << "Requested stream role not supported: " << role;
|
LOG(ISI, Error) << "Requested stream role not supported: " << role;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue