cam: Cache buffer memory mapping
With the buffer allocator in use it's possible to cache the dmabuf memory mappings when starting the camera instead of mapping and unmapping them each time. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
164fbf17ff
commit
c89cfa534b
3 changed files with 30 additions and 5 deletions
|
@ -116,6 +116,9 @@ int Capture::capture(EventLoop *loop, FrameBufferAllocator *allocator)
|
|||
<< std::endl;
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (writer_)
|
||||
writer_->mapBuffer(buffer.get());
|
||||
}
|
||||
|
||||
requests.push_back(request);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue