summaryrefslogtreecommitdiff
path: root/yavta.c
AgeCommit message (Collapse)Author
2015-10-16List supported formats with -f helpSakari Ailus
Passing format "help" to the -f option will list the supported formats and exit. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
2015-05-05Zero the planes array before queuing buffersLaurent Pinchart
V4L2 requires reserved fields to be zeroed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2015-03-20yavta: Fix printing of device capabilitiesLaurent Pinchart
Commit d029d1d5bba831b9 ("Separate querying capabilities and determining buffer queue type") broke capabilities printing. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
2015-02-26Prints bytes used for all planesLaurent Pinchart
When using the multiplanar API the v4l2_buffer bytesused field is documented as ignored, and the planes array should be used instead. Compute the total number of bytes used to be printed during capture based on the planes array when using the multiplanar API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2015-01-07Fix data offset config option parsingSakari Ailus
The option itself was considered correctly, but a small but crucial break statement was missing. --data-offset option does not take an argument either. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2015-01-07Rename buffer prefix as data prefixSakari Ailus
Data prefix is a much better name for this (think of data_offset, for instance). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2015-01-02yavta: Add support for 10-bit packed raw bayer formatsSakari Ailus
Add support for these pixel formats: V4L2_PIX_FMT_SBGGR10P V4L2_PIX_FMT_SGBRG10P V4L2_PIX_FMT_SGRBG10P V4L2_PIX_FMT_SRGGB10P Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-12-15yavta: Implement data_offset support for multi plane buffersSakari Ailus
Support data_offset for multi plane buffers. Also add an option to write the data in the buffer before data offset (--buffer-prefix). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-12-15yavta: Set plane size for mplane buffers in qbufSakari Ailus
The plane size was left zero for mplane buffers when queueing a buffer. Fix this. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> [For consistency set buf.length for USERPTR buffers only] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-10-26yavta: Add --queue-late option for delay queueing buffers over streaming startSakari Ailus
Queue buffers to the device after VIDIOC_STREAMON, not before. This does not affect queueing behaviour otherwise. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-10-01Add support for premultiplied formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-10-01Add --buffer-size argumentLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-10-01Add support for missing RGB formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-06-25Add support for printing string controlsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-05-24Add log status supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-05-24Add support for interlaced formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-16Set timestamp for output buffers if the timestamp type is copySakari Ailus
Copy timestamp type will mean the timestamp is be copied from the source to the destination buffer on mem-to-mem devices. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Support copy timestampsSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Shorten dequeued buffer info printSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Print timestamp type and source for dequeued buffersSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Timestamp source for output buffersSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Allow passing file descriptors to yavtaSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Provide -B option for setting the buffer typeSakari Ailus
Instead of guessing the buffer type, allow setting it explicitly. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Make struct for buffer type and name mapping usable elsewhereSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Separate querying capabilities and determining buffer queue typeSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Provide functions for setting the buffer type and checking its validitySakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-16Separate device object initialisation and openingSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-01Print timestamp source (start-of-exposure or end-of-frame)Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
2014-04-01Add YV420M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Add NV16M and NV61M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Add NV12M and NV21M supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Support multiplanar buffers verificationLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Load multiplane filesDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-04-01Add multi-plane supportDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-04-01Add video_is_output() and video_is_capture() helper functionsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Use format information structure directlyLaurent Pinchart
Replace the v4l2_format_code() function by functions to retrieve format information by fourcc or name, and access the format information structure directly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2014-04-01Make buffer structure multiplane awareDetlev Casanova
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
2014-01-09Mark current menu value with a (*) when querying controlsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-05Integer64 and string controls can't be accessed using VIDIOC_[GS]_CTRLSakari Ailus
So don't even try. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-05Make VIDIOC_[GS]_CTRL workSakari Ailus
v4l2_control.value was left uninitialised for the VIDIOC_S_CTRL IOCTL. Fix that. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-12-04Support additional dpcm compressed bayer formats.Sakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-08-22Support device capsLaurent Pinchart
Use the V4L2 video device caps instead of the global caps when available. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-06-25Truncate existing files when writing frames to memoryLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2013-06-25Add support for VYUY and YVYU formatsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-11-28Print v4l2_buffer timestamp typeSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-11-27Update kernel header filesSakari Ailus
Update videodev2.h and move it under include/linux. v4l2-common.h and v4l2-controls.h are now required by videodev2.h as well --- they're really the reason for moving videodev2.h. The two required headers are added, too. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Support extended controls, including 64-bit integersSakari Ailus
Fall back to regular S_CTRL / G_CTRL if extended controls aren't available. Also don't try to get value for classes. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Support integer menusSakari Ailus
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Add videodev2.h to allow building on systems without latest kernel headersSakari Ailus
Add videodev2.h as part of yavta. The file is to be updated from linux-media tree manually in the future. Remove existing format definitions in yavta.c since they are no longer needed. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-01-25Add --stride argumentLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>