Lines Matching defs:value

948                 /* something behind the option value or value wrong */
950 DBG(30, "check_option: option value wrong\n");
955 DBG(30, "check_option: missing option value\n");
973 /* something behind the option value or value wrong */
975 DBG(30, "check_option: option value wrong: %f\n",
999 /* something behind the option value or value wrong */
1001 DBG(30, "check_option: option value wrong: %s\n", cp);
1023 /* something behind the option value or value wrong */
1025 DBG(30, "check_option: option value wrong: %s\n", cp);
1047 /* something behind the option value or value wrong */
1049 DBG(30, "check_option: option value wrong: %s\n", cp);
1071 /* something behind the option value or value wrong */
1073 DBG(30, "check_option: option value wrong: %s\n", cp);
1095 /* something behind the option value or value wrong */
1097 DBG(30, "check_option: option value wrong: %s\n", cp);
1119 /* something behind the option value or value wrong */
1121 DBG(30, "check_option: option value wrong: %s\n", cp);
3017 SANE_Action action, void *value, SANE_Int *info)
3092 *(SANE_Word *) value = val[option].w;
3110 *(SANE_Bool *) value = val[option].w;
3121 strcpy(value, val[option].s);
3131 memcpy(value, val[option].wa, sod[option].size);
3141 *(SANE_Word *) value = NUM_OPTIONS;
3160 /* it to a too large value; bug in xscanimage ? */
3163 status = sanei_constrain_value(ms->sod + option, value, info);
3166 DBG(10, "sane_control_option: invalid option value\n");
3174 DBG(50, "sane_control_option: option=%d, action=%d, value=%d\n",
3175 option, action, *(SANE_Int *) value);
3176 if ( ! ( ( *(SANE_Bool *) value == SANE_TRUE )
3177 || ( *(SANE_Bool *) value == SANE_FALSE ) ) )
3179 DBG(10, "sane_control_option: invalid BOOL option value\n");
3182 if ( val[option].w == *(SANE_Bool *) value ) /* no change */
3184 val[option].w = *(SANE_Bool *) value;
3192 "value=%d\n", option, action, *(SANE_Int *) value);
3193 if ( val[option].w == *(SANE_Int *) value ) /* no change */
3195 val[option].w = *(SANE_Int *) value;
3200 memcpy(val[option].wa, value, sod[option].size);
3205 DBG(50, "sane_control_option: option=%d, action=%d, value=%f\n",
3206 option, action, SANE_UNFIX( *(SANE_Fixed *) value));
3207 if ( val[option].w == *(SANE_Fixed *) value ) /* no change */
3209 val[option].w = *(SANE_Fixed *) value;
3213 DBG(50, "sane_control_option: option=%d, action=%d, value=%s\n",
3214 option, action, (SANE_String) value);
3215 if ( strcmp(val[option].s, (SANE_String) value) == 0 )
3219 val[option].s = strdup(value);
3881 /* if lineart get the value for threshold */
4402 /* default value for calib_divisor ... bit49?? */
5191 DBG(5, "scsi_sense_handler: Parameter value invalid\n");
6367 uint16_t *sortbuf, value;
6369 uint32_t value;
6417 value = 0;
6421 value += *((uint16_t *) ms->shading_image
6425 value /= lines;
6428 (uint16_t) MIN(0xffff, value);
6438 value = *(sortbuf + ( lines - 1 ) / 2 );
6440 + color * ( mi->geo_width / mi->calib_divisor ) + i) = value;
6457 value = 0;
6461 value += *((uint16_t *) ms->shading_image
6466 value /= lines;
6469 (uint16_t) MIN(0xffff, value);
6479 value = *(sortbuf + ( lines - 1 ) / 2 );
6481 + color * ( mi->geo_width / mi->calib_divisor ) + i) = value;
6492 value = 0;
6496 value += *((uint8_t *) ms->shading_image
6501 value /= lines;
6504 (uint8_t) MIN(0xff, value);
6510 value += *((uint16_t *) ms->shading_image
6515 value /= lines;
6519 (uint16_t) MIN(0xffff, value);
6522 + color * ( mi->geo_width / mi->calib_divisor ) + i) = value;
6664 /* calculates the mean value of the shading lines and stores one line of */
6677 uint16_t *sortbuf, value;
6756 value = 0;
6779 value = *( sortbuf + ( md->shading_length - 1 ) / 2 );
6780 *shading_table_pointer = (uint8_t) (value / factor);
6989 uint32_t value;
7010 value = *((uint16_t *) data
7019 value = (ms->lut_size * ms->lut_size) / value;
7022 (uint16_t) MIN(0xffff, value);
7026 value = (ms->lut_size * ms->lut_size)
7027 / (uint32_t) ( (double) value
7032 (uint16_t) MIN(0xffff, value);
7035 value = (uint32_t) ( ( 1073741824 / (double) value )
7038 value = MIN(value, (uint32_t)65535);
7041 (uint16_t) MIN(0xffff, value);
8329 { /* calculate threshold value */