Age | Commit message (Collapse) | Author |
|
Some buggy drivers don't implement VIDIOC_G_FMT, preventing yavta from
operating as it relies on that ioctl to retrieve capture parameters.
Store the capture parameters returned by the previous VIDIOC_S_FMT call
(which should be identical) to allow operation even when VIDIOC_G_FMT
isn't implemented.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
When using the USERPTR method attempt to use ION if available. The heap
is hardcoded to DMA for now.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
yavta is supposed not to requeue the last buffers before end of capture
(unless requested to do so with the --requeue-last option). However, the
logic is wrong, and only one of the last buffers is not requeued. Fix it
by skipping all of the last buffers.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Return the error code if video_enable() and VIDIOC_STREAMON
fails.
Signed-off-by: Tuukka Toivonen <tuukka.toivonen@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Passing format "help" to the -f option will list the supported formats and
exit.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
|
|
V4L2 requires reserved fields to be zeroed.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
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>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Instead of guessing the buffer type, allow setting it explicitly.
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
|
|
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
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>
|
|
Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
So don't even try.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
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>
|