libcamera/test/camera
Laurent Pinchart a2bcf6feee libcamera: buffer: Split memory information to BufferMemory
The Buffer class is a large beast the stores information about the
buffer memory, dynamic metadata related to the frame stored in the
buffer, and buffer reference data (in the index). In order to implement
buffer import we will need to extend this with dmabuf file descriptors,
making usage of the class even more complex.

Refactor the Buffer class by splitting the buffer memory information to
a BufferMemory class, and repurposing the Buffer class to reference a
buffer and to store dynamic metadata. The BufferMemory class becomes a
long term storage, valid and stable from the time buffer memory is
allocated to the time it is freed. The Buffer class, on the other hand,
becomes transient, is created on demand when an application requires a
buffer, is given to a request, and is deleted when the request
completes.

Buffer and BufferMemory don't need to be copied, so their copy
constructor and assignment operators are deleted.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2019-07-14 16:00:54 +03:00
..
camera_test.cpp libcamera: Switch to CameraConfiguration 2019-04-09 16:59:19 +02:00
camera_test.h libcamera: Switch to CameraConfiguration 2019-04-09 16:59:19 +02:00
capture.cpp libcamera: buffer: Split memory information to BufferMemory 2019-07-14 16:00:54 +03:00
configuration_default.cpp libcamera: camera: Add a validation API to the CameraConfiguration class 2019-05-23 01:07:38 +03:00
configuration_set.cpp test: camera: Fix initialisation 2019-06-10 12:29:40 +01:00
meson.build meson: Create and use a dependency for libcamera and its headers 2019-05-23 13:56:33 +03:00
statemachine.cpp libcamera: buffer: Split memory information to BufferMemory 2019-07-14 16:00:54 +03:00