libcamera: stream: Add Stream memory type

Define the memory type a Stream uses and allow application to set it
through the associated StreamConfiguration.

A Stream can use either internal or external memory allocation methods,
depending on where the data produced by the stream is actually saved.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Jacopo Mondi
2019-07-14 16:01:02 +03:00
committed by Laurent Pinchart
parent be3e3ebc92
commit 99e1e786b4
3 changed files with 42 additions and 5 deletions
+1 -1
View File
@@ -683,7 +683,7 @@ int Camera::configure(CameraConfiguration *config)
* Allocate buffer objects in the pool.
* Memory will be allocated and assigned later.
*/
stream->createBuffers(cfg.bufferCount);
stream->createBuffers(cfg.memoryType, cfg.bufferCount);
}
state_ = CameraConfigured;