libcamera: pipeline: rkisp1: Avoid copy assignment of V4L2 control map
Use the std::map::emplace() method to avoid unnecessary creation of an empty V4L2ControlInfoMap folled by a copy assignment. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -777,7 +777,7 @@ int PipelineHandlerRkISP1::start(Camera *camera)
|
||||
};
|
||||
|
||||
std::map<unsigned int, V4L2ControlInfoMap> entityControls;
|
||||
entityControls[0] = data->sensor_->controls();
|
||||
entityControls.emplace(0, data->sensor_->controls());
|
||||
|
||||
data->ipa_->configure(streamConfig, entityControls);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user