Lines Matching defs:option
16 License, or (at your option) any later version.
65 - add resolution option (only one choice)
66 - add simplex option
111 - enable threshold_curve option
113 - remove y-resolution option
171 . . - sane_get_option_descriptor() : get option information
172 . . - sane_control_option() : change option values
647 /* set SANE option 'values' to good defaults */
1045 * This function is used to access option descriptors. The function
1046 * returns the option descriptor for option number n of the device
1048 * valid option. Its value is an integer that specifies the number of
1050 * option 0). If n is not a valid option index, the function returns
1051 * NULL. The returned option descriptor is guaranteed to remain valid
1055 sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
1059 SANE_Option_Descriptor *opt = &s->opt[option];
1061 DBG (20, "sane_get_option_descriptor: %d\n", option);
1063 if ((unsigned) option >= NUM_OPTIONS)
1067 if(option==OPT_MODE_GROUP){
1075 else if(option==OPT_SOURCE){
1102 else if(option==OPT_MODE){
1121 else if(option==OPT_RES){
1137 if(option==OPT_GEOMETRY_GROUP){
1146 if(option==OPT_TL_X){
1165 if(option==OPT_TL_Y){
1183 if(option==OPT_BR_X){
1202 if(option==OPT_BR_Y){
1221 if(option==OPT_PAGE_WIDTH){
1248 if(option==OPT_PAGE_HEIGHT){
1275 if(option==OPT_ENHANCEMENT_GROUP){
1284 if(option==OPT_BRIGHTNESS){
1301 if(option==OPT_CONTRAST){
1318 if(option==OPT_GAMMA){
1341 if(option==OPT_THRESHOLD){
1359 if(option==OPT_THRESHOLD_CURVE){
1379 if(option==OPT_SENSOR_GROUP){
1391 if(option==OPT_SCAN_SW){
1403 if(option==OPT_HOPPER){
1415 if(option==OPT_TOP){
1427 if(option==OPT_ADF_OPEN){
1439 if(option==OPT_SLEEP){
1455 * Gets or sets an option value.
1458 * This function is used to set or inquire the current value of option
1460 * the option is controlled is specified by parameter action. The
1462 * below. The value of the option is passed through argument val. It
1463 * is a pointer to the memory that holds the option value. The memory
1464 * area pointed to by v must be big enough to hold the entire option
1465 * value (determined by member size in the corresponding option
1469 * string option, the string pointed to by argument v may be shorter
1470 * since the backend will stop reading the option value upon
1476 sane_control_option (SANE_Handle handle, SANE_Int option,
1488 if (option >= NUM_OPTIONS) {
1489 DBG (5, "sane_control_option: %d too big\n", option);
1493 if (!SANE_OPTION_IS_ACTIVE (s->opt[option].cap)) {
1494 DBG (5, "sane_control_option: %d inactive\n", option);
1505 DBG (20, "sane_control_option: get value for '%s' (%d)\n", s->opt[option].name,option);
1507 switch (option) {
1527 DBG(5,"missing option val for source\n");
1623 DBG (20, "sane_control_option: set value for '%s' (%d)\n", s->opt[option].name,option);
1630 if (!SANE_OPTION_IS_SETTABLE (s->opt[option].cap)) {
1635 status = sanei_constrain_value (s->opt + option, val, info);
1651 switch (option) {