libcamera: pipeline: Prevent variable shadowing
Remove variable shadowing within the pipeline handler implementations. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -512,9 +512,9 @@ CameraConfiguration *PipelineHandlerRPi::generateConfiguration(Camera *camera,
|
||||
/* Translate the V4L2PixelFormat to PixelFormat. */
|
||||
std::map<PixelFormat, std::vector<SizeRange>> deviceFormats;
|
||||
for (const auto &format : fmts) {
|
||||
PixelFormat pixelFormat = format.first.toPixelFormat();
|
||||
if (pixelFormat.isValid())
|
||||
deviceFormats[pixelFormat] = format.second;
|
||||
PixelFormat pf = format.first.toPixelFormat();
|
||||
if (pf.isValid())
|
||||
deviceFormats[pf] = format.second;
|
||||
}
|
||||
|
||||
/* Add the stream format based on the device node used for the use case. */
|
||||
|
||||
Reference in New Issue
Block a user