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:
parent
0eb65e14e1
commit
8647991cd8
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue