platform/upstream/v4l-utils.git
12 years agoutils/dvb: Whitespace cleanup
Mauro Carvalho Chehab [Tue, 3 Jan 2012 00:08:50 +0000 (22:08 -0200)]
utils/dvb: Whitespace cleanup

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix a typo
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:42:12 +0000 (09:42 -0200)]
utils/dvb: Fix a typo

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Improve output data
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:24:46 +0000 (09:24 -0200)]
utils/dvb: Improve output data

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Don't print get_frontend props twice
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:23:58 +0000 (09:23 -0200)]
utils/dvb: Don't print get_frontend props twice

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Print the results of get_frontend after getting a lock
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:18:42 +0000 (09:18 -0200)]
utils/dvb: Print the results of get_frontend after getting a lock

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add support for get_frontend call
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:12:11 +0000 (09:12 -0200)]
utils/dvb: add support for get_frontend call

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: improve ISDB-T usage
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:08:35 +0000 (09:08 -0200)]
utils/dvb: improve ISDB-T usage

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Allow forcing a DVBv3 call
Mauro Carvalho Chehab [Sun, 1 Jan 2012 13:57:22 +0000 (11:57 -0200)]
utils/dvb: Allow forcing a DVBv3 call

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rename util.? to dvb-demux.?
Mauro Carvalho Chehab [Thu, 29 Dec 2011 21:15:42 +0000 (19:15 -0200)]
utils/dvb: Rename util.? to dvb-demux.?

util is a very bad name. Use something more meaningful.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: rename dvbzap.c to dvbv5-zap.c
Mauro Carvalho Chehab [Thu, 29 Dec 2011 21:10:41 +0000 (19:10 -0200)]
utils/dvb: rename dvbzap.c to dvbv5-zap.c

Use a better name, as maybe there are some other tools with the
same or a similar name.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: properly support ATSC
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:42:14 +0000 (17:42 -0200)]
utils/dvb: properly support ATSC

Change the delivery system for cable.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: don't change the delivery system
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:37:55 +0000 (17:37 -0200)]
utils/dvb: don't change the delivery system

The delivery system should not be changed, otherwise, it will
force it to be one of the 4 DVBv3 supported ones.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a new format to support all DVBv5 delivery systems
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:34:38 +0000 (17:34 -0200)]
utils/dvb: Add a new format to support all DVBv5 delivery systems

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Allow passing a FILE * parameter to dvb_fe_prt_parms
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:05:34 +0000 (17:05 -0200)]
utils/dvb: Allow passing a FILE * parameter to dvb_fe_prt_parms

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Remove some unused headers
Mauro Carvalho Chehab [Thu, 29 Dec 2011 18:11:43 +0000 (15:11 -0300)]
utils/dvb: Remove some unused headers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix coding style and add copyright notes
Mauro Carvalho Chehab [Thu, 29 Dec 2011 18:03:21 +0000 (15:03 -0300)]
utils/dvb: Fix coding style and add copyright notes

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix a few bugs on parsing zap format
Mauro Carvalho Chehab [Thu, 29 Dec 2011 17:53:27 +0000 (14:53 -0300)]
utils/dvb: Fix a few bugs on parsing zap format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Convert dvbzap to use the new parser
Mauro Carvalho Chehab [Thu, 29 Dec 2011 17:25:14 +0000 (14:25 -0300)]
utils/dvb: Convert dvbzap to use the new parser

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for parsing zap format
Mauro Carvalho Chehab [Thu, 29 Dec 2011 16:00:16 +0000 (13:00 -0300)]
utils/dvb: Add support for parsing zap format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a generic parser for channel/pid formats
Mauro Carvalho Chehab [Thu, 29 Dec 2011 14:27:35 +0000 (11:27 -0300)]
utils/dvb: Add a generic parser for channel/pid formats

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix ATSC/DVBC Annex B properties
Mauro Carvalho Chehab [Thu, 29 Dec 2011 08:54:02 +0000 (05:54 -0300)]
utils/dvb: Fix ATSC/DVBC Annex B properties

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: make it work with DVBv5 calls for ISDB-T
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:33:31 +0000 (20:33 -0300)]
utils/dvb: make it work with DVBv5 calls for ISDB-T

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix tuning issues
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:33:20 +0000 (20:33 -0300)]
utils/dvb: Fix tuning issues

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Store file descriptor at parms->fd
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:20:59 +0000 (20:20 -0300)]
utils/dvb: Store file descriptor at parms->fd

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Whitespacing cleanup
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:08:32 +0000 (20:08 -0300)]
utils/dvb: Whitespacing cleanup

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix bandwidth handling
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:07:42 +0000 (20:07 -0300)]
utils/dvb: Fix bandwidth handling

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: The logic there were inverted. Fix it
Mauro Carvalho Chehab [Wed, 28 Dec 2011 22:56:44 +0000 (19:56 -0300)]
utils/dvb: The logic there were inverted. Fix it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Print parameters with their names and not as integer
Mauro Carvalho Chehab [Wed, 28 Dec 2011 20:27:01 +0000 (17:27 -0300)]
utils/dvb: Print parameters with their names and not as integer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: convert to use DVBv5 FE library
Mauro Carvalho Chehab [Wed, 28 Dec 2011 13:44:10 +0000 (10:44 -0300)]
utils/dvb: convert to use DVBv5 FE library

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: util doesn't need to know about frontend
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:51:55 +0000 (09:51 -0300)]
utils/dvb: util doesn't need to know about frontend

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: remove a few warnings
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:51:17 +0000 (09:51 -0300)]
utils/dvb: remove a few warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: remove a few warnings
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:50:00 +0000 (09:50 -0300)]
utils/dvb: remove a few warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rename tzap to dvbzap
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:49:22 +0000 (09:49 -0300)]
utils/dvb: Rename tzap to dvbzap

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add tzap from dvb-apps
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:29:18 +0000 (09:29 -0300)]
utils/dvb: Add tzap from dvb-apps

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Start adding options to get/set params
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:28:59 +0000 (09:28 -0300)]
utils/dvb: Start adding options to get/set params

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for DTV_ENUM_DELSYS
Mauro Carvalho Chehab [Tue, 27 Dec 2011 11:24:00 +0000 (08:24 -0300)]
utils/dvb: Add support for DTV_ENUM_DELSYS

Instead of doing some weird probe logic, just call the new cmd,
and all supported delivery systems should be reported.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Update headers to DVB API v5.5
Mauro Carvalho Chehab [Tue, 27 Dec 2011 10:14:26 +0000 (07:14 -0300)]
utils/dvb: Update headers to DVB API v5.5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: The current FE userspace is just a test tool. Rename it
Mauro Carvalho Chehab [Wed, 9 Nov 2011 18:18:32 +0000 (16:18 -0200)]
utils/dvb: The current FE userspace is just a test tool. Rename it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix for ATSC legacy drivers
Mauro Carvalho Chehab [Mon, 24 Oct 2011 03:57:05 +0000 (05:57 +0200)]
utils/dvb: Fix for ATSC legacy drivers

ATSC legacy drivers emulation is currently somewhat broken. Changing
the delivery systems on those devices don't work. So, a hack is needed
here, in order to make it to properly detect the delivery systems,
based at the FE properties.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add options to select adapter/frontend/verbose
Mauro Carvalho Chehab [Mon, 24 Oct 2011 03:11:31 +0000 (05:11 +0200)]
utils/dvb: add options to select adapter/frontend/verbose

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Don't handle DVB-S2/T2 if version is bellow v5
Mauro Carvalho Chehab [Wed, 9 Nov 2011 13:17:37 +0000 (11:17 -0200)]
utils/dvb: Don't handle DVB-S2/T2 if version is bellow v5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add some comments about the API and what is missing there
Mauro Carvalho Chehab [Sun, 9 Oct 2011 11:26:42 +0000 (08:26 -0300)]
utils/dvb: Add some comments about the API and what is missing there

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement stats functions
Mauro Carvalho Chehab [Sun, 9 Oct 2011 11:11:04 +0000 (08:11 -0300)]
utils/dvb: Implement stats functions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement SEC/LNB/DISEqC functions
Mauro Carvalho Chehab [Sun, 9 Oct 2011 10:11:41 +0000 (07:11 -0300)]
utils/dvb: Implement SEC/LNB/DISEqC functions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement get_status/get_event
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:43:38 +0000 (06:43 -0300)]
utils/dvb: Implement get_status/get_event

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rearrange functions on a more logical structure
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:22:57 +0000 (06:22 -0300)]
utils/dvb: Rearrange functions on a more logical structure

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Split API from the main file
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:13:44 +0000 (06:13 -0300)]
utils/dvb: Split API from the main file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add a prototype for a dvb scan based on APIv5
Mauro Carvalho Chehab [Sat, 8 Oct 2011 19:40:50 +0000 (16:40 -0300)]
utils/dvb: add a prototype for a dvb scan based on APIv5

For now, it does nothing but get device capabilities, and
identify the supported delivery systems.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add the remaining parameters for Satellite delivery systems
Mauro Carvalho Chehab [Sat, 8 Oct 2011 17:45:58 +0000 (14:45 -0300)]
utils/dvb: Add the remaining parameters for Satellite delivery systems

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add definitions for all dvb standards
Mauro Carvalho Chehab [Sat, 8 Oct 2011 17:16:42 +0000 (14:16 -0300)]
utils/dvb: Add definitions for all dvb standards

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Generate a header describing the DVBv5 frontend API
Mauro Carvalho Chehab [Sat, 8 Oct 2011 16:13:33 +0000 (13:13 -0300)]
utils/dvb: Generate a header describing the DVBv5 frontend API

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibv4l: Add 90 degrees rotated JPEG quirk for 145f:013c
Hans de Goede [Fri, 30 Dec 2011 22:13:51 +0000 (23:13 +0100)]
libv4l: Add 90 degrees rotated JPEG quirk for 145f:013c

Reported by: Grzegorz Woźniak

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: Improve jl2005bcd conversion code error reporting and handling
Hans de Goede [Thu, 29 Dec 2011 20:42:27 +0000 (21:42 +0100)]
libv4l: Improve jl2005bcd conversion code error reporting and handling

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoImproved JL2005BCD patch for libv4lcnvert
Theodore Kilgore [Fri, 16 Dec 2011 19:53:03 +0000 (13:53 -0600)]
Improved JL2005BCD patch for libv4lcnvert

Hans,

The patch below supercedes the previous one I sent.

Two particular items of interest:

1. The Bayer tiling question seems to be resolved.

2. White balance is enabled and seems to help a lot. I am not certain if
one ought to enable a gamma setting as well, but things look pretty decent
without it, seems to me.

Other remarks:

It is pretty clear that these cameras have an internal gain setting which
relies upon internal feedback for self-correction. It works pretty well
most of the time, but sometimes it overcorrects and thereby goes a little
bit crazy.

I have tried it out with a bunch of cameras now. I did not check
individually which one is which, but I have a fairly large set of them
which includes the B and C and D variants, and some of the fancy ones have
the LCD previewer on the back but definitely do not send preview
thumbnails in webcam mode. So all of them seem to work. I would dare to
presume that your camera will work, too, whenever you get around to
checking it.

Patch below created by git diff from my recently downloaded git tree, as
was the last one. Patch is

Signed-off-by Theodore Kilgore <kilgota@auburn.edu>

12 years agoparse_tm6000.pl: Fix permissions
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:42:54 +0000 (10:42 -0200)]
parse_tm6000.pl: Fix permissions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tm6000.pl: Improve script and fix a few bugs
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:40:29 +0000 (10:40 -0200)]
parse_tm6000.pl: Improve script and fix a few bugs

Add support for GPIO and req4 handling, and fix a few bugs at
the decoding logic (read or write identification on some tests).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tm6000.pl: Add a simple parser for tm6000 registers
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:18:18 +0000 (10:18 -0200)]
parse_tm6000.pl: Add a simple parser for tm6000 registers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agokeytable: Syncronize with latest development kernel
Mauro Carvalho Chehab [Wed, 23 Nov 2011 21:49:25 +0000 (19:49 -0200)]
keytable: Syncronize with latest development kernel

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agokeytable: Add support for Sanyo IR protocol
Mauro Carvalho Chehab [Wed, 23 Nov 2011 21:29:37 +0000 (19:29 -0200)]
keytable: Add support for Sanyo IR protocol

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tcpdump_log.pl: die nicely on pcap
Mauro Carvalho Chehab [Tue, 26 Jul 2011 13:09:44 +0000 (10:09 -0300)]
parse_tcpdump_log.pl: die nicely on pcap

Handles common kill signals, to close pcap capture nicely.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tcpdump_log.pl: Add an option to show that bulk/isoc xfers happened
Mauro Carvalho Chehab [Tue, 26 Jul 2011 12:06:41 +0000 (09:06 -0300)]
parse_tcpdump_log.pl: Add an option to show that bulk/isoc xfers happened

This is not really a parser for bulk/isoc, but it helps to see where,
in the stream, the xfers started to occur.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_az6007.pl: Some enhancements for the tool
Mauro Carvalho Chehab [Tue, 26 Jul 2011 12:02:10 +0000 (09:02 -0300)]
parse_az6007.pl: Some enhancements for the tool

- Add an option to ease writing a script to producing DRX-K firmware from
  the parsed logs: it disables register name translation and make everything
  look like a block write;
- Fixes a few reqs name for az6007 to match the changes I'm doing at the
  driver;
- Rename the az6007 read/write function at the dumps (also to match the
  driver changes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agocapture-example: fix compile warning
Hans Verkuil [Mon, 21 Nov 2011 10:26:08 +0000 (11:26 +0100)]
capture-example: fix compile warning

capture-example.c:418:15: warning: unused variable ‘min’ [-Wunused-variable]

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: make sure to reset bytesperline.
Hans Verkuil [Fri, 18 Nov 2011 13:48:07 +0000 (14:48 +0100)]
qv4l2: make sure to reset bytesperline.

If bytesperline > width * bpp, then qv4l2 can't handle that situation correctly,
partially due to missing support for this in qv4l2, partially due to missing
support for this in libv4lconvert.

So before starting capturing, call s_fmt with bytesperline 0 and use whatever
the driver returns.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: changing inputs may change available stds and presets.
Hans Verkuil [Fri, 18 Nov 2011 09:20:12 +0000 (10:20 +0100)]
qv4l2: changing inputs may change available stds and presets.

Update the standard and preset lists when the user changes the input.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4l: make software autowhitebalance converge faster
Hans de Goede [Wed, 2 Nov 2011 13:05:33 +0000 (14:05 +0100)]
libv4l: make software autowhitebalance converge faster

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoAllow to configure per library subdirectories for helpers.
Gregor Jasny [Mon, 31 Oct 2011 13:23:41 +0000 (14:23 +0100)]
Allow to configure per library subdirectories for helpers.

In Debian (and Ubuntu) libv4lconvert is moved into it's own
library package due to the SONAME bump. The policy requires
that subdirectories beneath /usr/lib needs to be named after
the package name to allow older and newer package versions
installed side by side.

This patch adds the possibility to specify the subdirectories
separately for libv4lconvert, libv4l1 and libv4l2.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
12 years agolibv4l: update upside down device table
Hans de Goede [Fri, 21 Oct 2011 20:03:09 +0000 (22:03 +0200)]
libv4l: update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: Update upside down device table
Hans de Goede [Sun, 16 Oct 2011 14:45:04 +0000 (16:45 +0200)]
libv4l: Update upside down device table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: handle some ioctls changing the format as a side effect
Hans de Goede [Fri, 7 Oct 2011 07:54:24 +0000 (09:54 +0200)]
libv4l: handle some ioctls changing the format as a side effect

Some ioctls may change the devices fmt as a side effect, handle this properly.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l2: Move s_fmt handling code into a helper function
Hans de Goede [Fri, 7 Oct 2011 07:18:39 +0000 (09:18 +0200)]
libv4l2: Move s_fmt handling code into a helper function

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l2: Fix shadowing declaration of saved_err
Hans de Goede [Fri, 7 Oct 2011 07:19:41 +0000 (09:19 +0200)]
libv4l2: Fix shadowing declaration of saved_err

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoqv4l2: 'Set Defaults' incorrectly initialized string controls.
Hans Verkuil [Fri, 14 Oct 2011 10:14:36 +0000 (12:14 +0200)]
qv4l2: 'Set Defaults' incorrectly initialized string controls.

The wrong QString constructor was used: the 'size' comes before the
character, not the other way around.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: improve audmode checks.
Hans Verkuil [Wed, 12 Oct 2011 10:15:47 +0000 (12:15 +0200)]
v4l2-compliance: improve audmode checks.

What drivers should return as audmode isn't as ambiguous as I thought.
So implement the proper checks.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add another fixme to the list.
Hans Verkuil [Tue, 11 Oct 2011 09:15:49 +0000 (11:15 +0200)]
v4l2-compliance: add another fixme to the list.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4lgrab: Add a notice on its source that this utility is legacy
Mauro Carvalho Chehab [Sat, 8 Oct 2011 10:44:01 +0000 (07:44 -0300)]
v4lgrab: Add a notice on its source that this utility is legacy

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix compilation when libraries are statically compiled
Mauro Carvalho Chehab [Sat, 8 Oct 2011 10:39:58 +0000 (07:39 -0300)]
Fix compilation when libraries are statically compiled

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoMove -ldl -ljpeg to the files that actually need it
Mauro Carvalho Chehab [Sat, 8 Oct 2011 09:49:32 +0000 (06:49 -0300)]
Move -ldl -ljpeg to the files that actually need it

This avoids creating extra dependencies on other files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd support to disable libv4l and/or v4l-utils
Mauro Carvalho Chehab [Thu, 6 Oct 2011 17:02:54 +0000 (14:02 -0300)]
Add support to disable libv4l and/or v4l-utils

Add some autogen magic to allow disabling the compilation of
v4l-utils or libv4l.

If libv4l is disabled but v4l-utils is enabled, it will still
build libv4l statically, and will linkedit the v4l-utils against
the static libraries.

This way distributions can ship v4l-utils on a separate package
from libv4l, and even having things like providing a v4l-utils
based on a different version of libv4l.

This changeset also opens space to add more libraries and other
packages, as the first step to turn it into a media-utils tree.

While here, adds a v4l-utils.spec rpm file, as found on Fedora.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agov4l2-ctl: add support for the frame_sync event.
Hans Verkuil [Fri, 7 Oct 2011 06:37:11 +0000 (08:37 +0200)]
v4l2-ctl: add support for the frame_sync event.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: support querying TV standard and video presets.
Hans Verkuil [Fri, 7 Oct 2011 06:33:18 +0000 (08:33 +0200)]
qv4l2: support querying TV standard and video presets.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: add more 'fixmes' to the list.
Hans Verkuil [Fri, 7 Oct 2011 06:32:18 +0000 (08:32 +0200)]
v4l2-compliance: add more 'fixmes' to the list.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.
Hans Verkuil [Fri, 7 Oct 2011 06:31:03 +0000 (08:31 +0200)]
qv4l2: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-ctl: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.
Hans Verkuil [Fri, 7 Oct 2011 06:30:34 +0000 (08:30 +0200)]
v4l2-ctl: add support for the new V4L2_CTRL_FLAG_VOLATILE flag.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoUpdate videodev2.h to latest version.
Hans Verkuil [Fri, 7 Oct 2011 06:29:58 +0000 (08:29 +0200)]
Update videodev2.h to latest version.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agolibv4l: Fix sorting of upside down device list
Hans de Goede [Thu, 15 Sep 2011 08:48:42 +0000 (10:48 +0200)]
libv4l: Fix sorting of upside down device list

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l2: Don't try to do capture ioctls / conversion on non capture devices
Hans de Goede [Wed, 14 Sep 2011 18:20:11 +0000 (20:20 +0200)]
libv4l2: Don't try to do capture ioctls / conversion on non capture devices

Now that we also actively wrap non capture devices to allow using
plugins with them, we should make sure to not do things like G_FMT
with type == V4L2_BUF_TYPE_VIDEO_CAPTURE on them, or to try to do
any sort of conversion related things in general.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: update upside down webcam table
Hans de Goede [Tue, 13 Sep 2011 21:16:32 +0000 (23:16 +0200)]
libv4l: update upside down webcam table

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l2: Set errno to EIO if getting 4 consecutive EAGAIN convert errors
Hans de Goede [Tue, 9 Aug 2011 09:36:15 +0000 (11:36 +0200)]
libv4l2: Set errno to EIO if getting 4 consecutive EAGAIN convert errors

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4lconvert: retry with another frame on JPEG header decode errors
Hans de Goede [Tue, 9 Aug 2011 09:14:54 +0000 (11:14 +0200)]
libv4lconvert: retry with another frame on JPEG header decode errors

Some cameras (quantas based ones) sometimes (1 every 100 frames or so)
send a frame with a corrupt header. This patch changes libv4lconvert's
behavior on JPEG header decode errors to return EAGAIN, which will
make libv4l2 get another frame and try decoding that (up to 4 times).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agov4l2-compliance: fix a VIDIOC_S_STD test
Hans Verkuil [Tue, 30 Aug 2011 10:59:22 +0000 (12:59 +0200)]
v4l2-compliance: fix a VIDIOC_S_STD test

One S_STD test needed to test against ENOTTY as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add 'Show frames' to the toolbar.
Hans Verkuil [Tue, 30 Aug 2011 08:14:13 +0000 (10:14 +0200)]
qv4l2: add 'Show frames' to the toolbar.

This option turns out to be quite useful for testing, so add it to the
toolbar.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agov4l2-compliance: fix incorrect std check.
Hans Verkuil [Mon, 29 Aug 2011 11:14:35 +0000 (13:14 +0200)]
v4l2-compliance: fix incorrect std check.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add the missing video-television.png icon.
Hans Verkuil [Mon, 22 Aug 2011 13:30:38 +0000 (15:30 +0200)]
qv4l2: add the missing video-television.png icon.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: changing the preset/std should also update the format.
Hans Verkuil [Mon, 22 Aug 2011 13:28:06 +0000 (15:28 +0200)]
qv4l2: changing the preset/std should also update the format.

And as a bonus fix the interval combobox was not disabled when it should.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: fix a segfault in a corner case.
Hans Verkuil [Thu, 18 Aug 2011 13:59:03 +0000 (15:59 +0200)]
qv4l2: fix a segfault in a corner case.

With the new 'Show frames' feature the m_capImage pointer must now be set to
NULL after delete. It used to be that it was always 'new'ed again, but that's
no longer true.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: add a menu option to turn off the Capture window.
Hans Verkuil [Thu, 18 Aug 2011 13:43:47 +0000 (15:43 +0200)]
qv4l2: add a menu option to turn off the Capture window.

Converting frames into a format suitable for displaying can take time.
If you just want to test the framerate of the capture device then it is
useful to be able to just capture without doing any format conversions
and displaying the frames.

Add a new option in the menu to do just this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: give the capture window a proper name.
Hans Verkuil [Thu, 18 Aug 2011 12:39:07 +0000 (14:39 +0200)]
qv4l2: give the capture window a proper name.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: mention if a format is emulated.
Hans Verkuil [Thu, 18 Aug 2011 12:36:50 +0000 (14:36 +0200)]
qv4l2: mention if a format is emulated.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
12 years agoqv4l2: when capturing show the frame and fps in both windows.
Hans Verkuil [Thu, 18 Aug 2011 12:29:09 +0000 (14:29 +0200)]
qv4l2: when capturing show the frame and fps in both windows.

Helps when testing 1080p streams to have it in both places.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>