spelling fixes for niash backend

merge-requests/540/head
Peter Marschall 2020-08-29 08:37:18 +02:00
rodzic 56be6cf59a
commit 340f7e7329
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -223,7 +223,7 @@ static const char lineartStr[] = { SANE_VALUE_SCAN_MODE_LINEART };
#define MODE_GRAY 1 #define MODE_GRAY 1
#define MODE_LINEART 2 #define MODE_LINEART 2
/* lineart treshold range */ /* lineart threshold range */
static const SANE_Range rangeThreshold = { static const SANE_Range rangeThreshold = {
0, 0,
100, 100,
@ -660,7 +660,7 @@ _InitOptions (TScanner * s)
pDesc->constraint_type = SANE_CONSTRAINT_RANGE; pDesc->constraint_type = SANE_CONSTRAINT_RANGE;
pDesc->constraint.range = &rangeYmm; pDesc->constraint.range = &rangeYmm;
pDesc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT; pDesc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
pVal->w = 290 /* have a bit reserve instaed of rangeYmm.max */ ; pVal->w = 290 /* have a bit reserve instead of rangeYmm.max */ ;
break; break;
case optDPI: case optDPI:

Wyświetl plik

@ -877,7 +877,7 @@ _UnscrambleLine (unsigned char *pabLine,
else else
{ {
int i, j; /* loop variables */ int i, j; /* loop variables */
int c; /* color buffer accumulator for horizontal avarage */ int c; /* color buffer accumulator for horizontal average */
/* initialize for incremental color buffer access */ /* initialize for incremental color buffer access */
int iInc = 1; int iInc = 1;
@ -1052,7 +1052,7 @@ CircBufferInit (int iHandle, TDataPipe * p,
#define SAFETY_LINES 0 #define SAFETY_LINES 0
#define MAX_LINES_PER_XFERBUF 800 #define MAX_LINES_PER_XFERBUF 800
/* estimate of number of unsigned chars to transfer at all via the USB */ /* estimate of number of unsigned chars to transfer at all via the USB */
/* add some lines for securtiy */ /* add some lines for security */
p->iLinesLeft = p->iLinesLeft =
iHeight + p->iSkipLines + p->iLinesPerCircBuf + SAFETY_LINES; iHeight + p->iSkipLines + p->iLinesPerCircBuf + SAFETY_LINES;
@ -1216,7 +1216,7 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
TScanParams Params; TScanParams Params;
unsigned char abGamma[4096]; unsigned char abGamma[4096];
int i, j; int i, j;
static unsigned char abBuf[HW_PIXELS * 3 * 71]; /* Carefull : see startWhite and endWhite below */ static unsigned char abBuf[HW_PIXELS * 3 * 71]; /* Careful : see startWhite and endWhite below */
static unsigned char abLine[HW_PIXELS * 3]; static unsigned char abLine[HW_PIXELS * 3];
static unsigned char abWhite[HW_PIXELS * 3]; static unsigned char abWhite[HW_PIXELS * 3];
unsigned char *pabWhite; unsigned char *pabWhite;