libcamera v0.5.1
Supporting cameras in Linux since 2019
|
Helper class for dma-buf's synchronization. More...
Public Types | |
enum class | SyncType { Read = 0 , Write , ReadWrite } |
Read and/or write access via the CPU map. More... |
Public Member Functions | |
DmaSyncer (SharedFD fd, SyncType type=SyncType::ReadWrite) | |
Construct a DmaSyncer with a dma-buf's fd and the access type. | |
DmaSyncer (DmaSyncer &&other)=default | |
Enable move on class DmaSyncer. | |
DmaSyncer & | operator= (DmaSyncer &&other)=default |
Enable move on class DmaSyncer. |
Helper class for dma-buf's synchronization.
This class wraps a userspace dma-buf's synchronization process with an object's lifetime.
It's used when the user needs to access a dma-buf with CPU, mostly mapped with MappedFrameBuffer, so that the buffer is synchronized between CPU and ISP.
|
strong |
Read and/or write access via the CPU map.
|
explicit |
Construct a DmaSyncer with a dma-buf's fd and the access type.
[in] | fd | The dma-buf's file descriptor to synchronize |
[in] | type | Read and/or write access via the CPU map |
|
default |
Enable move on class DmaSyncer.
[in] | other | The other instance |
Enable move on class DmaSyncer.
[in] | other | The other instance |