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:
committed by
Laurent Pinchart
parent
be3e3ebc92
commit
99e1e786b4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user