summaryrefslogtreecommitdiff
path: root/v4l2-apps
AgeCommit message (Collapse)Author
2008-07-01v4l2-library: libv4l1 and v4l1compatThierry MERLE
From: Hans de Goede <j.w.r.degoede at hhs.nl> libv4l1 is the base of the v4l1compat.so wrapper lib, which is a .so which can be LD_PRELOAD-ed and the overrules the libc's open/close/etc, and when opening /dev/videoX calls v4l1_open. Signed-off-by: Hans de Goede <j.w.r.degoede at hhs.nl> Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2008-07-01v4l2-library: libv4l2 and v4l2convertThierry MERLE
From: Hans de Goede <j.w.r.degoede at hhs.nl> libv4l2 offers v4l2_ prefixed versions of open/close/etc. The API is 100% the same as directly opening /dev/videoX using regular open/close/etc, the big difference is that format conversion is done if necessary when capturing. That is if you (try to) set a capture format which is not supported by the cam, but is supported by libv4lconvert, then the try_fmt / set_fmt will succeed as if the cam supports the format and on dqbuf / read the data will be converted for you and returned in the request format. v4l2convert: open/close/ioctl/mmap/munmap library call wrapper doing format conversion for v4l2 applications which want to be able to simply capture bgr24 / yuv420 from v4l2 devices with more exotic frame formats. Signed-off-by: Hans de Goede <j.w.r.degoede at hhs.nl> Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2008-07-01v4l2-library: libv4lconvertThierry MERLE
From: Hans de Goede <j.w.r.degoede at hhs.nl> libv4lconvert: video decompression routines Signed-off-by: Hans de Goede <j.w.r.degoede at hhs.nl> Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2008-06-29v4l2-ctl: improve handling of control names with non-alnum charsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-06-28v4l2-dbg: if only the 'min' value is specified, then set max to min+0xffHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-06-27v4l2-ctl: fix bug in --set-standardHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> --set-standard allows you to set a standard index corresponding to what ENUMSTD returns. But this clashes when you specify a standard whose ID is very small, like PAL-BG. Then the utility thinks you specified a standard index and will select the wrong standard. Fixed by using a flag to mark that the standard actually is a standard and not a standard index. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-06-27Added the SBGGR16 format and fixed two memory leaks on pixfmt-test.Mauro Carvalho Chehab
From: Michael Schimek <mschimek@gmx.at> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-01v4l2-apps: add initial version of v4l2-complianceHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Add tool to test V4L2 API driver compliance. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-31v4l2-dbg: merge v4l-board-dbg into v4l2-dbgHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> There is no point in having multiple debug utilities that do the same thing, so merge the functionality of v4l-board-dbg into v4l2-dbg. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-31v4l2-dbg: simplify v4l2-dbgHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-31v4l2-dbg: simplify usage messageHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-29v4l2-apps: fix v4l2-apps build and 'make firmware' warningsHans Verkuil
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>
2008-08-29merge: http://linuxtv.org/hg/~hgoede/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-08-22ivtv-ctl: fix 64-bit compile warning.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-20capture_example: code cleanupsHans Verkuil
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>
2008-08-20capture_example: Don't change the format by defaultHans Verkuil
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>
2008-08-19v4l2-ctl: merge strings in the usage messageHans Verkuil
From: Jean Delvare <khali@linux-fr.org> Function calls aren't cheap. By merging the strings printed by the usage() function, we reduce the number of times printf (or actually puts) is called, from 121 to only 4. This makes usage() about twice as fast as before, and also shrinks the binary size a bit (4 kB). Priority: normal Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-19v4l2-ctl: added support to set the pixelformatHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-28v4l2-ctl: show name and afc when calling VIDIOC_G_TUNERHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-27v4l2-apps: some capture_example improvementsHans Verkuil
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>
2008-06-16v4l-board-dbg: Add registers for em28xxMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16v4l-host-dbg: Add missing saa7134-dbg.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16v4l-board-dbg: Some cleanupsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16v4l-board-dbg: Add support for saa7134 registersMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16Prepare v4l-board-dbg to other chip additionsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16rename bttv-dbg to v4l-board-dbg in order to make it more genericMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-16Add a tool to debug bttv registersMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-05-25ivtv-ctl: add support to set mute and audio stereo/bilingual modes for playbackHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> There was no support to set the fast/slow playback mute mode and the stereo/bilingual playback modes. Added this to ivtv-ctl. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-05-24v4l2-ctl: return errors as the program resultHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> If an error occurs, then the program now returns an error. Also did a few cleanups. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-04-28cx18: add new cx18-ctl control utilityHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Add cx18-ctl utility to control cx18 cards, add cx18 debug support to v4l2-dbg. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-04-26ivtv: add ivtv-ctl control utility.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-03-04Subject: Add a missing include at v4l2_driver.hMauro Carvalho Chehab
From: Carl Karsten <carl@personnelware.com> Date: Thu, 28 Feb 2008 15:21:51 -0600 Adding #include <stddef.h> solves a build problem I had on Ubnutu. v4l-dvb/v4l2-apps/test$ make CC driver-test.o In file included from driver-test.c:17: ../lib/v4l2_driver.h:26: error: expected specifier-qualifier-list before 'size_t' make: *** [driver-test.o] Error 1 Thanks to Carl Karsten <carl@personnelware.com> for pointing this issue. CC: Carl Karsten <carl@personnelware.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-20firmware-tool: add --write option to --listMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-20firmware-tool: some fixes at method 3 outputMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-09Fix firmware size and number of firmwaresMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-09Improve xc3028 firmware-tool seek modeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add a method to allow seek mode to find different versions of base firmwares. This is useful to seek for older Xceive firmware revisions. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-07Make it work also with usb driversMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> USB drivers, like em28xx and tm6000, have 8 or 16 bit registers, instead of 32, at host. This patch adds an option to set step 1 when listing registers on those devices. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-15Add a --dump option for listing the firmware hexadecimal valuesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-07firmware-tool is a C application, not a C++.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-07From: Mauro Carvalho Chehab <mchehab@infradead.org>Mauro Carvalho Chehab
move rds-saa6588.c from v4l_experimental to v4l2-apps/util From: Mauro Carvalho Chehab <mchehab@infradead.org> rds-saa6588 is, in fact, a test utility, not a driver. Move it to the proper place and add a proper Makefile. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-02Adds device file name to General tabMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-02Show board id at general tab on qv4l2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> When you have several boards inside a machine, you need to know what board qv4l2 is using. This patch presents driver, board name and bus id, to help identifying the board. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-01Avoid needing to run perl script on machines with 64-bit intMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-31Improve method 1Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Xceive firmwares seem to use Big Endian for encoding size, delay and reset. Kernel drivers uses Little Endian. Before this patch, method 1 were fixing endian only for size. This patch changes the behavior to change endian also for delay and reset. With this change, with HVR12x0 file, method (1) works for all firmwares. This produces a very optimized script. The seek method is known to work with firmwares version 2.7 and 2.5. However, drivers with firmware version 1.x have a different internal format. So, another seek method will be required to allow the script to work on those firmwares. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-31Add a tool to generate firmware extracting scripts for xc3028Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This is the tool used to generate extract_xc3028.pl. Once you have a firmware file, generated from other methods, like usb dumps, this tool allows to seek the firmware inside a windows driver, creating an extrating script. There are two methods to seek for a firmware: 1) a complete firmware seek; 2) seek for firmware hunks. For each firmware segment, it writes the segment size, and seeks for the segment inside the firmware. The result of method 2) is not optimized. In the case of hvr12x0 driver, the base firmwares didn't hit method (1), so, the extracting tool broke it into several small segments. This is not optimized, but works. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-20merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-18cs5345: new i2c driver.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-12-14Better classify firmware typesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-14Fix audio displayMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-12-14Firmware standards changed. Fix the firmware-toolMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Firmware now allows having an IF table. This added some changes at the firmware formats. This patch fixes firmware-tool to properly display such newer firmware files. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>