beautypg.com

Vidioc_g_jpegcomp, vidioc_s_jpegcomp, Vidioc_enum_input, vidioc_g_input, vidioc_s_input – Sensoray 2253 Linux User Manual

Page 17

background image

VIDIOC_G_JPEGCOMP, VIDIOC_S_JPEGCOMP

int ioctl(int fd, int request, v4l2_jpegcompression *jc);
jc->quality

Integer range 10 to 90. The default is 75.

V4L2_PIX_FMT_MJPEG must be selected.

VIDIOC_ENUM_INPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT

int ioctl(int fd, int request, struct v4l2_input *inp);
There is only one input at index 0, named “Composite”.
The inp->status field may have the bit V4L2_IN_ST_NO_H_LOCK set if the

device was unable to lock the input video signal.

VIDIOC_ENUM_OUTPUT, VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT

int ioctl(int fd, int request, struct v4l2_output *inp);
There is only one output at index 0, named “Composite”.

VIDIOC_QUERYCTRL, VIDIOC_G_CTRL, VIDIOC_S_CTRL,
VIDIOC_TRY_EXT_CTRLS, VIDIOC_G_EXT_CTRLS,
VIDIOC_S_EXT_CTRLS

int ioctl(int fd, int request, struct v4l2_ext_controls *ctrls);
When using VIDIOC_G_CTRL or VIDIOC_S_CTRL,
or ctrls->ctrl_class == V4L2_CTRL_CLASS_USER,
the supported ctrls->controls id identifiers and values are:

V4L2_CID_BRIGHTNESS

:

0 to 255, default 128. Capture only.

V4L2_CID_CONTRAST: 0 to 255, default 128. Capture only.

V4L2_CID_SATURATION: 0 to 255, default 128. Capture only.

V4L2_CID_HUE: -128 to 128, default 0. Capture only.

V4L2_CID_AUDIO_VOLUME: 0 to 119 for capture, 0 to 117 for output.

V4L2_CID_AUDIO_BALANCE: -100 to 100, default 0.

V4L2_CID_HFLIP: boolean horizontal flip, default 0. Capture only.

17

This manual is related to the following products: