hans@rhel5-devel.localdomain [Tue, 19 May 2009 12:25:22 +0000 (14:25 +0200)]
libv4l: support separate vfliping and hfliping
From: Hans de Goede <hdegoede@redhat.com>
Before this patch libv4l only support 180 degree rotation, which is
hflip and vflip combined, this patch adds support for separate
hflipping and vflipping.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Sun, 17 May 2009 13:21:00 +0000 (15:21 +0200)]
libv4l: add Changelog entry for last 3 commits
From: Hans de Goede <hdegoede@redhat.com>
libv4l: add Changelog entry for last 3 commits (I should really learn
to do this before comitting)
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Sun, 17 May 2009 13:18:29 +0000 (15:18 +0200)]
libv4l: fix v4lconvert_uyvy_to_yuv420()
From: Hans de Goede <hdegoede@redhat.com>
v4lconvert_uyvy_to_yuv420() had a bug causing the result to be all messed
up, also see:
http://bugzilla.gnome.org/show_bug.cgi?id=571772
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@localhost.localdomain [Sat, 16 May 2009 20:04:27 +0000 (22:04 +0200)]
libv4l: add ability to determine flags based on DMI info
From: Hans de Goede <hdegoede@redhat.com>
It is possible for the same laptop webcam module (so same usb id) to
be mounted upside down in some models and the right way up in
other laptop models. This patch adds the ability to only apply
flags to a webcam based on the combination of usb id and
dmi info to identify the laptop model.
It also adds the webcam in the Asus N50Vn as the first upside down cam
identified this way.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@localhost.localdomain [Sat, 16 May 2009 10:57:18 +0000 (12:57 +0200)]
libv4l: Support V4L2_CTRL_FLAG_NEXT_CTRL for fake controls
From: Adam Baker <linux@baker-net.org.uk>
The "fake" controls added by libv4l to provide whitebalance on some cameras do
not respect the V4L2_CTRL_FLAG_NEXT_CTRL and hence don't appear on control
programs that try to use that flag if there are any driver controls that do
support the flag. Add support for V4L2_CTRL_FLAG_NEXT_CTRL
Priority: normal
Signed-off-by: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 17 Apr 2009 09:12:08 +0000 (11:12 +0200)]
libv4l: Add sq905 to the list of devices which benefit from whitebalancing
From: Hans de Goede <hdegoede@redhat.com>
libv4l: Add sq905 to the list of devices which benefit from whitebalancing
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 17 Apr 2009 08:49:25 +0000 (10:49 +0200)]
libv4l: add missing Libs.private to v4lconvert.pc
From: Hans de Goede <hdegoede@redhat.com>
libv4l: add missing Libs.private to v4lconvert.pc
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Thu, 16 Apr 2009 09:31:21 +0000 (11:31 +0200)]
libv4l: Only created shared memory segment when we have fake v4l2 controls
From: Hans de Goede <hdegoede@redhat.com>
libv4l: Only created shared memory segment when we have fake v4l2 controls
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Thu, 16 Apr 2009 09:26:54 +0000 (11:26 +0200)]
libv4l: if the card name contains a / replace it with a - in the shm name
From: Hans de Goede <hdegoede@redhat.com>
/ is not allowed inside shm names, so if the card name contains a /
replace it with a -
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Thu, 16 Apr 2009 08:52:39 +0000 (10:52 +0200)]
libv4l: Makefiles: better dependency generation
From: Gregor Jasny <gjasny@googlemail.com>
libv4l: Makefiles: better dependency generation
Priority: normal
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Thu, 16 Apr 2009 08:49:08 +0000 (10:49 +0200)]
libv4l: link libv4lcontrol against rt, not libv4l2
From: Hans de Goede <hdegoede@redhat.com>
libv4l: link libv4lcontrol against rt, not libv4l2
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Thu, 16 Apr 2009 07:52:50 +0000 (09:52 +0200)]
libv4l: genius messenger 112 needs both upside down and whitebalance flags.
From: Hans de Goede <hdegoede@redhat.com>
libv4l: genius messenger 112 needs both upside down and whitebalance flags.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 15 Apr 2009 12:05:19 +0000 (14:05 +0200)]
libv4l: 0.9.97 release
From: Hans de Goede <hdegoede@redhat.com>
libv4l: 0.9.97 release
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 15 Apr 2009 12:03:32 +0000 (14:03 +0200)]
libv4l: Don't add "fake" controls when not doing conversion
From: Hans de Goede <hdegoede@redhat.com>
Since all things fake controls enable (such as whitebalancing) depend upon
libv4lconvert_convert being called, do not fake controls when conversion
is disabled.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Tue, 14 Apr 2009 21:11:39 +0000 (23:11 +0200)]
libv4l: crop widths to the nearest multiple of 8 when converting to YUV420
From: Hans de Goede <hdegoede@redhat.com>
Some applications / libs (*cough* gstreamer *cough*) will not work
correctly with planar YUV formats when the width is not a multiple of 8,
so crop widths which are not a multiple of 8 to the nearest multiple of 8
when converting to planar YUV
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Tue, 14 Apr 2009 14:49:43 +0000 (16:49 +0200)]
libv4l: fix reading wrong memory when doing yuv420->rgb conversion
From: Hans de Goede <hdegoede@redhat.com>
Fix reading outside of the source memory when doing yuv420->rgb conversion.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Tue, 14 Apr 2009 13:03:07 +0000 (15:03 +0200)]
libv4l: Only allow supported destination formats when doing processing
From: Hans de Goede <hdegoede@redhat.com>
Only report / allow supported destination formats in enum_fmt / try_fmt /
g_fmt / s_fmt when processing, rotating or flipping.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Tue, 14 Apr 2009 07:51:35 +0000 (09:51 +0200)]
libv4l: Enable whitebalancing algorithm based on USB id's
From: Hans de Goede <hdegoede@redhat.com>
* Determine wether or not to do whitebalance and/or normalize at all
based on USB-ID's.
* Add rotate90 hack to flags based on usb-id.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Mon, 13 Apr 2009 19:56:28 +0000 (21:56 +0200)]
libv4l: Fix video processing parameter updating
From: Hans de Goede <hdegoede@redhat.com>
Unless the source format of a conversion was a format supported to do
processing on we would update the processing parameters each frame instead
of every 10 frames
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Mon, 13 Apr 2009 18:02:34 +0000 (20:02 +0200)]
libv4l: add video processing: whitebalance and normalize
From: Hans de Goede <hdegoede@redhat.com>
As the version number shows this work is the basis for a beta release of the
0.6.x series, the big change here is the addition of video processing to libv4l
currently this only does whitebalance and normalizing (which turns out
to be useless for most cams) but the basic framework for doing video
processing, and being able to control it through fake v4l2 controls using
for example v4l2ucp is there.
The initial version of this code was written by 3 of my computer science
students: Elmar Kleijn, Sjoerd Piepenbrink and Radjnies Bhansingh.
This initial hg commit is a cleaned up and somewhat bug fixed version of
their code.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 10 Apr 2009 11:34:07 +0000 (13:34 +0200)]
libv4l: Add support to use orientation from VIDIOC_ENUMINPUT
From: Adam Baker <linux@baker-net.org.uk>
Add check to libv4l of the sensor orientation as reported by
VIDIOC_ENUMINPUT
Priority: normal
Signed-off-by: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 10 Apr 2009 11:29:11 +0000 (13:29 +0200)]
libv4l: Adds Makefile pre-requisites to libv4l
From: Gilles Gigan <gilles.gigan@gmail.com>
This patch update libv4l's Makefiles so they automatically update and
include dependency information for each source file.
Priority: normal
Signed-off-by: Gilles Gigan <gilles.gigan@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 27 Mar 2009 09:39:24 +0000 (10:39 +0100)]
libv4l: Fix upside down detection with certain usb devices
From: Hans de Goede <hdegoede@redhat.com>
* adjust libv4l's upside down cam detection to also work with devices
which have the usb interface as parent instead of the usb device
* fix libv4l upside down detection for the new v4l minor numbering scheme
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Mon, 16 Mar 2009 10:27:29 +0000 (11:27 +0100)]
libv4l: drop bad sn9c20x jpeg frames
From: Brian Johnson <brijohn@gmail.com>
sn9c20x cams have occasional bad jpeg frames, drop these to avoid the
flickering effect they cause, by: Brian Johnson <brijohn@gmail.com>
Priority: normal
Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Fri, 13 Mar 2009 11:57:33 +0000 (12:57 +0100)]
libv4l: add hm12 support for the cx2341x MPEG encoder devices.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 13:17:22 +0000 (14:17 +0100)]
libv4l: prep for 0.5.9 release
From: Hans de Goede <hdegoede@redhat.com>
prep for 0.5.9 release.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 13:10:50 +0000 (14:10 +0100)]
libv4l: Fix compile warning in sq905c.c
From: Hans de Goede <hdegoede@redhat.com>
Fix compile warning in sq905c.c .
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 13:06:26 +0000 (14:06 +0100)]
libv4l: libv4lconvert support for SQ905C
From: Theodore Kilgore <kilgota@auburn.edu>
Support the decompression used by the SQ905C cameras (0x2770:0x905C) and
some other related cameras. There is at the moment no support module for
these cameras in streaming mode, but I intend to submit one.
This contribution was created in whole by me, based upon code in libgphoto2
which was created in whole by me, and which was licensed for
libgphoto2 under the LGPL license.
Priority: normal
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:37:45 +0000 (13:37 +0100)]
libv4l: Adjust mr97310a for gspca mr97310a driver changes
From: Theodore Kilgore <kilgota@auburn.edu>
This patch introduces an offset of 12 bytes before starting the
decompression of a frame. This needs to be done to compensate for a change
in the gspca driver, where headers are now preserved instead of
suppressed.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:30:03 +0000 (13:30 +0100)]
libv4l: Add MR97310A decompression
From: Kyle Guinn <elyk03@gmail.com>
libv4l: Add MR97310A decompression
Priority: normal
Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:27:13 +0000 (13:27 +0100)]
libv4l: remove .orig and .rej files on make clean and simplify make export
From: Hans de Goede <hdegoede@redhat.com>
libv4l: remove .orig and .rej files on make clean and simplify make export
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:26:52 +0000 (13:26 +0100)]
libv4l: change clean target to remove editor backup files in root and include
From: Hans de Goede <hdegoede@redhat.com>
libv4l: change clean target to remove editor backup files in root and include
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:26:35 +0000 (13:26 +0100)]
libv4l: remove some code duplication in bayer handling
From: Hans de Goede <hdegoede@redhat.com>
remove some code duplication in bayer handling
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:26:09 +0000 (13:26 +0100)]
libv4l: add sn9c20x-i420 decoder
From: Vasily Khoruzhick <anarsoul@gmail.com>
Recent sn9c20x driver written by microdia project
(http://groups.goolge.com/group/microdia) introduce new output format -
sn9c20x-i420. This format is actually scrambled yuv420, so it's very easy and
fast to convert it to yuv420. This patch adds sn9c20x-i420 decoder to the
libv4l-0.5.7
This decoder is much faster than jpeg one (sn9c20x supports JPEG too):
sn9c20x-i420 decoder eats only 10% of 1GHz CPU at 640x480x25fps vs 40% of
1GHz CPU in jpeg at same frame size/rate.
This format should be preffered for sn9c20x, because sn9c20x driver supports
SBGGR8 too, so it should go before SBGGR8 in supported_src_pixfmts.
Priority: normal
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:23:30 +0000 (13:23 +0100)]
libv4l: us USB-id's instead of USB product string in upside down dev table
From: Hans de Goede <hdegoede@redhat.com>
Switch to using USB-id's instead of USB product string, as not all devices
set a unique product string. This fixes the upside down issues with
genius e-messenger 112 cams
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:17:15 +0000 (13:17 +0100)]
libv4l: Use Requires.private where appropiate in .pc files
From: Gregor Jasny <gjasny@web.de>
Use Requires.private where appropiate in .pc files.
Priority: normal
Signed-off-by: Gregor Jasny <gjasny@web.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:16:22 +0000 (13:16 +0100)]
libv4l: remove duplicate v4lconvert_yvyu_to_yuv420 function
From: Hans de Goede <hdegoede@redhat.com>
Remove v4lconvert_yvyu_to_yuv420 function as its functionality is
duplicate with v4lconvert_yuyv_to_yuv420
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:16:01 +0000 (13:16 +0100)]
libv4l: add UYVY support
From: Julien BLACHE <jb@jblache.org>
Attached is a patch to add UYVY support to libv4lconvert. It's
obviously a shameless respin of the YVYU conversion routines :P
Tested on a USB Apple iSight, which only supports UYVY.
Priority: normal
Signed-off-by: Julien BLACHE <jb@jblache.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:15:43 +0000 (13:15 +0100)]
libv4l: 0.5.7 release
From: Hans de Goede <hdegoede@redhat.com>
* Fix a nasty (and stupid) bug in the special try_fmt handling for UVC cams
* Add some more verbose logging of various calls when asking libv4l to log
calls to a file, to assist in (future) debugging
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:15:10 +0000 (13:15 +0100)]
libv4l: Always do a s_fmt on uvc cams
From: Hans de Goede <hdegoede@redhat.com>
Always do a s_fmt on uvc cams even if this changes nothing, as not doing
the s_fmt triggers a bug in the uvcvideo driver in kernel <= 2.6.28
(with certain cams)
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:12:08 +0000 (13:12 +0100)]
libv4l: avoid try_fmt on UVC cams if possible
From: Hans de Goede <hdegoede@redhat.com>
Avoid the use of try_fmt as much as possible on UVC cams, instead use the
results of the enum_framesizes ioctl. This is because:
1) try_fmt actually causes IO with UVC cams making apps which do lot of
querying of device capabilities slow (cheese)
2) some buggy cams don't like getting lots of UVC video probes and crash
when they do
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:10:27 +0000 (13:10 +0100)]
libv4l: add support for converting to YV12 planar
From: Hans de Goede <hdegoede@redhat.com>
Add support for converting to YV12 planar (next to the already supported
YU12 / I420) and implement RGB/BGR24 -> YU/YV12 conversion
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:09:42 +0000 (13:09 +0100)]
libv4l: add support for downscaling
From: Lukáš Karas <lukas.karas@centrum.cz>
Add support for downscaling to make apps which want low resolutions
(skype, spcaview) happy when used with cams which can only do high
resolutions.
Priority: normal
Signed-off-by: Lukáš Karas <lukas.karas@centrum.cz>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:09:27 +0000 (13:09 +0100)]
libv4l: Don't report DQBUF errors when errno is EAGAIN
From: Hans de Goede <hdegoede@redhat.com>
Don't report DQBUF errors when errno is EAGAIN, this fixes flooding the
screen with errors when applications use non blocking mode
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:08:51 +0000 (13:08 +0100)]
libv4l: dont try to allocate large buffers on the stack
From: Hans de Goede <hdegoede@redhat.com>
When conversion requires multiple passes don't alloc the needed temporary
buffer on the stack, as some apps (ekiga) use so much stack themselves
this causes us to run out of stack space
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:08:30 +0000 (13:08 +0100)]
libv4l: buffers only contain half of the lines with V4L2_FIELD_ALTERNATE
From: Hans de Goede <hdegoede@redhat.com>
Take into account that the buffers only contain half of the lines when
field is V4L2_FIELD_ALTERNATE
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:08:13 +0000 (13:08 +0100)]
libv4l: don't use memcmp to compare pix_formats
From: Hans de Goede <hdegoede@redhat.com>
Only check width, height and pixelformat when checking if we are doing
conversion, instead of doing a memcmp, as that are the only things which
the convert code checks
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:07:44 +0000 (13:07 +0100)]
libv4l: make s_fmt more robust part 2
From: Hans de Goede <hdegoede@redhat.com>
Check that s_fmt atleast gives us the width, height and pixelformat try_fmt
promised us, and if not disable conversion
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:07:28 +0000 (13:07 +0100)]
libv4l: Make S_FMT handling more robust
From: Hans de Goede <hdegoede@redhat.com>
Some drivers (pwc) do not properly reflect what one really gets
after a s_fmt in their try_fmt answer. So update dest format (which we
report as result from s_fmt / g_fmt to the app) with all info from the src
format not changed by conversion.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:07:08 +0000 (13:07 +0100)]
libv4l: Add Philips SPC210NC to list of cams with upside down sensor
From: Hans de Goede <hdegoede@redhat.com>
libv4l: Add Philips SPC210NC to list of cams with upside down sensor
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:06:48 +0000 (13:06 +0100)]
libv4l: Do not link the wrapper libs against libphread
From: Gregor Jasny <jasny@vidsoft.de>
libv4l: Do not link the wrapper libs against libphread
Priority: normal
Signed-off-by: Gregor Jasny <jasny@vidsoft.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
hans@rhel5-devel.localdomain [Wed, 11 Mar 2009 12:06:14 +0000 (13:06 +0100)]
libv4l: Add software cropping from CIF to VGA modes (fix skype)
From: Hans de Goede <hdegoede@redhat.com>
* Add support for software cropping from 352x288 -> 320x240 / 176x144 ->
160x120, so that apps which will only work with vga resolutions like
320x240 (Skype!) will work with cams/drivers which do not support cropping
CIF resolutions to VGA resolutions in hardware. This makes all 2.6.27 gspca
supported cams, except for the pac7302 which only does 640x480 (and skype
wants 320x240), work with skype
* The v4lconvert_convert function was becoming a bit of a mess, so split the
functionailiy into seperate v4lconvert_convert_pixfmt, v4lconvert_rotate and
v4lconvert_crop functions, and make v4lconvert_convert a frontend to
these
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Fri, 6 Mar 2009 12:55:42 +0000 (13:55 +0100)]
videodev2.h: remove deprecated VIDIOC_G_CHIP_IDENT_OLD
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>
Mauro Carvalho Chehab [Thu, 26 Feb 2009 18:41:03 +0000 (15:41 -0300)]
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Thu, 26 Feb 2009 18:30:48 +0000 (15:30 -0300)]
Move parse-sniffusb2.pl to the right dir
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>
Hans Verkuil [Fri, 20 Feb 2009 10:38:35 +0000 (11:38 +0100)]
v4l2-apps: clean up the output for g_jpegcomp a bit.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 20 Feb 2009 10:28:46 +0000 (11:28 +0100)]
v4l2-ctl: add get/set-jpeg-comp support.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 13 Feb 2009 13:00:19 +0000 (14:00 +0100)]
v4l2-apps: rename parse_sniffusb2.pl to parse-sniffusb2.pl
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 13 Feb 2009 12:23:52 +0000 (13:23 +0100)]
v4l2-apps: rename capture_example to capture-example
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>
Hans Verkuil [Fri, 13 Feb 2009 12:17:31 +0000 (13:17 +0100)]
v4l2-apps: rename v4l2_sysfs_path to v4l2-sysfs-path
From: Hans Verkuil <hverkuil@xs4all.nl>
All other tools use - instead of the awkward-to-type underscore, so
rename v4l2_sysfs_path to be consistent with the others. Please pay
attention to existing nameing conventions the next time someone adds
a tool.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 13 Feb 2009 12:06:29 +0000 (13:06 +0100)]
v4l2-apps: move libraries around to make the directory tree flatter
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>
Hans Verkuil [Fri, 13 Feb 2009 11:56:07 +0000 (12:56 +0100)]
libv4l2util: rename from libv4l2 to prevent clash with the libv4l2 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>
Mauro Carvalho Chehab [Mon, 9 Feb 2009 17:38:11 +0000 (15:38 -0200)]
Fix Makefile to compile stress-buffer.c
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Douglas Schilling Landgraf [Mon, 2 Feb 2009 16:34:50 +0000 (14:34 -0200)]
v4l2-apps: Add stress buffer tool
From: Douglas Schilling Landgraf <dougsland@redhat.com>
Added stress buffer tool
Priority: normal
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Douglas Schilling Landgraf [Mon, 2 Feb 2009 16:31:39 +0000 (14:31 -0200)]
v4l2-apps: Add parser for USB snoops captured from SniffUSB 2.0
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>
Mauro Carvalho Chehab [Wed, 28 Jan 2009 00:16:53 +0000 (22:16 -0200)]
Retrieves info for all v4l2 devices on /dev
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Tue, 27 Jan 2009 23:56:31 +0000 (21:56 -0200)]
v4l2_sysfs_path: replace "bus path" by "sysfs path"
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Tue, 27 Jan 2009 23:47:39 +0000 (21:47 -0200)]
Add a small utility for retrieving sysfs bus path
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Thanks to Carsten Meier <cm@trexity.de> for providing us a c++ code
snippet for USB.
This code is capable of getting the bus info for both USB and PCI
devices. This is retrieved via bus_info returned by VIDIOC_QUERYCAP.
The utility will output the following info for a usb device:
bus info = usb-0000:00:1d.7-1
bus path = /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
And, for PCI devices, it will output:
bus info = PCI:0000:01:02.0
bus path = /sys/devices/pci0000:00/0000:00:1e.0/0000:01:02.0
Notice: This will only work for devices that uses the standard
notation for the bus info:
on PCI:
sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci));
or
sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci));
on USB:
usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Wed, 31 Dec 2008 03:45:35 +0000 (01:45 -0200)]
parse_em28xx.pl: Add a limited capability of parsing i2c commands
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Tue, 23 Dec 2008 14:58:55 +0000 (15:58 +0100)]
v4l2-dbg: fix --list-symbols
From: Hans Verkuil <hverkuil@xs4all.nl>
--list-symbols didn't work for i2c drivers anymore.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Tue, 30 Dec 2008 10:14:19 +0000 (11:14 +0100)]
v4l2: debugging API changed to match against driver name instead of ID.
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>
Mauro Carvalho Chehab [Tue, 23 Dec 2008 00:00:03 +0000 (22:00 -0200)]
v4l2-dbg: allow debug tvp5150 registers
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 18:01:46 +0000 (16:01 -0200)]
v4l2-dbg: Use aliases for debug, on available chips
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 17:06:33 +0000 (15:06 -0200)]
v4l2-dbg: Add support for get/set ac97 registers
From: Mauro Carvalho Chehab <mchehab@redhat.com>
em28xx devices can have an ac97 anciliary chip. This patch allows
get/set ac97 registers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 16:49:07 +0000 (14:49 -0200)]
em28xx: update regiters on v4l2-dbg debug util
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Some ac97 registers where presented as if they are em28xx ones. Also,
add mising em2874 registers.
The code were generated by the following command:
$ more em28xx-reg.h |perl -ne 'if (m/(EM2[A-Z0-9]..)_R.._([^\s]+)\s+(0x[0-9A-Fa-f].)/) { printf "\t{$3, $1_PREFIX \"$2\", 1},\n"; }' |grep -v EM2800_PREFIX|sort >/tmp/registers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 12:22:42 +0000 (10:22 -0200)]
v4l2-dbg: em2800 registers are not very common nowadays. Use it as alternate names
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 12:19:13 +0000 (10:19 -0200)]
v4l2-dbg: print also register number when name is available
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 12:17:16 +0000 (10:17 -0200)]
v4l2-dbg: print register name and fix doioctl check
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 11:53:53 +0000 (09:53 -0200)]
v4l2-dbg: print register name when known
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 11:36:29 +0000 (09:36 -0200)]
v4l2-dbg: fix --list-symbols option
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 22 Dec 2008 10:52:13 +0000 (08:52 -0200)]
merge: www.linuxtv.org/hg/~hverkuil/v4l-dvb-fixes
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Sun, 21 Dec 2008 13:38:12 +0000 (14:38 +0100)]
ioctl-test: Support all ioctls, improve output and add additional checks
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>
Hans Verkuil [Sat, 20 Dec 2008 12:14:03 +0000 (13:14 +0100)]
v4l2-dbg: get-chip-ident has no arguments
From: Hans Verkuil <hverkuil@xs4all.nl>
get-chip-ident expected an argument when none was needed.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sat, 6 Dec 2008 10:29:33 +0000 (11:29 +0100)]
v4l2-ctl: List device links as such
From: Jean Delvare <khali@linux-fr.org>
Improvement to --list-devices: when a device node is actually a link
to another device node, display it as such.
Priority: normal
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Mauro Carvalho Chehab [Wed, 26 Nov 2008 14:30:47 +0000 (12:30 -0200)]
Add a parser for em28xx register debug log
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Hans Verkuil [Mon, 24 Nov 2008 12:56:06 +0000 (13:56 +0100)]
qv4l2: fix compile warnings.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Mauro Carvalho Chehab [Sun, 16 Nov 2008 03:26:13 +0000 (01:26 -0200)]
select video device via a popup menu
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Seeking for a video device at /dev is sometimes hard, since not all
distros create a /dev/v4l dir. Instead of opening a file, be more
user-friendly, by just displaying the valid files.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Mon, 10 Nov 2008 20:21:34 +0000 (18:21 -0200)]
command line: added --frames, touched up
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>
Mauro Carvalho Chehab [Mon, 29 Sep 2008 05:48:26 +0000 (05:48 +0000)]
2-apps: fix generation of parse.h
From: Andreas Oberritter <obi@linuxtv.org>
Here's a fix for v4l2-apps/util/Makefile: It uses echo -e, which is not
portable across different shell implementations. I replaced it with
printf. That's a common problem on Ubuntu, where dash is used instead of
bash as the default shell.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Wed, 24 Sep 2008 13:35:08 +0000 (10:35 -0300)]
merge: http://linuxtv.org/hg/~hgoede/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
hans@localhost.localdomain [Mon, 15 Sep 2008 11:48:21 +0000 (13:48 +0200)]
libv4l: 0.5.0 release
From: Hans de Goede <hdegoede@redhat.com>
* Add support for enumerating framesizes and frameintervals of emulated
formats when the driver supports it for the real format
* Make sure the video device always gets opened RW even if the application
asks for RO
* Add Genius E-Messenger 112 (093a:2476) to list of cams which have their
sensor upside down
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Hans Verkuil [Sun, 7 Sep 2008 12:46:44 +0000 (14:46 +0200)]
v4l2-ctl: add --list-devices option
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Sat, 6 Sep 2008 12:58:47 +0000 (14:58 +0200)]
v4l2-ctl: improve fmt handling
From: Hans Verkuil <hverkuil@xs4all.nl>
- add 'try' versions for the various formats
- add set/try-fmt-overlay support
- print result of set/try call if verbose was set
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Hans Verkuil [Fri, 5 Sep 2008 06:27:28 +0000 (08:27 +0200)]
v4l2-ctl: improve error reporting
From: Hans Verkuil <hverkuil@xs4all.nl>
Based on a similar patch from Jean Delvare.
By default errors are shown. --verbose also reports successful calls and
--silent suppresses the output altogether, only returning an application
error code.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
hans@localhost.localdomain [Wed, 3 Sep 2008 12:24:30 +0000 (14:24 +0200)]
libv4l: Prefer compressed pixformats for resolutions > 176x144
From: Hans de Goede <j.w.r.degoede@hhs.nl>
libv4l: Prefer compressed pixformats for resolutions > 176x144
Priority: normal
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
hans@localhost.localdomain [Wed, 3 Sep 2008 09:36:18 +0000 (11:36 +0200)]
libv4l: Add suport for YUYV and YVYU packed pixel formats
From: Jean-Francois Moine <moinejf@free.fr>
libv4l: Add suport for YUYV and YVYU packed pixel formats
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Hans Verkuil [Sun, 31 Aug 2008 10:03:53 +0000 (12:03 +0200)]
v4l2-compliance: fix memory bug in handling of the -d option.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
hans@localhost.localdomain [Fri, 29 Aug 2008 12:00:57 +0000 (14:00 +0200)]
libv4l: adjust (fix) sn9c102 bayer order
From: Hans de Goede <j.w.r.degoede@hhs.nl>
* The bayer pixel order in gspca's sonixb driver was different from that in
the sn9c102 driver from the mainline kernel, a recent gspca patch fixes
this, adjust libv4l to match (and make it work properly with the sn9c102
driver).
Priority: normal
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
hans@localhost.localdomain [Tue, 26 Aug 2008 16:11:09 +0000 (18:11 +0200)]
libv4l: fix a few compile warnings
From: Hans de Goede <j.w.r.degoede@hhs.nl>
libv4l: fix a few compile warnings
Priority: normal
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
hans@localhost.localdomain [Tue, 26 Aug 2008 14:37:38 +0000 (16:37 +0200)]
libv4l: x86_64 asm fixes and hide non public symbols
From: Gregor Jasny <gjasny@web.de>
* Hide non public symbols (Gregor Jasny)
* Fix and enable x86_64 asm jpeg decompress helper functions (Gregor Jasny)
Priority: normal
Signed-off-by: Gregor Jasny <gjasny@web.de>
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>