JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
35 VideoBuf(
int const fd,
size_t const length,
unsigned int offset,
int const dmafd);
62 size_t const itsLength;
65 int const itsDmaBufFd;
int dmaFd() const
Get the dma_buf fd associated with this buffer, which was given at construction.
void sync()
Sync the data.
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.
~VideoBuf()
Destructor unmaps the memory.
VideoBuf(int const fd, size_t const length, unsigned int offset, int const dmafd)
Construct and allocate MMAP'd memory.
void * data() const
Get a pointer to the buffer data.
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.