summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-06-23Add --offset option to select userspace buffer alignmentLaurent Pinchart
For driver testing purpose the --offset option can be used to modify the userspace buffers alignment. Instead of a fixed page-boundary alignment, buffers can now be aligned to a fixed offset starting to the beginning of the page. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-06-02Set the v4l2_buffer::length field when queueing a bufferLaurent Pinchart
Userspace buffers size needs to be passed to drivers on VIDIOC_QBUF. Set the v4l2_buffer::length field to the size of the allocated buffer before calling VIDIOC_QBUF. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-06-02Align userspace buffers to a page size boundaryLaurent Pinchart
Some devices need userspace buffers to be page-aligned. Use the posix_memalign function instead of malloc to allocate page-aligned buffers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-21Warn when v4l2_buffer::bytesused has an unexpected valueLaurent Pinchart
For uncompressed formats in capture devices, the v4l2_buffer::bytesused field should have the same value as the v4l2_pix_format::sizeimage field reported by the VIDIOC_G_FMT ioctl. Print a warning on VIDIOC_DQBUG when the values don't match. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-19Initial importLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>