Lines Matching defs:optindex
1729 change_source(Epson_Scanner *s, SANE_Int optindex, char *value)
1734 DBG(1, "%s: optindex = %d, source = '%s'\n", __func__, optindex,
1742 if (s->val[OPT_SOURCE].w == optindex)
1745 s->val[OPT_SOURCE].w = optindex;
1844 int optindex = 0;
1863 optindex = optval - sopt->constraint.string_list;
1880 sval->w = optindex; /* Simple lists */
1910 change_source(s, optindex, (char *) value);
1916 SANE_Bool isColor = mode_params[optindex].color;
1918 sval->w = optindex;
1920 DBG(17, "%s: setting mode to %d\n", __func__, optindex);
1924 setOptionState(s, mode_params[optindex].depth == 1,
1935 if (optindex == 0) {
1947 s->val[OPT_BIT_DEPTH].w = mode_params[optindex].depth;
1964 sval->w = optindex;
1970 sval->w = optindex;
1976 SANE_Bool f = gamma_userdefined[optindex];
1978 sval->w = optindex;