Lines Matching defs:mode
773 const char *mode;
804 mode = scanner->val[OPT_MODE].s;
805 if (strcmp(mode, SANE_VALUE_SCAN_MODE_LINEART) == 0) {
809 } else if(strcmp(mode, SANE_VALUE_SCAN_MODE_HALFTONE) == 0) {
813 } else if(strcmp(mode, SANE_VALUE_SCAN_MODE_GRAY) == 0) {
817 } else if(strcmp(mode, SANE_VALUE_SCAN_MODE_RGBI) == 0) {
870 const char *mode;
978 * - set mode 0x15
1050 * Set mode
1182 switch (scanner->mode.passes) {
1240 mode = scanner->val[OPT_MODE].s;
1241 if (strcmp(mode, SANE_VALUE_SCAN_MODE_LINEART) == 0) {
1244 } else if (strcmp(mode, SANE_VALUE_SCAN_MODE_HALFTONE) == 0) {
1247 } else if (strcmp(mode, SANE_VALUE_SCAN_MODE_GRAY) == 0) {
1254 } else if (strcmp(mode, SANE_VALUE_SCAN_MODE_RGBI) == 0) {
1257 } else if (strcmp(mode, SANE_VALUE_SCAN_MODE_COLOR) == 0 && scanner->val[OPT_CLEAN_IMAGE].b) {
1292 if (scanner->buffer.colors == PLANES && (strcmp(mode,SANE_VALUE_SCAN_MODE_COLOR) == 0 && scanner->val[OPT_CLEAN_IMAGE].b)) {
1404 * Set the I/O mode of handle h. The I/O mode can be either blocking or
1405 * non-blocking, but for USB devices, only blocking mode is supported.
1429 * blocking mode.