kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for u12 backend
rodzic
f7ad041682
commit
a307ba8ccf
|
@ -1,5 +1,5 @@
|
||||||
/* @file u12-ccd.c
|
/* @file u12-ccd.c
|
||||||
* @brief here we have the whole code to intialize the CCD and DAC stuff
|
* @brief here we have the whole code to initialize the CCD and DAC stuff
|
||||||
*
|
*
|
||||||
* based on sources acquired from Plustek Inc.
|
* based on sources acquired from Plustek Inc.
|
||||||
* Copyright (c) 2003-2004 Gerhard Jaeger <gerhard@gjaeger.de>
|
* Copyright (c) 2003-2004 Gerhard Jaeger <gerhard@gjaeger.de>
|
||||||
|
|
|
@ -185,10 +185,10 @@ static void u12if_shutdown( U12_Device *dev )
|
||||||
DBG( _DBG_INFO, "Shutdown done.\n" );
|
DBG( _DBG_INFO, "Shutdown done.\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This function checks wether a device, described by a given
|
/** This function checks whether a device, described by a given
|
||||||
* string(vendor and product ID), is supported by this backend or not
|
* string(vendor and product ID), is supported by this backend or not
|
||||||
*
|
*
|
||||||
* @param usbIdStr - sting consisting out of product and vendor ID
|
* @param usbIdStr - string consisting out of product and vendor ID
|
||||||
* format: "0xVVVV-0xPPPP" VVVV = Vendor ID, PPP = Product ID
|
* format: "0xVVVV-0xPPPP" VVVV = Vendor ID, PPP = Product ID
|
||||||
* @returns; SANE_TRUE if supported, SANE_FALSE if not
|
* @returns; SANE_TRUE if supported, SANE_FALSE if not
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -589,7 +589,7 @@ static SANE_Status u12image_SetupScanSettings( U12_Device *dev, ImgDef *img )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now assign the buffer pointers for image aquisition
|
/* now assign the buffer pointers for image acquisition
|
||||||
*/
|
*/
|
||||||
dev->scan.p48BitBuf.pb = NULL;
|
dev->scan.p48BitBuf.pb = NULL;
|
||||||
|
|
||||||
|
|
|
@ -402,7 +402,7 @@ static SANE_Byte u12io_DataFromRegister( U12_Device *dev, SANE_Byte reg )
|
||||||
static void u12io_CloseScanPath( U12_Device *dev )
|
static void u12io_CloseScanPath( U12_Device *dev )
|
||||||
{
|
{
|
||||||
DBG( _DBG_INFO, "u12io_CloseScanPath()\n" );
|
DBG( _DBG_INFO, "u12io_CloseScanPath()\n" );
|
||||||
/* FIXME: Probaly not needed */
|
/* FIXME: Probably not needed */
|
||||||
#if 0
|
#if 0
|
||||||
u12io_RegisterToScanner( dev, 0xff );
|
u12io_RegisterToScanner( dev, 0xff );
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -108,7 +108,7 @@ static void u12map_CheckGammaSettings( U12_Device *dev )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** adjust acording to brightness and contrast
|
/** adjust according to brightness and contrast
|
||||||
*/
|
*/
|
||||||
static void u12map_Adjust( U12_Device *dev, int which, SANE_Byte *buf )
|
static void u12map_Adjust( U12_Device *dev, int which, SANE_Byte *buf )
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
* <hr>
|
* <hr>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*************************** some definitons *********************************/
|
/*************************** some definitions *********************************/
|
||||||
|
|
||||||
#define _BACKSTEPS 120
|
#define _BACKSTEPS 120
|
||||||
#define _FORWARDSTEPS 120
|
#define _FORWARDSTEPS 120
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @brief SANE backend for USB scanner, based on Plusteks' ASIC P98003 and
|
* @brief SANE backend for USB scanner, based on Plusteks' ASIC P98003 and
|
||||||
* the GeneSys Logic GL640 parallel-port to USB bridge.
|
* the GeneSys Logic GL640 parallel-port to USB bridge.
|
||||||
*
|
*
|
||||||
* Based on source aquired from Plustek<br>
|
* Based on source acquired from Plustek<br>
|
||||||
* Copyright (c) 2003-2004 Gerhard Jaeger <gerhard@gjaeger.de><br>
|
* Copyright (c) 2003-2004 Gerhard Jaeger <gerhard@gjaeger.de><br>
|
||||||
*
|
*
|
||||||
* History:
|
* History:
|
||||||
|
@ -731,7 +731,7 @@ static SANE_Bool decodeVal( char *src, char *opt,
|
||||||
|
|
||||||
if( tmp ) {
|
if( tmp ) {
|
||||||
|
|
||||||
/* on success, compare wiht the given one */
|
/* on success, compare with the given one */
|
||||||
if( 0 == strcmp( tmp, opt )) {
|
if( 0 == strcmp( tmp, opt )) {
|
||||||
|
|
||||||
DBG( _DBG_SANE_INIT, "Decoding option >%s<\n", opt );
|
DBG( _DBG_SANE_INIT, "Decoding option >%s<\n", opt );
|
||||||
|
@ -779,7 +779,7 @@ static SANE_Bool decodeVal( char *src, char *opt,
|
||||||
return SANE_FALSE;
|
return SANE_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** function to retrive the device name of a given string
|
/** function to retrieve the device name of a given string
|
||||||
* @param src - string that keeps the option name to check src for
|
* @param src - string that keeps the option name to check src for
|
||||||
* @param dest - pointer to the string, that should receive the detected
|
* @param dest - pointer to the string, that should receive the detected
|
||||||
* devicename
|
* devicename
|
||||||
|
@ -840,7 +840,7 @@ static SANE_Status attach( const char *dev_name,
|
||||||
if( NULL == dev )
|
if( NULL == dev )
|
||||||
return SANE_STATUS_NO_MEM;
|
return SANE_STATUS_NO_MEM;
|
||||||
|
|
||||||
/* assign all the stuff we need fo this device... */
|
/* assign all the stuff we need for this device... */
|
||||||
memset(dev, 0, sizeof (*dev));
|
memset(dev, 0, sizeof (*dev));
|
||||||
|
|
||||||
dev->fd = -1;
|
dev->fd = -1;
|
||||||
|
@ -916,7 +916,7 @@ static void init_config_struct( pCnfDef cnf )
|
||||||
cnf->adj.bgamma = 1.0;
|
cnf->adj.bgamma = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** intialize the backend
|
/** initialize the backend
|
||||||
*/
|
*/
|
||||||
SANE_Status sane_init( SANE_Int *version_code, SANE_Auth_Callback authorize )
|
SANE_Status sane_init( SANE_Int *version_code, SANE_Auth_Callback authorize )
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue