Lines Matching refs:queryctrl
338 struct v4l2_queryctrl queryctrl;
348 for (querymenu.index = queryctrl.minimum;
349 querymenu.index <= queryctrl.maximum;
357 memset(&queryctrl, 0, sizeof(queryctrl));
359 queryctrl.id = V4L2_CTRL_FLAG_NEXT_CTRL;
360 while (0 == ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl)) {
361 if (!(queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)) {
362 printf("Control %s\\n", queryctrl.name);
364 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
365 enumerate_menu(queryctrl.id);
368 queryctrl.id |= V4L2_CTRL_FLAG_NEXT_CTRL;
406 memset(&queryctrl, 0, sizeof(queryctrl));
408 for (queryctrl.id = V4L2_CID_BASE;
409 queryctrl.id < V4L2_CID_LASTP1;
410 queryctrl.id++) {
411 if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl)) {
412 if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
415 printf("Control %s\\n", queryctrl.name);
417 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
418 enumerate_menu(queryctrl.id);
428 for (queryctrl.id = V4L2_CID_PRIVATE_BASE;;
429 queryctrl.id++) {
430 if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl)) {
431 if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED)
434 printf("Control %s\\n", queryctrl.name);
436 if (queryctrl.type == V4L2_CTRL_TYPE_MENU)
437 enumerate_menu(queryctrl.id);
453 struct v4l2_queryctrl queryctrl;
456 memset(&queryctrl, 0, sizeof(queryctrl));
457 queryctrl.id = V4L2_CID_BRIGHTNESS;
459 if (-1 == ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl)) {
466 } else if (queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) {
471 control.value = queryctrl.default_value;