Age | Commit message (Collapse) | Author |
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Since applications aren't prepared to handle all V4L2 available formats,
an effort is done to have a library capable of understanding especially
the proprietary formats.
This patch documents this library, and adds v4l2grab.c as an example on
how to use it.
Parts of the text are based at the libv4l README file (c) by Hans de
Goede.
Thanks to Hans de Goede <hdegoede@redhat.com> for his good work with
libv4l.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To be simple, there's no format conversion inside v4l2grab. It relies
that libv4l will do the hard work of converting whatever input format
into RGB24.
Instead of just proceeding and writing wrong images, die if libv4l can't
convert into RGB24.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
During FISL 10 (Forum Internacional de Software Livre) and the first FudCon Latam
(Fedora Users and Developers Conference), while preparing the V4L panel, I and Douglas
noticed the need of a very simple application to be an example for developers to
test their drivers and to write newer v4l2 applications.
So, we come to the idea of creating a v4l2grab application that takes pictures from the
webcam and saves them with the ppm format, using libv4l to work with all webcam models.
This application uses the absolute minimum of V4L2 calls to take 640x480 pictures, and was tested
with uvcvideo and vivi drivers.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
As announced VIDIOC_G_CHIP_IDENT_OLD is now removed for 2.6.30.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
As pointed by Cityk, this file were at the wrong place.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Follow the existing naming conventions.
Also did a few small cleanups in this source.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Instead of having libv4l2util in v4l2-apps/lib and libv4l in v4l2-apps/lib/libv4l,
both are now moved to v4l2-apps/libv4l2util and v4l2-apps/libv4l.
This is much cleaner and less confusing.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
conversion library
From: Hans Verkuil <hverkuil@xs4all.nl>
libv4l2 was introduced to fix conversion problems. But this clashed with
the already existing libv4l2 utility library. Renamed that libv4l2 library
and header to libv4l2util.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Douglas Schilling Landgraf <dougsland@redhat.com>
Added stress buffer tool
Priority: normal
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
|
|
From: Franklin Meng <fmeng2002@yahoo.com>
Added parser for USB snoops captured from SniffUSB 2.0
Priority: normal
Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Since the i2c driver ID will be removed in the near future we have to
modify the v4l2 debugging API to use the driver name instead of driver ID.
Note that this API is not used in applications other than v4l2-dbg.cpp
as it is for debugging and testing only.
Should anyone use the old VIDIOC_G_CHIP_IDENT, then this will be logged
with a warning that it is deprecated and will be removed in 2.6.30.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Improved ioctl-test so that it can be used for compat32 testing.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Carl Karsten <carl@personnelware.com>
1. Added command line option -f --frames for number of frames to grab
2. changed the default -f from 1000 to 70
3. show defaults in --help
4. added a Version, picked 1.3 as the current ver because I consider the
original to be 1.0 and at least 2 changes have been made.
Signed-off-by: Carl Karsten <carl@personnelware.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
- fix some warnings when creating/removing directories when running
'make firmware'
- fix v4l2-apps build: copy and strip the linux/include headers first
to avoid the kernel-specific constructs in the original headers.
Update the include paths to point to the copy.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Just fixed a bunch of checkpatch warnings and tightened up the code.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Jean Delvare <khali@linux-fr.org>
Don't change the capture format by default. This lets the user select
the capture pixel format and resolution using v4l2-ctl. The old
behavior (forcing the format to 640x480 YUYV) can still be obtained by
passing -f.
Priority: normal
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
- show progress even when sending captured data to stdout
- use bytesused rather than length
- use /dev/video0 instead of /dev/video (conform xawtv tools)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
- clean up capture_example.c (bad codingstyle and compile warnings)
- fix some headers without trailing newline
- fix compile warnings in v4l2-ctl.cpp and v4l2-dbg.cpp
- fix qv4l2 __stack_chk_fail_local compile error that occurs on some distros (ubuntu)
- fix some Makefile clean up rules
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Michael Schimek <mschimek@gmx.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Michael Schimek gladly donated us a newer testing tool, capable of
identify other API non-compliances, called pixfmt-test.
Thanks Michael for this contribution.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Add capabilities to the library and to the driver to receive video streams.
Library will use a callback, called every time a new buffer is reported by
dqbuf.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
V4L2 Draft spec have an interesting capture example code. Added it to the tree
to allow testing V4L2 devices.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
This method requests buffers and maps it into a mmaped memory.
Still under testing. Still need other stuff to make stream to work.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
- Better presentation of version
- Make v4l2_enum_fmt generic for all types
- Added v4l2_gettryset_fmt_cap to GET/TRY/SET fmt on capture
- driver-test now sets a video format
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
- Created v4l2_driver.c with some basic functions to:
. Enum STD, INPUT and FORMAT
. GET/SET STD and INPUT
. GET PARAM
- ioctl-test reverted back to a simple "brute-force" all ioctl call;
- driver-test created to:
. test V4L2 kernel drivers;
. implement all functions provided by v4l2 library
- driver-test should grow following the changes at v4l2-apps/lib
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Now, it tests and diagnostics some api troubles. Still lacks several
ioctls.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
VIDIOC_S/G_CROP is now handled by v4l2-ctl. The v4l2_buf_type is now filled in
in VIDIOC_G_SLICED_VBI_CAP. Several test tools now compile when v4l1 API is
disabled.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|