Lines Matching refs:str

4111   SANE_String str = s->val[OPT_SCAN_MODE].s;
4117 XDBG ((2, "sane_get_params: string %s\n", str));
4140 str = s->val[OPT_SCAN_MODE].s;
4143 if ((strcmp (str, mode_list[0]) == 0) || (strcmp (str, mode_list[1]) == 0))
4148 if (strcmp (str, mode_list[0]) == 0)
4178 if (strcmp (str, mode_list[0]) == 0)
4428 char str[PATH_MAX] = _DEFAULT_DEVICE;
4463 while (sanei_config_read (str, sizeof (str), fp))
4465 XDBG ((1, "sane_init, >%s<\n", str));
4467 if (str[0] == '#')
4469 len = strlen (str);
4474 if (0 == strncmp (str, "option", 6))
4476 if(decodeVal (str,"ePlusPro",_INT, &isEPro,&epro_default) == SANE_TRUE)
4487 decodeVal (str, "masterGamma", _FLOAT, &gamma_master_default,
4489 decodeVal (str, "redGamma", _FLOAT, &gamma_r_default, &gamma_r);
4490 decodeVal (str, "greenGamma", _FLOAT, &gamma_g_default, &gamma_g);
4491 decodeVal (str, "blueGamma", _FLOAT, &gamma_b_default, &gamma_b);
4492 decodeVal (str, "redOffset", _BYTE, &afe_params.r_offset,
4494 decodeVal (str, "greenOffset", _BYTE, &afe_params.g_offset,
4496 decodeVal (str, "blueOffset", _BYTE, &afe_params.b_offset,
4499 decodeVal (str, "redExposure", _INT, &exp_params.r_time,
4501 decodeVal (str, "greenExposure", _INT, &exp_params.g_time,
4503 decodeVal (str, "blueExposure", _INT, &exp_params.b_time,
4506 decodeVal (str, "modelString", _STRING, model_string, model_string);
4507 decodeVal (str, "vendorString", _STRING, vendor_string,
4510 decodeVal (str, "artecFirmwareFile", _STRING, firmwarePath,
4513 else if (0 == strncmp (str, "usb", 3))
4523 strcpy (temp, str);
4525 else if (0 == strncmp (str, "device", 6))
4527 if (SANE_TRUE == decodeDevName (str, devName))
4538 XDBG ((1, "ignoring >%s<\n", str));