0cc961440b
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>
24 lines
501 B
Plaintext
24 lines
501 B
Plaintext
V4L2_CAP_VIDEO_CAPTURE
|
|
V4L2_CAP_VIDEO_OUTPUT
|
|
V4L2_CAP_VIDEO_OVERLAY
|
|
V4L2_CAP_VBI_CAPTURE
|
|
V4L2_CAP_VBI_OUTPUT
|
|
V4L2_CAP_SLICED_VBI_CAPTURE
|
|
V4L2_CAP_SLICED_VBI_OUTPUT
|
|
V4L2_CAP_RDS_CAPTURE
|
|
V4L2_CAP_VIDEO_OUTPUT_OVERLAY
|
|
V4L2_CAP_HW_FREQ_SEEK
|
|
V4L2_CAP_RDS_OUTPUT
|
|
V4L2_CAP_VIDEO_CAPTURE_MPLANE
|
|
V4L2_CAP_VIDEO_OUTPUT_MPLANE
|
|
V4L2_CAP_VIDEO_M2M
|
|
V4L2_CAP_VIDEO_M2M_MPLANE
|
|
V4L2_CAP_TUNER
|
|
V4L2_CAP_AUDIO
|
|
V4L2_CAP_RADIO
|
|
V4L2_CAP_MODULATOR
|
|
V4L2_CAP_READWRITE
|
|
V4L2_CAP_ASYNCIO
|
|
V4L2_CAP_STREAMING
|
|
V4L2_CAP_DEVICE_CAPS
|