Lines Matching defs:source

182 static void bknd_constrains (TScanner * scanner, SANE_Int source,
207 static SANE_Int Get_Source (SANE_String source);
411 SANE_String_Const *source = NULL;
418 source = (SANE_String_Const *) malloc (sizeof (mysource));
419 if (source != NULL)
420 memcpy (source, &mysource, sizeof (mysource));
428 source = (SANE_String_Const *) malloc (sizeof (mysource));
429 if (source != NULL)
430 memcpy (source, &mysource, sizeof (mysource));
435 if (source != NULL)
440 scanner->list_sources = source;
558 bknd_constrains (TScanner * scanner, SANE_Int source, SANE_Int type)
560 struct st_coords *coords = Constrains_Get (device, source);
1012 Get_Source (SANE_String source)
1016 if (strcmp (source, SANE_I18N ("Flatbed")) == 0)
1018 else if (strcmp (source, SANE_I18N ("Slide")) == 0)
1020 else if (strcmp (source, SANE_I18N ("Negative")) == 0)
2057 SANE_Int source;
2064 source = Get_Source (scanner->aValues[opt_scantype].s);
2065 coords = Constrains_Get (device, source);
2068 bknd_constrains (scanner, source, 0);
2069 bknd_constrains (scanner, source, 1);
2107 SANE_Int source;
2155 source = Get_Source (scanner->aValues[opt_scantype].s);
2156 coords = Constrains_Get (device, source);
2159 bknd_constrains (scanner, source, 0);
2160 bknd_constrains (scanner, source, 1);
2243 SANE_Int res, source, depth, colormode, frameformat, bpl;
2258 source = Get_Source (s->aValues[opt_scantype].s);
2272 Set_Coordinates (source, res, &coords);
2317 SANE_Int res, source, colormode, depth, channel;
2321 source = Get_Source (s->aValues[opt_scantype].s);
2323 /* Check if scanner supports slides and negatives in case selected source is tma */
2324 if (!((source != ST_NORMAL) && (RTS_isTmaAttached (device) == FALSE)))
2399 s->ScanParams.scantype = source;
2407 Set_Coordinates (source, res, &s->ScanParams.coords);