58 size_t const itsLength;
void sync()
Sync the data.
A V4L2 video buffer, to be held in a shared_ptr.
~VideoBuf()
Destructor unmaps the memory.
size_t length() const
Get the allocated memory length.
VideoBuf(int const fd, size_t const length, unsigned int offset)
Construct and allocate MMAP'd memory.
size_t bytesUsed() const
Get the number of bytes used, valid only for MJPEG images.
void setBytesUsed(size_t n)
Set the number of bytes used, eg, for MJPEG images that application code compressed into the buffer...
void * data() const
Get a pointer to the buffer data.