strace/xlat/v4l2_control_ids.in
Philippe De Muyter 0cc961440b Implement Video4Linux video-input ioctls decoder
Introduce v4l2.c, a decoder for the arguments of the video-input subset
of the v4l2 ioctl's.  This is a combination of
- previous work by Peter Zotov <whitequark@whitequark.org>, found at
https://gist.githubusercontent.com/whitequark/1263207/raw/strace-4.6-v4l2-ioctls.patch
- previous work by William Manley <will@williammanley.net>, found at
http://marc.info/?l=strace&m=139395588520675
- forward port, additions and fixes by Philippe De Muyter <phdm@macqel.be>

As v4l2 is a moving target, I have made v4l2.c compilable with ancient
linux kernels by testing the availability of some macros.  It has been
succesfully compiled on linux 3.10, 3.1, 2.6.31 and 2.6.22, and
succesfully used on linux 3.10 with a camera device.

* configure.ac: Check for availabilty of V4L2_* enum constants.
* Makefile.am (strace_SOURCES): Add v4l2.c.
* defs.h (v4l2_ioctl): New prototype.
* ioctl.c (ioctl_decode): Use v4l2_ioctl.
* v4l2.c: New file.
* xlat/v4l2_*.in: New files.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Cc: Peter Zotov <whitequark@whitequark.org>
Cc: William Manley <will@williammanley.net>
2014-11-04 15:27:31 +00:00

78 lines
1.7 KiB
Plaintext

0
V4L2_CID_BRIGHTNESS
V4L2_CID_CONTRAST
V4L2_CID_SATURATION
V4L2_CID_HUE
V4L2_CID_AUDIO_VOLUME
V4L2_CID_AUDIO_BALANCE
V4L2_CID_AUDIO_BASS
V4L2_CID_AUDIO_TREBLE
V4L2_CID_AUDIO_MUTE
V4L2_CID_AUDIO_LOUDNESS
V4L2_CID_BLACK_LEVEL
V4L2_CID_AUTO_WHITE_BALANCE
V4L2_CID_DO_WHITE_BALANCE
V4L2_CID_RED_BALANCE
V4L2_CID_BLUE_BALANCE
V4L2_CID_GAMMA
V4L2_CID_WHITENESS
V4L2_CID_EXPOSURE
V4L2_CID_AUTOGAIN
V4L2_CID_GAIN
V4L2_CID_HFLIP
V4L2_CID_VFLIP
V4L2_CID_HCENTER
V4L2_CID_VCENTER
V4L2_CID_POWER_LINE_FREQUENCY
V4L2_CID_HUE_AUTO
V4L2_CID_WHITE_BALANCE_TEMPERATURE
V4L2_CID_SHARPNESS
V4L2_CID_BACKLIGHT_COMPENSATION
V4L2_CID_CHROMA_AGC
V4L2_CID_CHROMA_GAIN
V4L2_CID_COLOR_KILLER
V4L2_CID_COLORFX
V4L2_CID_COLORFX_CBCR
V4L2_CID_AUTOBRIGHTNESS
V4L2_CID_BAND_STOP_FILTER
V4L2_CID_ROTATE
V4L2_CID_BG_COLOR
V4L2_CID_ILLUMINATORS_1
V4L2_CID_ILLUMINATORS_2
V4L2_CID_MIN_BUFFERS_FOR_CAPTURE
V4L2_CID_MIN_BUFFERS_FOR_OUTPUT
V4L2_CID_ALPHA_COMPONENT
/* Camera class control IDs */
V4L2_CID_EXPOSURE_AUTO
V4L2_CID_EXPOSURE_ABSOLUTE
V4L2_CID_EXPOSURE_AUTO_PRIORITY
V4L2_CID_PAN_RELATIVE
V4L2_CID_TILT_RELATIVE
V4L2_CID_PAN_RESET
V4L2_CID_TILT_RESET
V4L2_CID_PAN_ABSOLUTE
V4L2_CID_TILT_ABSOLUTE
V4L2_CID_FOCUS_ABSOLUTE
V4L2_CID_FOCUS_RELATIVE
V4L2_CID_FOCUS_AUTO
V4L2_CID_ZOOM_ABSOLUTE
V4L2_CID_ZOOM_RELATIVE
V4L2_CID_ZOOM_CONTINUOUS
V4L2_CID_PRIVACY
V4L2_CID_IRIS_ABSOLUTE
V4L2_CID_IRIS_RELATIVE
V4L2_CID_AUTO_EXPOSURE_BIAS
V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE
V4L2_CID_WIDE_DYNAMIC_RANGE
V4L2_CID_IMAGE_STABILIZATION
V4L2_CID_ISO_SENSITIVITY
V4L2_CID_ISO_SENSITIVITY_AUTO
V4L2_CID_EXPOSURE_METERING
V4L2_CID_SCENE_MODE
V4L2_CID_3A_LOCK
V4L2_CID_AUTO_FOCUS_START
V4L2_CID_AUTO_FOCUS_STOP
V4L2_CID_AUTO_FOCUS_STATUS
V4L2_CID_AUTO_FOCUS_RANGE
V4L2_CID_PRIVATE_BASE