kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for niash backend
rodzic
56be6cf59a
commit
340f7e7329
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Ładowanie…
Reference in New Issue