Lines Matching defs:option

11    License, or (at your option) any later version.
61 (some fixes and the transparency option)
101 * . . - sane_get_option_descriptor() : get option information
102 * . . - sane_control_option() : change option values
1729 constrain_value (Avision_Scanner* s, SANE_Int option, void* value,
1733 return sanei_constrain_value (s->opt + option, value, info);
6333 /* Always set bit 7 to enable single_sheet_scan option (defaults to off).
6365 /* quality scan option switch */
6371 /* quality calibration option switch (inverted! if set == speed) */
6377 /* transparency option switch */
6383 /* TODO: wire to IR exposure option? */
6964 /* Init the SANE option from the scanner inquiry data */
7053 /* speed option */
8361 if (strcmp (word, "option") == 0)
8613 for this scanner to give decent scan results. Add an option for this...
8797 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
8801 DBG (3, "sane_get_option_descriptor: %d\n", option);
8803 if ((unsigned) option >= NUM_OPTIONS)
8805 return s->opt + option;
8809 sane_control_option (SANE_Handle handle, SANE_Int option,
8817 DBG (3, "sane_control_option: option=%d, action=%d\n",
8818 (int)option, (int)action);
8820 DBG (5, "sane_control_option: option=%s, action=%s\n",
8821 s->opt[option].name,
8832 if (option >= NUM_OPTIONS)
8835 cap = s->opt[option].cap;
8842 switch (option)
8867 *(SANE_Word*) val = s->val[option].w;
8874 *(SANE_Word*) val = s->val[option].w;
8878 get_power_save_time (s, &(s->val[option].w));
8879 *(SANE_Word*) val = s->val[option].w;
8887 memcpy (val, s->val[option].wa, (size_t) s->opt[option].size);
8893 strcpy (val, s->val[option].s);
8901 strcpy (val, s->val[option].s);
8902 s->val[option].s[0] = 0;
8906 get_and_parse_nvram (s, s->val[option].s, 1024);
8908 strcpy (val, s->val[option].s);
8911 } /* end switch option */
8918 status = constrain_value (s, option, val, info);
8922 switch (option)
8939 s->val[option].w = *(SANE_Word*) val;
8947 memcpy (s->val[option].wa, val, (size_t) s->opt[option].size);
8957 s->val[option].w = *(SANE_Word*) val;
8967 if (s->val[option].s) {
8968 free(s->val[option].s);
8970 s->val[option].s = strdup(val);
8971 s->source_mode = match_source_mode (dev, s->val[option].s);
8993 if (s->val[option].s)
8994 free (s->val[option].s);
8996 s->val[option].s = strdup (val);
9042 } /* end switch option */
9049 switch (option)
9052 s->val[option].w = SANE_TRUE;
9054 } /* end switch option */