diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2023-10-13 08:48:22 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-10-18 11:01:21 +0100 |
commit | f4839fb3a397243f1d41ceefa337dedf9bafd7e5 (patch) | |
tree | 1c9ace80d2365a3a9923abf2b9567d5b51d4344d /src/ipa/vimc | |
parent | c258302863da5fe36aba1caa82b27e9154b6c0a2 (diff) |
pipeline: rpi: Add RequiresMmap flag to RPi::Stream
Add a new RequiresMmap flag to the RPi::Stream class indicating that
buffers handled by the stream must be mmapped after allocation and
cached internally.
Add a new member function getBuffer(id) which can be used to obtain the
mapped buffers for a given buffer id.
Add a new member function acquireBuffer() which can be used to obtain
any mapped buffer that has not already been acquired by the caller.
As a drive-by, add the <algorithm> header to rpi_stream.cpp as it is
needed for the std::find_if() function.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/vimc')
0 files changed, 0 insertions, 0 deletions