35      VideoBuf(
int const fd, 
size_t const length, 
unsigned int offset, 
int const dmafd);
 
   62      size_t const itsLength;
 
   65      int const itsDmaBufFd;
 
 
A V4L2 video buffer, to be held in a shared_ptr.
 
size_t bytesUsed() const
Get the number of bytes used, valid only for MJPEG images.
 
~VideoBuf()
Destructor unmaps the memory.
 
void setBytesUsed(size_t n)
Set the number of bytes used, eg, for MJPEG images that application code compressed into the buffer.
 
size_t length() const
Get the allocated memory length.
 
void sync()
Sync the data.
 
void * data() const
Get a pointer to the buffer data.
 
int dmaFd() const
Get the dma_buf fd associated with this buffer, which was given at construction.
 
Main namespace for all JeVois classes and functions.