summaryrefslogtreecommitdiff
path: root/v4l2-apps/util/v4l2-ctl.cpp
AgeCommit message (Collapse)Author
2009-08-26v4l2-ctl: add support for enumerating frame sizes and intervalsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-08-02v4l2-ctl: add support for string controlsMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Add support for string controls to v4l2-ctl. Also refactor the code to generalize the handling of control classes. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-02v4l2-ctl: modulator bug fixesMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Setting the modulator did not take all txsubchans combinations and the correct V4L2_TUNER_CAP_LOW into account (it used V4L2_TUNER_CAP_LOW from G_TUNER instead of G_MODULATOR). Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-07v4l2-ctl: fix get/set-parm bugs and add get/set-output-parm supportHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fixed several get/set-parm bugs, cleaned it up a bit and reformatted the output to conform to the output of the other get options. Implemented get/set-output-parm to complete the VIDIOC_G/S_PARM support. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-08-07v4l2-ctl: fix help messageMauro Carvalho Chehab
From: hermann pitton <hermann-pitton@arcor.de> For -p (--set-parm) v4l2-ctl also prints G_PARMS too. -P, --get-parm display video parameters [VIDIOC_G_PARMS] -p, --set-parm set video rate in fps [VIDIOC_G_PARMS] Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-06v4l2-ctl: Add support for VIDIOC_[G|S]_PARMMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Those ioctls are used to control streaming frame rate. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-20merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-rdsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-20v4l2-ctl: fix broken camera control support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> v4l2-ctl didn't properly support the camera controls. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-06-20v4l2-ctl: support new RDS and modulator caps.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-07-10merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-rdsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-20v4l2-ctl: update to the latest RDS spec.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-06-14v4l2-ctl: add modulator get/set options.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-02-20v4l2-apps: clean up the output for g_jpegcomp a bit.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2009-02-20v4l2-ctl: add get/set-jpeg-comp support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-12-06v4l2-ctl: List device links as suchHans Verkuil
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>
2008-09-07v4l2-ctl: add --list-devices optionHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-09-06v4l2-ctl: improve fmt handlingHans Verkuil
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>
2008-09-05v4l2-ctl: improve error reportingHans Verkuil
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>
2008-08-19v4l2-ctl: merge strings in the usage messageHans Verkuil
From: Jean Delvare <khali@linux-fr.org> Function calls aren't cheap. By merging the strings printed by the usage() function, we reduce the number of times printf (or actually puts) is called, from 121 to only 4. This makes usage() about twice as fast as before, and also shrinks the binary size a bit (4 kB). Priority: normal Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-19v4l2-ctl: added support to set the pixelformatHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-28v4l2-ctl: show name and afc when calling VIDIOC_G_TUNERHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-08-04v4l2-dbg/v4l2-ctl: fix buffer overrun.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-26v4l2-ctl: fix find_controls when dealing with old-style controls.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> 'v4l2-ctl -C contrast' would not show the control description. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-23v4l2-apps: fixes for compile warnings/errorsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> - clean up capture_example.c (bad codingstyle and compile warnings) - fix some headers without trailing newline - fix compile warnings in v4l2-ctl.cpp and v4l2-dbg.cpp - fix qv4l2 __stack_chk_fail_local compile error that occurs on some distros (ubuntu) - fix some Makefile clean up rules Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-06-29v4l2-ctl: improve handling of control names with non-alnum charsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-06-27v4l2-ctl: fix bug in --set-standardHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> --set-standard allows you to set a standard index corresponding to what ENUMSTD returns. But this clashes when you specify a standard whose ID is very small, like PAL-BG. Then the utility thinks you specified a standard index and will select the wrong standard. Fixed by using a flag to mark that the standard actually is a standard and not a standard index. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-05-24v4l2-ctl: return errors as the program resultHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> If an error occurs, then the program now returns an error. Also did a few cleanups. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-20v4l2-ctl: fix minor inconsistency regarding INTEGER64 handling.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-19v4l2-ctl: fix --get-sliced-vbi(-out)-cap.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Wrong buffer type was set, causing EINVAL to be returned. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-10-14v4l2-ctl: fix usage message.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-08-20v4l2-ctl: add VIDIOC_OVERLAY support.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-07-31videodev2.h: remove superfluous FBUF GLOBAL_INV_ALPHA supportHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> There is no need for a global inverted alpha capability since all the application has to do is to pass '255-alpha' as the global alpha value. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-06-04Add inverted alpha support to v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-06-02Clean up formatting of v4l2-ctl output.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-29Add full crop/cropcap support to v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> - Remove last use of V4L2_CAP_VIDEO_OUTPUT_POS from v4l2-ctl and v4l2-dbg. - Add VIDIOC_CROPCAP support to v4l2-ctl. - Extend VIDIOC_G/S_CROP support for other buffers besides video capture in v4l2-ctl. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-21Backed out changeset c7cb1aaec112a3ee7d6483b54d03d6a093754f10Hans Verkuil
2007-05-19Use v4l2_pix_out_fmt instead of v4l2_pix_fmt for video output formatHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Adding top/left fields to v4l2_pix_fmt broke the ABI. To fix this a new v4l2_pix_out_fmt struct was introduced to specify the video output format. This new struct *does* have the additional top/left fields. The V4L2_CAP_VIDEO_OUTPUT_POS capability that was introduced is no longer needed and is removed. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-05-17Fix v4l2-ctl: comment out top/left usageHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The patch that broke the ABI was reverted. Also revert the changes in v4l2-ctl that used that new functionality. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-26Show v4l2_framebuffer Base address in v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-25Add v4l2-ctl support for output overlays and framebuffer ioctls.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-18Use strtol instead of atol to parse the value for a control.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Setting the VIDEO_MUTE control works much better if you can enter a hexadecimal value. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2007-02-04Forgot to test against V4L2_CTRL_FLAG_DISABLEDHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-12-11Add missing PAL-60 standard to v4l2-ctl -s optionHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-11-12Print buffer type for struct v4l2_sliced_vbi_cap.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> This was commented out because the type was missing in v4l2_sliced_vbi_cap. It's now added, so this can now be used. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-11-12Improve usage message and short options for v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Several uncommon actions had a short option, while some common actions only had a long option. Reorganized this. Also split the usage message in common and uncommon options. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-10-26Fix incorrect usage line in v4l2-ctlHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The usage line for the -t option was wrong. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-10-12Add VIDIOC_ENUM_FMT support to v4l2-ctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-09-01Add cropping support to v4l2-ctl, set buf_type in sliced_vbi_cap query.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> VIDIOC_S/G_CROP is now handled by v4l2-ctl. The v4l2_buf_type is now filled in in VIDIOC_G_SLICED_VBI_CAP. Several test tools now compile when v4l1 API is disabled. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-08-25Bug fix (-C didn't work).Hans Verkuil
Lots of new options for VIDIOC_S/G_FMT and other ioctls.
2006-07-01Move qv4l2 and v4l2-ctl to from test to utilHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>