summaryrefslogtreecommitdiff
path: root/v4l2-apps
AgeCommit message (Collapse)Author
2007-05-012_driver.c:v4l2_enum_stds: erroneously always returns failureMauro Carvalho Chehab
From: David Warman <dwarman@davidwarman.net> v4l2_driver.c:v4l2_enum_stds: erroneously always returns failure because errno is +ve, needs inverting for use as a v4l error code. The diff command actually produced patched for two fixes; I separated them manually into these two reports. Signed-off-by: David Warman <dwarman@davidwarman.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-28Add VIDIOC_G_CHIP_IDENT to various i2c modulesHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-27Generate driver IDs and chip IDs from the headers and use that in v4l2-dbg.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Instead of a hand-coded list the driver IDs and chip idents are generated automatically from the corresponding headers. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-26Show v4l2_framebuffer Base address in v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-25Add v4l2-dbg debugging utility.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> With v4l2-dbg it is possible to make register dumps of host or i2c chips. It is also possible to query what chips are available. This is just the first version, it will be improved substantially. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-25Add v4l2-ctl support for output overlays and framebuffer ioctls.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-18Use strtol instead of atol to parse the value for a control.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Setting the VIDEO_MUTE control works much better if you can enter a hexadecimal value. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-04Forgot to test against V4L2_CTRL_FLAG_DISABLEDHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-01-21error check were wrong, since at userspace, error codes are positive valsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-21Improved keycode printingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Now, it will print keycode name, if known. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-21Better not to depend at the links under v4l dir.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-21Create keycodes dir, if not existentMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-21Add gen_keytables.pl to automatically generate IR keycodes and improved keytableMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Keytable is now a 3 in 1 script: calling with one argument, it reads keytable from a IR device calling with two arguments, it writes a keytable at a IR device calling with three arguments, it allows changing just one keymap Of course, it is generic enough to work also with other event devices. gen_keytables.pl will generate keyboard mappings, as defined at kernel module. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-21Added a small utility to allow see/edit IR tablesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-20Improved error handling at driver-test.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-11Add missing PAL-60 standard to v4l2-ctl -s optionHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-12-01Fix G_PARM outputMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Fix driver_test for a non-compliance on bttv driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> bttv driver presents a non-compliance: When S_FMT is called, pix.sizeimage reports a different size than when QUERYBUF is called, for the same S_FMT. The current code can work fine with this non-compliance, but an error should be reported. Those are the reports from bttv driver, by running driver-test: FMT SET: 640x480, fourcc=YVU9, 640 bytes/line, 345600 bytes/frame, colorspace=0x00000000 <snip/> QUERYBUF: 00:00:00.00000000 index=0, type=video-cap, bytesused=0, flags=0x00000000, field=any, sequence=0, memory=mmap, offset=0x00000000, length=348160 TIMECODE: 00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 QUERYBUF: ERROR: VIDIOC_S_FMT said buffer should have 345600 size, but received 348160 from QUERYBUF! Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Make v4l2-apps to run some rules defined at main MakefileMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> There are some basic rules that are interesting to be working at apps dir, like: commit, whitespace, pull, push, insmod, rmmod Signed-of-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Added a TODO for missing ioctls at the libraryMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Implement mmapped streaming receptionMauro Carvalho Chehab
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>
2006-12-01Fix free buffer handlingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> There is a non-compliance on video-buf implementation about calling REQBUFS with count=0. According with API, this should free all buffers, but video-buf returns, instead, -EINVAL. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01It seems that ioctl might fail without actually running the codeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Using the same approach as capture_exampe.c Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Start adding mmap streaming into driver-testMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Added a function to free buffers (v4l2_free_bufs)Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-01Add capture_exampe from V4L2 API spec Draft 0.20Mauro Carvalho Chehab
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>
2006-11-16Fix v4l2_mmap_bufs and add checks for memory allocationMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-16Start adding v4l2_mmap_bufs to prepare for streamMauro Carvalho Chehab
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>
2006-11-15Improved v4l2_driverMauro Carvalho Chehab
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>
2006-11-15Initiated v4l-apps/lib V4L2 functionsMauro Carvalho Chehab
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>
2006-11-15Fix compiation bug on qv4l2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> sys/time.h is required to include videodev2.h at userspace. thanks to audetto@tiscalli.it for pointing it. Also fixed a warning at a printf. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-14Added a simple V4L TV record perl scriptMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This script can be used to test V4L TV record on STD/M video standards. Should be easy to adapt it to be used with other video standards. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-12Print buffer type for struct v4l2_sliced_vbi_cap.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> This was commented out because the type was missing in v4l2_sliced_vbi_cap. It's now added, so this can now be used. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-11-12Improve usage message and short options for v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Several uncommon actions had a short option, while some common actions only had a long option. Reorganized this. Also split the usage message in common and uncommon options. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-11-12Improved ioctl-testMauro Carvalho Chehab
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>
2006-10-26Fix South African frequency table.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-10-26Fix incorrect usage line in v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The usage line for the -t option was wrong. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-10-12Add VIDIOC_ENUM_FMT support to v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01Add cropping support to v4l2-ctl, set buf_type in sliced_vbi_cap query.Hans Verkuil
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>
2006-08-25Bug fix (-C didn't work).Hans Verkuil
Lots of new options for VIDIOC_S/G_FMT and other ioctls.
2006-07-01Update copyrights in library.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fix the copyright lines in the v4l2 library. Also explicitly add the Nathan's SOB for frequency.c. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Nathan Laredo <laredo@gnu.org>
2006-07-01Split qv4l2.cpp into multiple sources.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Fix qv4l2.cpp to work with v4l2.h.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Add ISO-V4L2_STD mapping.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Fix makefiles, start with libv4l2.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Move qv4l2 and v4l2-ctl to from test to utilHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-07-01Move test to v4l2-apps/test.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>