ipa: rkisp1: Avoid unnecessary copy
Use const references in a for loop to avoid an unnecessary copy. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -98,7 +98,7 @@ void IPARkISP1::configure(const std::map<unsigned int, IPAStream> &streamConfig,
|
||||
|
||||
void IPARkISP1::mapBuffers(const std::vector<IPABuffer> &buffers)
|
||||
{
|
||||
for (IPABuffer buffer : buffers) {
|
||||
for (const IPABuffer &buffer : buffers) {
|
||||
bufferInfo_[buffer.id] = buffer.memory;
|
||||
bufferInfo_[buffer.id].planes()[0].mem();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user