Home
last modified time | relevance | path

Searched refs:qctrl (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/media/common/
Dcx2341x.c546 static int cx2341x_ctrl_query_fill(struct v4l2_queryctrl *qctrl, in cx2341x_ctrl_query_fill() argument
551 switch (qctrl->id) { in cx2341x_ctrl_query_fill()
565 cx2341x_ctrl_fill(qctrl->id, &name, &qctrl->type, in cx2341x_ctrl_query_fill()
566 &min, &max, &step, &def, &qctrl->flags); in cx2341x_ctrl_query_fill()
567 qctrl->minimum = min; in cx2341x_ctrl_query_fill()
568 qctrl->maximum = max; in cx2341x_ctrl_query_fill()
569 qctrl->step = step; in cx2341x_ctrl_query_fill()
570 qctrl->default_value = def; in cx2341x_ctrl_query_fill()
571 qctrl->reserved[0] = qctrl->reserved[1] = 0; in cx2341x_ctrl_query_fill()
572 strlcpy(qctrl->name, name, sizeof(qctrl->name)); in cx2341x_ctrl_query_fill()
[all …]
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-common.c84 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def) in v4l2_ctrl_query_fill() argument
92 v4l2_ctrl_fill(qctrl->id, &name, &qctrl->type, in v4l2_ctrl_query_fill()
93 &min, &max, &step, &def, &qctrl->flags); in v4l2_ctrl_query_fill()
98 qctrl->minimum = min; in v4l2_ctrl_query_fill()
99 qctrl->maximum = max; in v4l2_ctrl_query_fill()
100 qctrl->step = step; in v4l2_ctrl_query_fill()
101 qctrl->default_value = def; in v4l2_ctrl_query_fill()
102 qctrl->reserved[0] = qctrl->reserved[1] = 0; in v4l2_ctrl_query_fill()
103 strlcpy(qctrl->name, name, sizeof(qctrl->name)); in v4l2_ctrl_query_fill()
/Linux-v4.19/include/media/
Dv4l2-common.h106 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl,
/Linux-v4.19/include/media/drv-intf/
Dcx2341x.h97 struct v4l2_queryctrl *qctrl);
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c793 struct v4l2_queryctrl qctrl; in ctrl_cx2341x_getv4lflags() local
795 qctrl.id = cptr->info->v4l_id; in ctrl_cx2341x_getv4lflags()
796 cx2341x_ctrl_query(&cptr->hdw->enc_ctl_state,&qctrl); in ctrl_cx2341x_getv4lflags()
804 if (qctrl.flags & V4L2_CTRL_FLAG_READ_ONLY) { in ctrl_cx2341x_getv4lflags()
813 return qctrl.flags; in ctrl_cx2341x_getv4lflags()
2345 struct v4l2_queryctrl qctrl; in pvr2_hdw_create() local
2457 qctrl.id = ciptr->v4l_id; in pvr2_hdw_create()
2458 cx2341x_ctrl_query(&hdw->enc_ctl_state,&qctrl); in pvr2_hdw_create()
2459 if (!(qctrl.flags & V4L2_CTRL_FLAG_READ_ONLY)) { in pvr2_hdw_create()
2462 strncpy(hdw->mpeg_ctrl_info[idx].desc,qctrl.name, in pvr2_hdw_create()
[all …]
/Linux-v4.19/drivers/video/fbdev/matrox/
Dmatroxfb_base.c1103 struct v4l2_queryctrl qctrl; in matroxfb_ioctl() local
1106 if (copy_from_user(&qctrl, argp, sizeof(qctrl))) in matroxfb_ioctl()
1113 err = minfo->outputs[1].output->getqueryctrl(minfo->outputs[1].data, &qctrl); in matroxfb_ioctl()
1119 copy_to_user(argp, &qctrl, sizeof(qctrl))) in matroxfb_ioctl()
/Linux-v4.19/Documentation/media/uapi/v4l/
Dextended-controls.rst115 struct v4l2_queryctrl qctrl;
117 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
118 while (0 == ioctl (fd, VIDIOC_QUERYCTRL, &qctrl)) {
120 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
129 you can set the initial ``qctrl.id`` value to the control class and add
136 qctrl.id = V4L2_CTRL_CLASS_MPEG | V4L2_CTRL_FLAG_NEXT_CTRL;
137 while (0 == ioctl(fd, VIDIOC_QUERYCTRL, &qctrl)) {
138 if (V4L2_CTRL_ID2CLASS(qctrl.id) != V4L2_CTRL_CLASS_MPEG)
141 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
144 The 32-bit ``qctrl.id`` value is subdivided into three bit ranges: the