Lines Matching defs:level
166 /* Change default level when using a network connection */
325 e2_set_cmd_level(SANE_Handle handle, unsigned char *level)
332 DBG(1, "%s: %c%c\n", __func__, level[0], level[1]);
334 /* set command type and level */
337 sprintf(type_level, "%c%c", level[0], level[1]);
338 if (!strncmp(type_level, epson_cmd[n].level, 2))
346 DBG(1, " unknown type %c or level %c, using %s\n",
347 level[0], level[1], dev->cmd->level);
350 s->hw->level = dev->cmd->level[1] - '0';
897 if ((s->hw->cmd->level[0] == 'D'
898 || (s->hw->cmd->level[0] == 'B' && s->hw->level >= 5))
958 if (s->hw->cmd->level[0] == 'D') {
959 /* The D1 level has only the two user defined gamma
1066 if ((s->hw->cmd->level[0] == 'D'
1067 || (s->hw->cmd->level[0] == 'B' && s->hw->level >= 5))
1119 if (s->hw->cmd->level[0] == 'D') {
1121 * The D1 level has only the two user defined gamma
1277 * for bi-level scanning. If a bit depth of 1 is selected, then
1282 if (s->hw->cmd->level[0] == 'D' && s->lcount > 3 && s->lcount % 2)
1432 * color mode. The D1 level requires it, we are however only testing for
1433 * 'D' and not for the actual numeric level.
1436 if ((s->hw->cmd->level[0] == 'B') && (s->hw->level >= 5)) /* >= B5 */
1439 else if ((s->hw->cmd->level[0] == 'B') && (s->hw->level == 4) /* B4 !color */
1443 else if (s->hw->cmd->level[0] == 'D') /* Dx */