/dports/multimedia/v4l_compat/v4l-utils-4l-utils-1.20.0/utils/v4l2-compliance/ |
H A D | v4l2-test-controls.cpp | 77 qctrl.default_value > qctrl.maximum) in checkQCtrl() 81 if (qctrl.minimum > qctrl.maximum) in checkQCtrl() 86 qctrl.maximum != qctrl.minimum) in checkQCtrl() 88 if ((qctrl.maximum - qctrl.minimum) % qctrl.step) { in checkQCtrl() 107 if (qctrl.minimum || qctrl.maximum || qctrl.step || qctrl.default_value) in checkQCtrl() 198 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 248 node->controls[qctrl.id] = qctrl; in testQueryExtControls() 258 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 274 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 308 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryControls() [all …]
|
/dports/multimedia/libv4l/v4l-utils-4l-utils-1.20.0/utils/v4l2-compliance/ |
H A D | v4l2-test-controls.cpp | 77 qctrl.default_value > qctrl.maximum) in checkQCtrl() 81 if (qctrl.minimum > qctrl.maximum) in checkQCtrl() 86 qctrl.maximum != qctrl.minimum) in checkQCtrl() 88 if ((qctrl.maximum - qctrl.minimum) % qctrl.step) { in checkQCtrl() 107 if (qctrl.minimum || qctrl.maximum || qctrl.step || qctrl.default_value) in checkQCtrl() 198 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 248 node->controls[qctrl.id] = qctrl; in testQueryExtControls() 258 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 274 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 308 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryControls() [all …]
|
/dports/multimedia/v4l-utils/v4l-utils-4l-utils-1.20.0/utils/v4l2-compliance/ |
H A D | v4l2-test-controls.cpp | 77 qctrl.default_value > qctrl.maximum) in checkQCtrl() 81 if (qctrl.minimum > qctrl.maximum) in checkQCtrl() 86 qctrl.maximum != qctrl.minimum) in checkQCtrl() 88 if ((qctrl.maximum - qctrl.minimum) % qctrl.step) { in checkQCtrl() 107 if (qctrl.minimum || qctrl.maximum || qctrl.step || qctrl.default_value) in checkQCtrl() 198 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 248 node->controls[qctrl.id] = qctrl; in testQueryExtControls() 258 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 274 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryExtControls() 308 memset(&qctrl, 0xff, sizeof(qctrl)); in testQueryControls() [all …]
|
/dports/multimedia/obs-studio/obs-studio-27.1.3/plugins/linux-v4l2/ |
H A D | v4l2-controls.c | 91 qmenu.id = qctrl->id; in v4l2_update_controls_menu() 120 if (!valid_control(qctrl)) { in add_control_property() 124 switch (qctrl->type) { in add_control_property() 127 props, (char *)qctrl->name, (char *)qctrl->name, in add_control_property() 128 qctrl->minimum, qctrl->maximum, qctrl->step); in add_control_property() 130 qctrl->default_value); in add_control_property() 138 qctrl->default_value); in add_control_property() 146 qctrl->default_value); in add_control_property() 148 (char *)qctrl->name, qctrl->default_value); in add_control_property() 156 struct v4l2_queryctrl qctrl; in v4l2_update_controls() local [all …]
|
/dports/multimedia/v4l_compat/v4l-utils-4l-utils-1.20.0/utils/v4l2-ctl/ |
H A D | v4l2-ctl-common.cpp | 584 memcpy(qctrl.name, qc.name, sizeof(qctrl.name)); in query_ext_ctrl_ioctl() 597 memset(qctrl.dims, 0, sizeof(qctrl.dims)); in query_ext_ctrl_ioctl() 610 memset(qctrl.reserved, 0, sizeof(qctrl.reserved)); in query_ext_ctrl_ioctl() 622 memset(&qctrl, 0, sizeof(qctrl)); in list_controls() 648 memset(&qctrl, 0, sizeof(qctrl)); in find_controls() 653 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 654 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 664 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 665 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 671 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() [all …]
|
/dports/multimedia/libv4l/v4l-utils-4l-utils-1.20.0/utils/v4l2-ctl/ |
H A D | v4l2-ctl-common.cpp | 584 memcpy(qctrl.name, qc.name, sizeof(qctrl.name)); in query_ext_ctrl_ioctl() 597 memset(qctrl.dims, 0, sizeof(qctrl.dims)); in query_ext_ctrl_ioctl() 610 memset(qctrl.reserved, 0, sizeof(qctrl.reserved)); in query_ext_ctrl_ioctl() 622 memset(&qctrl, 0, sizeof(qctrl)); in list_controls() 648 memset(&qctrl, 0, sizeof(qctrl)); in find_controls() 653 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 654 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 664 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 665 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 671 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() [all …]
|
/dports/multimedia/v4l-utils/v4l-utils-4l-utils-1.20.0/utils/v4l2-ctl/ |
H A D | v4l2-ctl-common.cpp | 584 memcpy(qctrl.name, qc.name, sizeof(qctrl.name)); in query_ext_ctrl_ioctl() 597 memset(qctrl.dims, 0, sizeof(qctrl.dims)); in query_ext_ctrl_ioctl() 610 memset(qctrl.reserved, 0, sizeof(qctrl.reserved)); in query_ext_ctrl_ioctl() 622 memset(&qctrl, 0, sizeof(qctrl)); in list_controls() 648 memset(&qctrl, 0, sizeof(qctrl)); in find_controls() 653 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 654 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 664 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() 665 ctrl_id2str[qctrl.id] = name2var(qctrl.name); in find_controls() 671 ctrl_str2q[name2var(qctrl.name)] = qctrl; in find_controls() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/common/ |
H A D | cx2341x.c | 542 switch (qctrl->id) { in cx2341x_ctrl_query_fill() 556 cx2341x_ctrl_fill(qctrl->id, &name, &qctrl->type, in cx2341x_ctrl_query_fill() 558 qctrl->minimum = min; in cx2341x_ctrl_query_fill() 559 qctrl->maximum = max; in cx2341x_ctrl_query_fill() 560 qctrl->step = step; in cx2341x_ctrl_query_fill() 561 qctrl->default_value = def; in cx2341x_ctrl_query_fill() 562 qctrl->reserved[0] = qctrl->reserved[1] = 0; in cx2341x_ctrl_query_fill() 563 strscpy(qctrl->name, name, sizeof(qctrl->name)); in cx2341x_ctrl_query_fill() 576 switch (qctrl->id) { in cx2341x_ctrl_query() 937 if (ctrl->value < qctrl->minimum || ctrl->value > qctrl->maximum) in v4l2_ctrl_check() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/common/ |
H A D | cx2341x.c | 542 switch (qctrl->id) { in cx2341x_ctrl_query_fill() 556 cx2341x_ctrl_fill(qctrl->id, &name, &qctrl->type, in cx2341x_ctrl_query_fill() 558 qctrl->minimum = min; in cx2341x_ctrl_query_fill() 559 qctrl->maximum = max; in cx2341x_ctrl_query_fill() 560 qctrl->step = step; in cx2341x_ctrl_query_fill() 561 qctrl->default_value = def; in cx2341x_ctrl_query_fill() 562 qctrl->reserved[0] = qctrl->reserved[1] = 0; in cx2341x_ctrl_query_fill() 563 strscpy(qctrl->name, name, sizeof(qctrl->name)); in cx2341x_ctrl_query_fill() 576 switch (qctrl->id) { in cx2341x_ctrl_query() 937 if (ctrl->value < qctrl->minimum || ctrl->value > qctrl->maximum) in v4l2_ctrl_check() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/common/ |
H A D | cx2341x.c | 542 switch (qctrl->id) { in cx2341x_ctrl_query_fill() 556 cx2341x_ctrl_fill(qctrl->id, &name, &qctrl->type, in cx2341x_ctrl_query_fill() 558 qctrl->minimum = min; in cx2341x_ctrl_query_fill() 559 qctrl->maximum = max; in cx2341x_ctrl_query_fill() 560 qctrl->step = step; in cx2341x_ctrl_query_fill() 561 qctrl->default_value = def; in cx2341x_ctrl_query_fill() 562 qctrl->reserved[0] = qctrl->reserved[1] = 0; in cx2341x_ctrl_query_fill() 563 strscpy(qctrl->name, name, sizeof(qctrl->name)); in cx2341x_ctrl_query_fill() 576 switch (qctrl->id) { in cx2341x_ctrl_query() 937 if (ctrl->value < qctrl->minimum || ctrl->value > qctrl->maximum) in v4l2_ctrl_check() [all …]
|
/dports/multimedia/xawtv/xawtv-3.107/console/ |
H A D | v4l-info.c | 31 struct v4l2_queryctrl qctrl; in dump_v4l2() local 152 memset(&qctrl,0,sizeof(qctrl)); in dump_v4l2() 153 qctrl.id = V4L2_CID_BASE+i; in dump_v4l2() 154 if (-1 == ioctl(fd,VIDIOC_QUERYCTRL,&qctrl)) in dump_v4l2() 156 if (qctrl.flags & V4L2_CTRL_FLAG_DISABLED) in dump_v4l2() 159 print_struct(stdout,desc_v4l2_queryctrl,&qctrl,"",tab); in dump_v4l2() 163 memset(&qctrl,0,sizeof(qctrl)); in dump_v4l2() 164 qctrl.id = V4L2_CID_PRIVATE_BASE+i; in dump_v4l2() 165 if (-1 == ioctl(fd,VIDIOC_QUERYCTRL,&qctrl)) in dump_v4l2() 167 if (qctrl.flags & V4L2_CTRL_FLAG_DISABLED) in dump_v4l2() [all …]
|
/dports/multimedia/mplayer/mplayer-export-2021-12-29/stream/ |
H A D | tvi_v4l2.c | 556 qctrl.id = control->id; in set_control() 566 (qctrl.default_value - qctrl.minimum) / 100; in set_control() 569 (qctrl.maximum - qctrl.default_value) / 100; in set_control() 574 (qctrl.default_value - qctrl.minimum) / 50; in set_control() 577 (qctrl.maximum - qctrl.default_value) / 50; in set_control() 588 qctrl.name, control->value, qctrl.minimum, qctrl.maximum); in set_control() 613 qctrl.name, control->value, qctrl.minimum, qctrl.maximum); in get_control() 618 (qctrl.default_value - qctrl.minimum); in get_control() 621 (qctrl.maximum - qctrl.default_value); in get_control() 626 (qctrl.default_value - qctrl.minimum) + 50; in get_control() [all …]
|
H A D | stream_radio.c | 338 struct v4l2_queryctrl qctrl; in set_volume_v4l2() local 352 memset(&qctrl,0,sizeof(qctrl)); in set_volume_v4l2() 353 qctrl.id = V4L2_CID_AUDIO_VOLUME; in set_volume_v4l2() 354 if (ioctl(priv->radio_fd, VIDIOC_QUERYCTRL, &qctrl) < 0) { in set_volume_v4l2() 361 control.value=qctrl.minimum+volume*(qctrl.maximum-qctrl.minimum)/100; in set_volume_v4l2() 373 struct v4l2_queryctrl qctrl; in get_volume_v4l2() local 376 memset(&qctrl,0,sizeof(qctrl)); in get_volume_v4l2() 377 qctrl.id = V4L2_CID_AUDIO_VOLUME; in get_volume_v4l2() 390 if (qctrl.maximum==qctrl.minimum) in get_volume_v4l2() 391 *volume=qctrl.minimum; in get_volume_v4l2() [all …]
|
/dports/multimedia/mencoder/mplayer-export-2021-12-29/stream/ |
H A D | tvi_v4l2.c | 556 qctrl.id = control->id; in set_control() 566 (qctrl.default_value - qctrl.minimum) / 100; in set_control() 569 (qctrl.maximum - qctrl.default_value) / 100; in set_control() 574 (qctrl.default_value - qctrl.minimum) / 50; in set_control() 577 (qctrl.maximum - qctrl.default_value) / 50; in set_control() 588 qctrl.name, control->value, qctrl.minimum, qctrl.maximum); in set_control() 613 qctrl.name, control->value, qctrl.minimum, qctrl.maximum); in get_control() 618 (qctrl.default_value - qctrl.minimum); in get_control() 621 (qctrl.maximum - qctrl.default_value); in get_control() 626 (qctrl.default_value - qctrl.minimum) + 50; in get_control() [all …]
|
H A D | stream_radio.c | 338 struct v4l2_queryctrl qctrl; in set_volume_v4l2() local 352 memset(&qctrl,0,sizeof(qctrl)); in set_volume_v4l2() 353 qctrl.id = V4L2_CID_AUDIO_VOLUME; in set_volume_v4l2() 354 if (ioctl(priv->radio_fd, VIDIOC_QUERYCTRL, &qctrl) < 0) { in set_volume_v4l2() 361 control.value=qctrl.minimum+volume*(qctrl.maximum-qctrl.minimum)/100; in set_volume_v4l2() 373 struct v4l2_queryctrl qctrl; in get_volume_v4l2() local 376 memset(&qctrl,0,sizeof(qctrl)); in get_volume_v4l2() 377 qctrl.id = V4L2_CID_AUDIO_VOLUME; in get_volume_v4l2() 390 if (qctrl.maximum==qctrl.minimum) in get_volume_v4l2() 391 *volume=qctrl.minimum; in get_volume_v4l2() [all …]
|
/dports/multimedia/webcamoid/webcamoid-8.8.0/libAvKys/Plugins/VideoCapture/src/v4l2sys/src/ |
H A D | capturev4l2.cpp | 1033 v4l2_queryctrl qctrl; in findControls() local 1034 memset(&qctrl, 0, sizeof(v4l2_queryctrl)); in findControls() 1035 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL; in findControls() 1041 controls[QString(reinterpret_cast<const char *>(qctrl.name))] = qctrl.id; in findControls() 1043 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; in findControls() 1046 if (qctrl.id != V4L2_CTRL_FLAG_NEXT_CTRL) in findControls() 1050 qctrl.id = id; in findControls() 1055 controls[QString(reinterpret_cast<const char *>(qctrl.name))] = qctrl.id; in findControls() 1058 qctrl.id = V4L2_CID_PRIVATE_BASE; in findControls() 1063 controls[QString(reinterpret_cast<const char *>(qctrl.name))] = qctrl.id; in findControls() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 65 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def) in v4l2_ctrl_query_fill() argument 73 v4l2_ctrl_fill(qctrl->id, &name, &qctrl->type, in v4l2_ctrl_query_fill() 74 &min, &max, &step, &def, &qctrl->flags); in v4l2_ctrl_query_fill() 79 qctrl->minimum = min; in v4l2_ctrl_query_fill() 80 qctrl->maximum = max; in v4l2_ctrl_query_fill() 81 qctrl->step = step; in v4l2_ctrl_query_fill() 82 qctrl->default_value = def; in v4l2_ctrl_query_fill() 83 qctrl->reserved[0] = qctrl->reserved[1] = 0; in v4l2_ctrl_query_fill() 84 strscpy(qctrl->name, name, sizeof(qctrl->name)); in v4l2_ctrl_query_fill()
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 65 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def) in v4l2_ctrl_query_fill() argument 73 v4l2_ctrl_fill(qctrl->id, &name, &qctrl->type, in v4l2_ctrl_query_fill() 74 &min, &max, &step, &def, &qctrl->flags); in v4l2_ctrl_query_fill() 79 qctrl->minimum = min; in v4l2_ctrl_query_fill() 80 qctrl->maximum = max; in v4l2_ctrl_query_fill() 81 qctrl->step = step; in v4l2_ctrl_query_fill() 82 qctrl->default_value = def; in v4l2_ctrl_query_fill() 83 qctrl->reserved[0] = qctrl->reserved[1] = 0; in v4l2_ctrl_query_fill() 84 strscpy(qctrl->name, name, sizeof(qctrl->name)); in v4l2_ctrl_query_fill()
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 65 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def) in v4l2_ctrl_query_fill() argument 73 v4l2_ctrl_fill(qctrl->id, &name, &qctrl->type, in v4l2_ctrl_query_fill() 74 &min, &max, &step, &def, &qctrl->flags); in v4l2_ctrl_query_fill() 79 qctrl->minimum = min; in v4l2_ctrl_query_fill() 80 qctrl->maximum = max; in v4l2_ctrl_query_fill() 81 qctrl->step = step; in v4l2_ctrl_query_fill() 82 qctrl->default_value = def; in v4l2_ctrl_query_fill() 83 qctrl->reserved[0] = qctrl->reserved[1] = 0; in v4l2_ctrl_query_fill() 84 strscpy(qctrl->name, name, sizeof(qctrl->name)); in v4l2_ctrl_query_fill()
|
/dports/multimedia/libv4l/linux-5.13-rc2/Documentation/userspace-api/media/v4l/ |
H A D | extended-controls.rst | 112 struct v4l2_queryctrl qctrl; 114 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL; 115 while (0 == ioctl (fd, VIDIOC_QUERYCTRL, &qctrl)) { 117 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 126 you can set the initial ``qctrl.id`` value to the control class and add 133 qctrl.id = V4L2_CTRL_CLASS_CODEC | V4L2_CTRL_FLAG_NEXT_CTRL; 134 while (0 == ioctl(fd, VIDIOC_QUERYCTRL, &qctrl)) { 135 if (V4L2_CTRL_ID2CLASS(qctrl.id) != V4L2_CTRL_CLASS_CODEC) 138 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 141 The 32-bit ``qctrl.id`` value is subdivided into three bit ranges: the
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/Documentation/userspace-api/media/v4l/ |
H A D | extended-controls.rst | 112 struct v4l2_queryctrl qctrl; 114 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL; 115 while (0 == ioctl (fd, VIDIOC_QUERYCTRL, &qctrl)) { 117 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 126 you can set the initial ``qctrl.id`` value to the control class and add 133 qctrl.id = V4L2_CTRL_CLASS_CODEC | V4L2_CTRL_FLAG_NEXT_CTRL; 134 while (0 == ioctl(fd, VIDIOC_QUERYCTRL, &qctrl)) { 135 if (V4L2_CTRL_ID2CLASS(qctrl.id) != V4L2_CTRL_CLASS_CODEC) 138 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 141 The 32-bit ``qctrl.id`` value is subdivided into three bit ranges: the
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/Documentation/userspace-api/media/v4l/ |
H A D | extended-controls.rst | 112 struct v4l2_queryctrl qctrl; 114 qctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL; 115 while (0 == ioctl (fd, VIDIOC_QUERYCTRL, &qctrl)) { 117 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 126 you can set the initial ``qctrl.id`` value to the control class and add 133 qctrl.id = V4L2_CTRL_CLASS_CODEC | V4L2_CTRL_FLAG_NEXT_CTRL; 134 while (0 == ioctl(fd, VIDIOC_QUERYCTRL, &qctrl)) { 135 if (V4L2_CTRL_ID2CLASS(qctrl.id) != V4L2_CTRL_CLASS_CODEC) 138 qctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL; 141 The 32-bit ``qctrl.id`` value is subdivided into three bit ranges: the
|
/dports/net-im/kopete/kopete-21.12.3/libkopete/avdevice/ |
H A D | videodevice.cpp | 73 struct v4l2_queryctrl qctrl; in setupControls() local 74 CLEAR(qctrl); in setupControls() 77 qctrl.id = k; in setupControls() 92 saveV4L2ControlData(qctrl); in setupControls() 102 qctrl.id = k; in setupControls() 217 switch (qctrl.type) { in saveV4L2ControlData() 219 numericCtrl.id = qctrl.id; in saveV4L2ControlData() 228 booleanCtrl.id = qctrl.id; in saveV4L2ControlData() 234 if (getMenuCtrlOptions(qctrl.id, qctrl.maximum, &options)) { in saveV4L2ControlData() 235 menuCtrl.id = qctrl.id; in saveV4L2ControlData() [all …]
|
/dports/multimedia/v4l_compat/v4l-utils-4l-utils-1.20.0/contrib/test/ |
H A D | sdlcam.c | 188 qctrl->id = V4L2_CID_EXPOSURE_ABSOLUTE; in cam_exposure_limits() 190 if (v4l2_ioctl(m->fd, VIDIOC_QUERYCTRL, qctrl)) { in cam_exposure_limits() 197 if (qctrl->minimum < 500) in cam_exposure_limits() 198 qctrl->minimum = 500; in cam_exposure_limits() 206 struct v4l2_queryctrl qctrl = { .id = cid }; in cam_set_exposure() local 209 cam_exposure_limits(m, &qctrl); in cam_set_exposure() 216 range = log2(qctrl.maximum) - log2(qctrl.minimum); in cam_set_exposure() 217 res = log2(qctrl.minimum) + v*range; in cam_set_exposure() 227 struct v4l2_queryctrl qctrl = { .id = cid }; in cam_convert_exposure() local 229 cam_exposure_limits(m, &qctrl); in cam_convert_exposure() [all …]
|
/dports/multimedia/libv4l/v4l-utils-4l-utils-1.20.0/contrib/test/ |
H A D | sdlcam.c | 188 qctrl->id = V4L2_CID_EXPOSURE_ABSOLUTE; in cam_exposure_limits() 190 if (v4l2_ioctl(m->fd, VIDIOC_QUERYCTRL, qctrl)) { in cam_exposure_limits() 197 if (qctrl->minimum < 500) in cam_exposure_limits() 198 qctrl->minimum = 500; in cam_exposure_limits() 206 struct v4l2_queryctrl qctrl = { .id = cid }; in cam_set_exposure() local 209 cam_exposure_limits(m, &qctrl); in cam_set_exposure() 216 range = log2(qctrl.maximum) - log2(qctrl.minimum); in cam_set_exposure() 217 res = log2(qctrl.minimum) + v*range; in cam_set_exposure() 227 struct v4l2_queryctrl qctrl = { .id = cid }; in cam_convert_exposure() local 229 cam_exposure_limits(m, &qctrl); in cam_convert_exposure() [all …]
|