• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/video/

Lines Matching refs:qctrl

476 int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,
479 if (qctrl->flags & V4L2_CTRL_FLAG_DISABLED)
481 if (qctrl->flags & V4L2_CTRL_FLAG_GRABBED)
483 if (qctrl->type == V4L2_CTRL_TYPE_BUTTON ||
484 qctrl->type == V4L2_CTRL_TYPE_INTEGER64 ||
485 qctrl->type == V4L2_CTRL_TYPE_CTRL_CLASS)
487 if (ctrl->value < qctrl->minimum || ctrl->value > qctrl->maximum)
489 if (qctrl->type == V4L2_CTRL_TYPE_MENU && menu_items != NULL) {
658 int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 min, s32 max, s32 step, s32 def)
662 qctrl->flags = 0;
663 switch (qctrl->id) {
713 switch (qctrl->id) {
719 qctrl->type = V4L2_CTRL_TYPE_BOOLEAN;
737 qctrl->type = V4L2_CTRL_TYPE_MENU;
742 qctrl->type = V4L2_CTRL_TYPE_CTRL_CLASS;
743 qctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY;
747 qctrl->type = V4L2_CTRL_TYPE_INTEGER;
750 switch (qctrl->id) {
756 qctrl->flags |= V4L2_CTRL_FLAG_UPDATE;
766 qctrl->flags |= V4L2_CTRL_FLAG_SLIDER;
769 qctrl->minimum = min;
770 qctrl->maximum = max;
771 qctrl->step = step;
772 qctrl->default_value = def;
773 qctrl->reserved[0] = qctrl->reserved[1] = 0;
774 snprintf(qctrl->name, sizeof(qctrl->name), name);
780 int v4l2_ctrl_query_fill_std(struct v4l2_queryctrl *qctrl)
782 switch (qctrl->id) {
786 return v4l2_ctrl_query_fill(qctrl, 0, 0, 0, 0);
788 return v4l2_ctrl_query_fill(qctrl, 0, 65535, 65535 / 100, 58880);
791 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 0);
795 return v4l2_ctrl_query_fill(qctrl, 0, 65535, 65535 / 100, 32768);
797 return v4l2_ctrl_query_fill(qctrl, 0, 255, 1, 128);
800 return v4l2_ctrl_query_fill(qctrl, 0, 127, 1, 64);
802 return v4l2_ctrl_query_fill(qctrl, -128, 127, 1, 0);
806 return v4l2_ctrl_query_fill(qctrl,
811 return v4l2_ctrl_query_fill(qctrl,
816 return v4l2_ctrl_query_fill(qctrl,
821 return v4l2_ctrl_query_fill(qctrl,
826 return v4l2_ctrl_query_fill(qctrl,
831 return v4l2_ctrl_query_fill(qctrl,
836 return v4l2_ctrl_query_fill(qctrl,
841 return v4l2_ctrl_query_fill(qctrl,
846 return v4l2_ctrl_query_fill(qctrl,
851 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 0);
853 return v4l2_ctrl_query_fill(qctrl,
858 return v4l2_ctrl_query_fill(qctrl,
863 return v4l2_ctrl_query_fill(qctrl, 0, 33, 1, 2);
865 return v4l2_ctrl_query_fill(qctrl, 1, 34, 1, 12);
867 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 1);
869 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 0);
871 return v4l2_ctrl_query_fill(qctrl,
876 return v4l2_ctrl_query_fill(qctrl, 0, 27000000, 1, 6000000);
878 return v4l2_ctrl_query_fill(qctrl, 0, 27000000, 1, 8000000);
880 return v4l2_ctrl_query_fill(qctrl, 0, 255, 1, 0);
882 return v4l2_ctrl_query_fill(qctrl, 0, 1, 1, 0);
884 return v4l2_ctrl_query_fill(qctrl, 0, 0xffffff, 1, 0x008080);
886 return v4l2_ctrl_query_fill(qctrl,
891 return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 16);
893 return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 260);
895 return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 256);
897 return v4l2_ctrl_query_fill(qctrl, 0, (1 << 14) - 1, 1, 259);
899 return v4l2_ctrl_query_fill(qctrl, 0, 255, 1, 0);
901 return v4l2_ctrl_query_fill(qctrl, 0, 255, 1, 0);
903 return v4l2_ctrl_query_fill(qctrl,
913 the menu. The qctrl pointer may be NULL, in which case it is ignored. */
914 int v4l2_ctrl_query_menu(struct v4l2_querymenu *qmenu, struct v4l2_queryctrl *qctrl,
920 (qctrl && (qmenu->index < qctrl->minimum || qmenu->index > qctrl->maximum)))