platform/upstream/v4l-utils.git
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:25:10 +0000 (11:25 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:16:18 +0000 (11:16 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: beginning of 0.6.2 dev cycle
hans@rhel5-devel.localdomain [Wed, 2 Sep 2009 09:10:22 +0000 (11:10 +0200)]
libv4l: beginning of 0.6.2 dev cycle

From: Hans de Goede <hdegoede@redhat.com>

libv4l: beginning of 0.6.2 dev cycle

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed
hans@rhel5-devel.localdomain [Tue, 1 Sep 2009 08:03:27 +0000 (10:03 +0200)]
libv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Document that passing in NULL as 3th arg to v4l2_ioctl is not allowed

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 1 Sep 2009 07:58:26 +0000 (09:58 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 14:40:33 +0000 (16:40 +0200)]
libv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Report V4L2_FMT_FLAG_EMULATED in v4l2_fmtdesc flags for emulated formats

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 14:15:48 +0000 (16:15 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 31 Aug 2009 08:52:12 +0000 (10:52 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sat, 29 Aug 2009 10:23:17 +0000 (12:23 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: actually compile the sn9c2028 decompression code
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:46:47 +0000 (10:46 +0200)]
libv4l: actually compile the sn9c2028 decompression code

From: Hans de Goede <hdegoede@redhat.com>

libv4l: actually compile the sn9c2028 decompression code

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: support decompressing sn9c2028 compressed bayer
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:42:25 +0000 (10:42 +0200)]
libv4l: support decompressing sn9c2028 compressed bayer

From: Theodore Kilgore <kilgota@banach.math.auburn.edu>

libv4l: support decompressing sn9c2028 compressed bayer

Priority: normal

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 25 Aug 2009 08:18:06 +0000 (10:18 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table
hans@rhel5-devel.localdomain [Mon, 24 Aug 2009 07:52:55 +0000 (09:52 +0200)]
libv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table

From: Stéphane Marguet (Stemp) <smarguet <at> gmail.com>

libv4l: add 06f8:3009 pac7302 90 degrees rotated cam to the device table

Priority: normal

Signed-off-by: Stéphane Marguet (Stemp) <smarguet <at> gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 24 Aug 2009 07:31:32 +0000 (09:31 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: make get / set control use libv4lconvert functions
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:42:57 +0000 (11:42 +0200)]
libv4l: make get / set control use libv4lconvert functions

From: Hans de Goede <hdegoede@redhat.com>

libv4l: make get / set control use libv4lconvert functions

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:34:10 +0000 (11:34 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Change controls shm segment name to include the username
hans@rhel5-devel.localdomain [Thu, 20 Aug 2009 09:28:51 +0000 (11:28 +0200)]
libv4l: Change controls shm segment name to include the username

From: Gregor Jasny <gjasny@googlemail.com>

Change controls shm segment name to include the username, as it is only
writable by the user (this means libv4l controls are per user)

Priority: normal

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 17 Aug 2009 07:35:56 +0000 (09:35 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 08:05:18 +0000 (10:05 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Do not hide JPG / MJPG pixfmt from applications
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 07:57:02 +0000 (09:57 +0200)]
libv4l: Do not hide JPG / MJPG pixfmt from applications

From: Hans de Goede <hdegoede@redhat.com>

Some applications want to use jpg format if possible, so do not hide
it from the apps (do not assume it always needs conversion)

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix reqbuf Device or Resource busy error when using read
hans@rhel5-devel.localdomain [Fri, 14 Aug 2009 07:50:33 +0000 (09:50 +0200)]
libv4l: Fix reqbuf Device or Resource busy error when using read

From: Hans de Goede <hdegoede@redhat.com>

Some applications such as v4l2-apps/test/capture-example.c, in read mode
use select() together with read() and do a select() before the first read().

This causes issues together with certain drivers (gspca for example),
do not allow switching from read mode to mmap mode and they assume read()
mode if a select or poll() is done before any buffers are requested.

When not using libv4l2, this is not an issue but libv4l2 uses mmap mode
under the hood when converting as that safes a memcpy for each frame read.

This fails with such drivers when the application has done a select() before
the first read() as the driver now is in "read mode" and disallows switching
to mmap mode.

This patch fixes this by falling back to using read() for v4l2_read() when
using mmap mode fails.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Also look for dmi info under /sys/class/dmi/id
hans@rhel5-devel.localdomain [Wed, 12 Aug 2009 07:15:17 +0000 (09:15 +0200)]
libv4l: Also look for dmi info under /sys/class/dmi/id

From: Hans de Goede <hdegoede@redhat.com>

libv4l was looking for dmi strings in sysfs under /sys/devices/virtual/dmi/id
but with some kernel configurations this does not exist. It turns out that
the dmi strings do exist under /sys/class/dmi/id here. It seems that all
systems with dmi info in sysfs have /sys/class/dmi/id so default to using
that instead. To be sure fall back to /sys/devices/virtual/dmi/id
(the old behavor) when /sys/class/dmi/id is not found.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 11 Aug 2009 12:04:30 +0000 (14:04 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 10 Aug 2009 08:02:44 +0000 (10:02 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sun, 9 Aug 2009 15:02:39 +0000 (17:02 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix upside down devices table ordering
hans@rhel5-devel.localdomain [Sun, 9 Aug 2009 14:56:38 +0000 (16:56 +0200)]
libv4l: fix upside down devices table ordering

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix upside down devices table ordering

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix a compiler warning
hans@rhel5-devel.localdomain [Fri, 7 Aug 2009 15:26:11 +0000 (17:26 +0200)]
libv4l: fix a compiler warning

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix a compiler warning

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update my email address
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:28:07 +0000 (12:28 +0200)]
libv4l: update my email address

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update my email address

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: README improvements
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:25:06 +0000 (12:25 +0200)]
libv4l: README improvements

From: Hans de Goede <hdegoede@redhat.com>

libv4l: README improvements

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: README improvements
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 10:19:55 +0000 (12:19 +0200)]
libv4l: README improvements

From: bifferos <bifferos@yahoo.co.uk>

libv4l: README improvements

Priority: normal

Signed-off-by: bifferos <bifferos@yahoo.co.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 5 Aug 2009 09:53:16 +0000 (11:53 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fixup 320x240 output for pac7302 cameras
hans@rhel5-devel.localdomain [Mon, 3 Aug 2009 11:17:05 +0000 (13:17 +0200)]
libv4l: fixup 320x240 output for pac7302 cameras

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fixup 320x240 output for pac7302 cameras

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 27 Jul 2009 12:20:59 +0000 (14:20 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: allow use of System / Product DMI strings in upside down cam list
hans@rhel5-devel.localdomain [Sun, 26 Jul 2009 08:41:04 +0000 (10:41 +0200)]
libv4l: allow use of System / Product DMI strings in upside down cam list

From: Hans de Goede <hdegoede@redhat.com>

libv4l: allow use of System / Product DMI strings in upside down cam list

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sat, 25 Jul 2009 17:56:33 +0000 (19:56 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Make library subdir name configurable
hans@rhel5-devel.localdomain [Thu, 16 Jul 2009 15:03:40 +0000 (17:03 +0200)]
libv4l: Make library subdir name configurable

From: Gregor Jasny <gjasny@googlemail.com>

While studying the Debian library package name, I noticed that private

So /usr/lib/libv4l should become /usr/lib/libv4l0. As this would break
existing scripts, I suggest to start versioning with the next soname bump.

The line in the makefiles will then read:

ifeq ($(LIBSUBDIR),)
LIBSUBDIR = libv4l$(LIB_RELEASE)
endif

Unfortunately, the private subdirs in Debian must be named after the library
package, which would be libv4l-0. Therefore I need to configure the
LIBSUBDIR at compile time.

Priority: normal

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Tue, 14 Jul 2009 11:00:32 +0000 (13:00 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Fri, 10 Jul 2009 17:20:57 +0000 (19:20 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Fri, 10 Jul 2009 13:13:05 +0000 (15:13 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Fri, 10 Jul 2009 13:12:08 +0000 (15:12 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Improved pac207 decompression code
hans@rhel5-devel.localdomain [Thu, 9 Jul 2009 12:12:00 +0000 (14:12 +0200)]
libv4l: Improved pac207 decompression code

From: Hans de Goede <hdegoede@redhat.com>

Improved pac207 decompression code to also support higher compression
modes of the pac207, which enables us to use higher framerates.
Many many thanks to Bertrik Sikken for figuring the decompression out!

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Thu, 9 Jul 2009 09:14:31 +0000 (11:14 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 8 Jul 2009 15:08:32 +0000 (17:08 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 6 Jul 2009 08:14:11 +0000 (10:14 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add support for RGB565 format
hans@rhel5-devel.localdomain [Fri, 3 Jul 2009 08:59:47 +0000 (10:59 +0200)]
libv4l: add support for RGB565 format

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Currently, em28xx driver outputs webcams only at RGB565 format. However,
several webcam applications don't support this format.

In order to properly work with those applications, a RGB565 handler should be
added at libv4l.

Tested with Silvercrest 1.3 mpix with v4l2grab (V4L2, with native libv4l
support) and two LD_PRELOAD applications: camorama (V4L1 API) and skype (using compat32).

Priority: normal

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 29 Jun 2009 09:29:59 +0000 (11:29 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 29 Jun 2009 08:22:45 +0000 (10:22 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Wed, 24 Jun 2009 12:11:00 +0000 (14:11 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: whitebalance fix divide by 0 and avoid abrupt changes
hans@rhel5-devel.localdomain [Wed, 24 Jun 2009 12:07:03 +0000 (14:07 +0200)]
libv4l: whitebalance fix divide by 0 and avoid abrupt changes

From: Hans de Goede <hdegoede@redhat.com>

libv4l: whitebalance fix divide by 0 and avoid abrupt changes

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Mon, 22 Jun 2009 08:15:35 +0000 (10:15 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: update upside down devices table
hans@rhel5-devel.localdomain [Sun, 21 Jun 2009 21:45:33 +0000 (23:45 +0200)]
libv4l: update upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: update upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add various laptop models to the upside down devices table
hans@rhel5-devel.localdomain [Fri, 19 Jun 2009 11:13:55 +0000 (13:13 +0200)]
libv4l: add various laptop models to the upside down devices table

From: Hans de Goede <hdegoede@redhat.com>

libv4l: add various laptop models to the upside down devices table

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: enable automatic gain / exposure control for st6422 devices
hans@rhel5-devel.localdomain [Wed, 17 Jun 2009 21:35:22 +0000 (23:35 +0200)]
libv4l: enable automatic gain / exposure control for st6422 devices

From: Hans de Goede <hdegoede@redhat.com>

libv4l: enable automatic gain / exposure control for st6422 devices

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l1: Emulate VIDIOCGWIN instead of passing it through to the kernel
hans@rhel5-devel.localdomain [Wed, 17 Jun 2009 19:57:05 +0000 (21:57 +0200)]
libv4l1: Emulate VIDIOCGWIN instead of passing it through to the kernel

From: Hans de Goede <hdegoede@redhat.com>

Emulate VIDIOCGWIN instead of passing it through to the kernel, this fixes
us reporting a wrong size to the app when libv4l2 / libv4lconvert is
cropping / downsampling the image.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix deadlock introduced by locking fix in previous patch
hans@rhel5-devel.localdomain [Wed, 17 Jun 2009 13:45:32 +0000 (15:45 +0200)]
libv4l: fix deadlock introduced by locking fix in previous patch

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix deadlock introduced by locking fix in previous patch

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Report aligned resolution on first get_fmt
hans@rhel5-devel.localdomain [Wed, 17 Jun 2009 13:38:46 +0000 (15:38 +0200)]
libv4l: Report aligned resolution on first get_fmt

From: Hans de Goede <hdegoede@redhat.com>

When a user does a try_fmt with the current dest_fmt and the dest_fmt
is a supported one we will align the resulution (see try_fmt for why).
Do the on the result of the first get_fmt, so that a try_fmt on the result of
a get_fmt done immediately after open leaves the fmt unchanged

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l1: Use v4l2_ioctl when determining min/max size
hans@rhel5-devel.localdomain [Wed, 17 Jun 2009 12:56:29 +0000 (14:56 +0200)]
libv4l1: Use v4l2_ioctl when determining min/max size

From: Hans de Goede <hdegoede@redhat.com>

Use v4l2_ioctl instead of native ioctl's when finding out what the
minimum / maximum size is, so that we take the resolution aligment done
by libv4l2 into account for the minimum / maximum size.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Make sure Y and UV or from the same 2x2 pixel block when cropping
hans@rhel5-devel.localdomain [Tue, 16 Jun 2009 21:59:06 +0000 (23:59 +0200)]
libv4l: Make sure Y and UV or from the same 2x2 pixel block when cropping

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Make sure Y and UV or from the same 2x2 pixel block when cropping

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix a bug in the always report widths which are a multiple of 8 code
hans@rhel5-devel.localdomain [Tue, 16 Jun 2009 21:51:10 +0000 (23:51 +0200)]
libv4l: Fix a bug in the always report widths which are a multiple of 8 code

From: Hans de Goede <hdegoede@redhat.com>

Fix a bug in the always report widths which are a multiple of 8 code added
in 0.5.97

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Detect ov518 decompression errors
hans@rhel5-devel.localdomain [Sun, 14 Jun 2009 20:58:53 +0000 (22:58 +0200)]
libv4l: Detect ov518 decompression errors

From: Hans de Goede <hdegoede@redhat.com>

Sometimes the ov518 gives us an incomplete frame, detect this and throw
it away.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Remove 0 blocks from non-compresses ov511 frames too
hans@rhel5-devel.localdomain [Sun, 14 Jun 2009 20:51:13 +0000 (22:51 +0200)]
libv4l: Remove 0 blocks from non-compresses ov511 frames too

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Remove 0 blocks from non-compresses ov511 frames too

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add missing stdint.h include to libv4l2.h
hans@rhel5-devel.localdomain [Fri, 12 Jun 2009 08:42:17 +0000 (10:42 +0200)]
libv4l: add missing stdint.h include to libv4l2.h

From: Hans de Goede <hdegoede@redhat.com>

libv4l: add missing stdint.h include to libv4l2.h

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add support for decompressing ov511 compressed frames
hans@rhel5-devel.localdomain [Fri, 12 Jun 2009 08:41:04 +0000 (10:41 +0200)]
libv4l: add support for decompressing ov511 compressed frames

From: Hans de Goede <hdegoede@redhat.com>

libv4l: add support for decompressing ov511 compressed frames

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: remove DEADJOE files during make clean
hans@rhel5-devel.localdomain [Mon, 8 Jun 2009 09:22:32 +0000 (11:22 +0200)]
libv4l: remove DEADJOE files during make clean

From: Gregor Jasny <gjasny@googlemail.com>

libv4l: remove DEADJOE files during make clean

Priority: normal

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: move ov518 decompression code to an external helper
hans@rhel5-devel.localdomain [Mon, 8 Jun 2009 09:16:43 +0000 (11:16 +0200)]
libv4l: move ov518 decompression code to an external helper

From: Hans de Goede <hdegoede@redhat.com>

Change support for decompressing ov518 "JPEG" to piping data through an
external helper as I've failed to contact Mark W. McClelland to get
permission to relicense the code. If you know a working email address for
Mark W. McClelland, please let me know.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add support for decompressing ov518 JPEG
hans@rhel5-devel.localdomain [Fri, 5 Jun 2009 14:30:33 +0000 (16:30 +0200)]
libv4l: add support for decompressing ov518 JPEG

From: Hans de Goede <hdegoede@redhat.com>

Add support for decompressing ov518 "JPEG", note this code is not
LGPL yet, I'm waiting for a license change permission. If I do not
get one this will be moved to an external helper and the data
will be piped through this, to keep libv4l2.so LGPL

Priority: normal

Signed-off-by: Hans de Goede
15 years agolibv4l: recognize when controls are disabled
hans@rhel5-devel.localdomain [Fri, 5 Jun 2009 14:02:40 +0000 (16:02 +0200)]
libv4l: recognize when controls are disabled

From: Hans de Goede <hdegoede@redhat.com>

libv4l: recognize when controls are disabled

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: initial support for compiling on FreeBSD
hans@rhel5-devel.localdomain [Tue, 2 Jun 2009 13:34:34 +0000 (15:34 +0200)]
libv4l: initial support for compiling on FreeBSD

From: Hans Petter Selasky <hselasky@freebsd.org>

Add a patch by Hans Petter Selasky <hselasky@freebsd.org>, which should
lead to allowing use of libv4l (and the Linux webcam drivers ported
to userspace usb drivers) on FreeBSd, this is a work in progress

Priority: normal

Signed-off-by: Hans Petter Selasky <hselasky@freebsd.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix a crash in v4lcontrol_controls_changed()
hans@rhel5-devel.localdomain [Fri, 29 May 2009 09:42:59 +0000 (11:42 +0200)]
libv4l: Fix a crash in v4lcontrol_controls_changed()

From: Hans de Goede <hdegoede@redhat.com>

Don't crash when v4lcontrol_controls_changed() gets called and we have
no fake controls (null pointer dereference).

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix black screen on devices with hardware gamma control
hans@rhel5-devel.localdomain [Wed, 27 May 2009 18:05:11 +0000 (20:05 +0200)]
libv4l: Fix black screen on devices with hardware gamma control

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Fix black screen on devices with hardware gamma control

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Link libv4lconvert with -lm for powf
hans@rhel5-devel.localdomain [Wed, 27 May 2009 07:28:13 +0000 (09:28 +0200)]
libv4l: Link libv4lconvert with -lm for powf

From: Gregor Jasny <gjasny@googlemail.com>

libv4l: Link libv4lconvert with -lm for powf

Priority: normal

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: 0.5.98 release
hans@rhel5-devel.localdomain [Tue, 26 May 2009 08:26:55 +0000 (10:26 +0200)]
libv4l: 0.5.98 release

From: Hans de Goede <hdegoede@redhat.com>

libv4l: 0.5.98 release

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix a crash when doing processing on non rgb / bayer data
hans@rhel5-devel.localdomain [Tue, 26 May 2009 08:15:15 +0000 (10:15 +0200)]
libv4l: fix a crash when doing processing on non rgb / bayer data

From: Hans de Goede <hdegoede@redhat.com>

We were calling processing on the rotate90_src, but when doing single
conversion and not doing rotate90 that was not pointing the buffer
we should do the processing on (the converted data), but instead it
was pointing to the original src buffer.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: activate software whitebalance by default on some cams
hans@rhel5-devel.localdomain [Tue, 26 May 2009 08:11:14 +0000 (10:11 +0200)]
libv4l: activate software whitebalance by default on some cams

From: Hans de Goede <hdegoede@redhat.com>

libv4l: activate software whitebalance by default on some cams

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add gamma correction to video processing
hans@rhel5-devel.localdomain [Tue, 26 May 2009 08:07:18 +0000 (10:07 +0200)]
libv4l: add gamma correction to video processing

From: Hans de Goede <hdegoede@redhat.com>

add gamma correction to the video processing, and enable it by default
(correct for a display gamma of 1.5) for pac207 based cams.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Fix a few small issues with V4L2_CTRL_FLAG_NEXT_CTRL handling
hans@rhel5-devel.localdomain [Mon, 25 May 2009 18:59:10 +0000 (20:59 +0200)]
libv4l: Fix a few small issues with V4L2_CTRL_FLAG_NEXT_CTRL handling

From: Hans de Goede <hdegoede@redhat.com>

libv4l: Fix a few small issues with V4L2_CTRL_FLAG_NEXT_CTRL handling

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Obsolete the V4L2_ENABLE_ENUM_FMT_EMULATION v4l2_fd_open flag
hans@rhel5-devel.localdomain [Mon, 25 May 2009 13:35:21 +0000 (15:35 +0200)]
libv4l: Obsolete the V4L2_ENABLE_ENUM_FMT_EMULATION v4l2_fd_open flag

From: Hans de Goede <hdegoede@redhat.com>

The V4L2_ENABLE_ENUM_FMT_EMULATION v4l2_fd_open flag is obsolete, libv4l2
now *always* reports emulated formats through the ENUM_FMT ioctl

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add software autogain / exposure
hans@rhel5-devel.localdomain [Mon, 25 May 2009 13:25:15 +0000 (15:25 +0200)]
libv4l: add software autogain / exposure

From: Hans de Goede <hdegoede@redhat.com>

Add software autogain / exposure, for camera's which have gain and
exposure controls but do not contain the ability to calculate the average
lumination in hardware (which is needed to do this in the kernel). This
patch enables this for the spca561 rev12a, but it should be usefull for
other cameras too.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add support for adding black borders (reverse cropping)
hans@rhel5-devel.localdomain [Fri, 22 May 2009 09:40:31 +0000 (11:40 +0200)]
libv4l: add support for adding black borders (reverse cropping)

From: Hans de Goede <hdegoede@redhat.com>

Add the capability to provide 320x240 to apps if the cam can only
do 320x232 (some zc3xx cams) by adding black borders. And more in
general the capability to make certain standard resolutions available
by adding black borders to slightly smaller resolutions, in case we
encounter more cams which have a hardware limitation which makes them do
a resolution slightly smaller then the standard ones.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: better handling of the V4L2_DISABLE_CONVERSION flag
hans@rhel5-devel.localdomain [Thu, 21 May 2009 20:34:25 +0000 (22:34 +0200)]
libv4l: better handling of the V4L2_DISABLE_CONVERSION flag

From: Hans de Goede <hdegoede@redhat.com>

libv4l: better handling of the V4L2_DISABLE_CONVERSION flag

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: fix detection of conversion mode in v4l2_buffers_mapped()
hans@localhost.localdomain [Thu, 21 May 2009 14:49:03 +0000 (16:49 +0200)]
libv4l: fix detection of conversion mode in v4l2_buffers_mapped()

From: Hans de Goede <hdegoede@redhat.com>

libv4l: fix detection of conversion mode in v4l2_buffers_mapped()

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: Do not set format for control applications
hans@localhost.localdomain [Thu, 21 May 2009 14:20:32 +0000 (16:20 +0200)]
libv4l: Do not set format for control applications

From: Hans de Goede <hdegoede@redhat.com>

When we must do conversion (as we want todo flipping / processing) and
the cam does not default to a supported dest format, we set the emulated
format to rgb24, wait with doing this till the app actually does something
format related, otherwise control applications like v4l2ucp used to
become the stream owner locking out other apps.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: rewrite video processing code
hans@localhost.localdomain [Thu, 21 May 2009 11:08:29 +0000 (13:08 +0200)]
libv4l: rewrite video processing code

From: Hans de Goede <hdegoede@redhat.com>

Rewrite video processing code to make it easier to add more video filters
(and with little extra processing cost). As part of this the normalize
filter has been removed as it wasn't functioning satisfactory anyways

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: add fake controls controlling the software h- and v-flipping
hans@rhel5-devel.localdomain [Wed, 20 May 2009 05:23:00 +0000 (07:23 +0200)]
libv4l: add fake controls controlling the software h- and v-flipping

From: Hans de Goede <hdegoede@redhat.com>

When we need to go through the fake mmap buffer anyways, we can add
fake controls at no cost. So in the case of webcams which only
support non standard pixformats, export fake flipping controls, as this
can be done at no (performace) cost (until the user activates them).

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
15 years agolibv4l: support separate vfliping and hfliping
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>
15 years agolibv4l: add Changelog entry for last 3 commits
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>
15 years agolibv4l: fix v4lconvert_uyvy_to_yuv420()
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>
15 years agolibv4l: add ability to determine flags based on DMI info
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>
15 years agolibv4l: Support V4L2_CTRL_FLAG_NEXT_CTRL for fake controls
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>
15 years agolibv4l: Add sq905 to the list of devices which benefit from whitebalancing
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>
15 years agolibv4l: add missing Libs.private to v4lconvert.pc
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>
15 years agolibv4l: Only created shared memory segment when we have fake v4l2 controls
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>
15 years agolibv4l: if the card name contains a / replace it with a - in the shm name
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>
15 years agolibv4l: Makefiles: better dependency generation
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>
15 years agolibv4l: link libv4lcontrol against rt, not libv4l2
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>
15 years agolibv4l: genius messenger 112 needs both upside down and whitebalance flags.
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>
15 years agolibv4l: 0.9.97 release
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>
15 years agolibv4l: Don't add "fake" controls when not doing conversion
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>
15 years agolibv4l: crop widths to the nearest multiple of 8 when converting to YUV420
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>
15 years agolibv4l: fix reading wrong memory when doing yuv420->rgb conversion
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>