Lines Matching defs:option
13 License, or (at your option) any later version.
280 DBG (5, "get_afe_values: option `afe' needs 6 parameters\n");
425 SANE_Int option, count;
436 for (option = 0; option < NUM_OPTIONS; ++option)
438 s->opt[option].size = sizeof (SANE_Word);
439 s->opt[option].cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
592 "option is disabled, options for setting the analog frontend "
593 "parameters manually are provided. This option is enabled "
614 "brightness is different with each scan, disable this option. "
1185 DBG (3, "sane_init: option `firmware' needs a parameter\n");
1212 DBG (3, "sane_init: option `vendor' needs a parameter\n");
1238 DBG (3, "sane_init: option `model' needs a parameter\n");
1277 DBG (3, "sane_init: option `override' needs a parameter\n");
1646 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1650 if ((unsigned) option >= NUM_OPTIONS)
1652 DBG (5, "sane_get_option_descriptor: option = %s (%d)\n",
1653 s->opt[option].name, option);
1654 return s->opt + option;
1658 sane_control_option (SANE_Handle handle, SANE_Int option,
1666 DBG (5, "sane_control_option: start: action = %s, option = %s (%d)\n",
1670 s->opt[option].name, option);
1678 "scanning (option = %s (%d))\n", s->opt[option].name, option);
1682 if (option >= NUM_OPTIONS || option < 0)
1684 DBG (1, "sane_control_option: option %d >= NUM_OPTIONS || option < 0\n",
1685 option);
1689 cap = s->opt[option].cap;
1693 DBG (2, "sane_control_option: option %d is inactive\n", option);
1699 switch (option)
1720 *(SANE_Word *) val = s->val[option].w;
1726 strcpy (val, s->val[option].s);
1735 DBG (2, "sane_control_option: can't get unknown option %d\n",
1736 option);
1743 DBG (2, "sane_control_option: option %d is not settable\n", option);
1747 status = sanei_constrain_value (s->opt + option, val, &myinfo);
1756 switch (option)
1766 s->val[option].w = *(SANE_Word *) val;
1777 s->val[option].w = *(SANE_Word *) val;
1780 if (strcmp (s->val[option].s, val) != 0)
1782 if (s->val[option].s)
1783 free (s->val[option].s);
1784 s->val[option].s = strdup (val);
1788 if (strcmp (s->val[option].s, val) != 0)
1790 if (s->val[option].s)
1791 free (s->val[option].s);
1792 s->val[option].s = strdup (val);
1793 if (strcmp (s->val[option].s, "Transparency Adapter") == 0)
1813 if (s->val[option].s)
1814 free (s->val[option].s);
1815 s->val[option].s = strdup (val);
1816 if (strcmp (s->val[option].s, SANE_VALUE_SCAN_MODE_LINEART) == 0)
1825 if (strcmp (s->val[option].s, SANE_VALUE_SCAN_MODE_GRAY) == 0)
1845 s->val[option].w = *(SANE_Word *) val;
1846 if (s->val[option].w == SANE_TRUE)
1859 s->val[option].w = *(SANE_Word *) val;
1860 if (s->val[option].w == SANE_TRUE)
1878 DBG (2, "sane_control_option: can't set unknown option %d\n",
1879 option);
1884 DBG (2, "sane_control_option: unknown action %d for option %d\n",
1885 action, option);