[−][src]Trait v4l::buffer::BufferManager
Manage buffers for a device
Associated Types
type Buffer
Type of the buffers (DMA, mmap, userptr)
Required methods
fn allocate(&mut self, count: u32) -> Result<u32>
Allocate buffers
Returns the number of buffers as reported by the driver.
Arguments
count
- Desired number of buffers
fn release(&mut self) -> Result<()>
Release any allocated buffers
fn queue(&mut self) -> Result<()>
Queue a new buffer on the device
Queueing usually causes the camera hardware to take a picture. Dequeuing then transfers it to application visible memory.
fn dequeue(&mut self) -> Result<Self::Buffer>
Dequeue a buffer and return it to the application