summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-10-25Use monotonic clock to retrieve timestampsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-10-25Add support for RGB formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-08-10Add buffer overrun checksLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-07-11Free userspace buffers when freeing video buffersLaurent Pinchart
Memory allocated with posix_memalign() must be freed with free(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-07-11Add --realtime option to switch to RR schedulingLaurent Pinchart
The optional argument selects the static priority. If omitted, the priority is set to 1. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-14Add support for missing Bayer formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-04Print class controls as headersLaurent Pinchart
This improves the controls list readability. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-05-04Ignore failed VIDIOC_QUERYCAP.Sakari Ailus
This is not a fatal error, and especially subdevs do not support it. If VIDIOC_QUERY returns an error, assume the device is a V4L2 subdev and set the --no-query option. Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-04-30Support holes in menu indicesLaurent Pinchart
When querying menu entries, don't stop at the first error returned by the driver but loop over the [min,max] range and print supported menu entries only. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-03-21Support pattern files for compressed formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-23Display the instant frame rate for each frame during captureLaurent Pinchart
This helps debugging framerate related problems. Thanks to Martin Hostettler for submitting a first version of this patch. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-23Add support for GREY/Y8 formatMartin Hostettler
2010-12-23Fix an off-by-one bug in frame countLaurent Pinchart
Thanks to Stefan Steuerwald for pointing out the issue and providing an initial patch. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-12-03Add support for the V4L2_PIX_FMT_SGRBG12 formatLaurent Pinchart
The format isn't available in the mainline kernel yet, so guard it with conditional compilation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Add support for SGRBG10_DPCM8 formatLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Add struct buffer objectLaurent Pinchart
Use the new buffer object to hold the buffer size and memory pointer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Fix uninitialized variable warning in video_do_capture()Laurent Pinchart
Make sure the variable won't be use uninitialized and silent the warning. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-11-26Add buffer error flag to information printed after VIDIOC_DQBUFLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-09-29Add option to make requeue of last buffers configurableLaurent Pinchart
When capturing n image with p buffers, dequeued buffers don't need to be requeued in the last n - p iterations. Don't requeue them by default, and add a --requeue-last option to force the old behaviour. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-09-29Print device bus info when opening the deviceLaurent Pinchart
To differentiate between identically named devices, print the bus info reported by VIDIOC_QUERYCAP. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-06Do not divide by zero.Sakari Ailus
If only one buffer was processed the performance measurement calculation caused a division by zero. Do not do show measurements if they are bad. Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
2010-08-06Basic test pattern support for video output devicesLaurent Pinchart
Instead of filling video output buffers with 0s, generate and user a test pattern. If the -F argument is given, the test pattern is read from the specified file. The file size must be at equal to or bigger than the image size. If the -F argument is not given, a basic test pattern is generated automatically. Every byte is set to the sum of its X and Y coordinates. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-06Optimise for safer free() usage.Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
2010-07-30Make -c and -F options accept an optional argumentLaurent Pinchart
The long --capture and --file options have an optional argument, fix the short versions. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-07-29Do accept CFLAGS and LDFLAGS from environment.Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
2010-07-22Add support for the V4L2_PIX_FMT_Y16 formatLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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>