kopia lustrzana https://gitlab.com/sane-project/backends
spelling fixes for mustek_usb2 backend
rodzic
9afda64c42
commit
493ed0a533
|
@ -635,7 +635,7 @@ Author: Jack Date: 2005/05/13
|
||||||
Routine Description:
|
Routine Description:
|
||||||
set scan parameters
|
set scan parameters
|
||||||
Parameters:
|
Parameters:
|
||||||
pSetParameters: the information of scaning
|
pSetParameters: the information of scanning
|
||||||
Return value:
|
Return value:
|
||||||
if the operation success
|
if the operation success
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
|
@ -1674,7 +1674,7 @@ LLFMotorMove (PAsic chip, LLF_MOTORMOVE * LLF_MotorMove)
|
||||||
MotorMoveUnit);
|
MotorMoveUnit);
|
||||||
|
|
||||||
/*Set motor speed unit, for all motor mode,
|
/*Set motor speed unit, for all motor mode,
|
||||||
//inclue uniform, acc, motor speed of scan */
|
//include uniform, acc, motor speed of scan */
|
||||||
Mustek_SendData (chip, ES01_F6_MorotControl1,
|
Mustek_SendData (chip, ES01_F6_MorotControl1,
|
||||||
LLF_MotorMove->MotorSpeedUnit | LLF_MotorMove->
|
LLF_MotorMove->MotorSpeedUnit | LLF_MotorMove->
|
||||||
MotorSyncUnit);
|
MotorSyncUnit);
|
||||||
|
@ -1996,7 +1996,7 @@ LLFCalculateMotorTable (LLF_CALCULATEMOTORTABLE * LLF_CalculateMotorTable)
|
||||||
|
|
||||||
for (i = 0; i < 512; i++)
|
for (i = 0; i < 512; i++)
|
||||||
{
|
{
|
||||||
/* befor scan acc table */
|
/* before scan acc table */
|
||||||
*(LLF_CalculateMotorTable->lpMotorTable + i) =
|
*(LLF_CalculateMotorTable->lpMotorTable + i) =
|
||||||
(unsigned short) ((LLF_CalculateMotorTable->StartSpeed -
|
(unsigned short) ((LLF_CalculateMotorTable->StartSpeed -
|
||||||
LLF_CalculateMotorTable->EndSpeed) * pow (0.09,
|
LLF_CalculateMotorTable->EndSpeed) * pow (0.09,
|
||||||
|
@ -2773,7 +2773,7 @@ SetAFEGainOffset (PAsic chip)
|
||||||
chip->AD.OffsetR);
|
chip->AD.OffsetR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ /* Postive */
|
{ /* Positive */
|
||||||
Mustek_SendData (chip, ES01_60_AFE_AUTO_GAIN_OFFSET_RED_LB,
|
Mustek_SendData (chip, ES01_60_AFE_AUTO_GAIN_OFFSET_RED_LB,
|
||||||
(chip->AD.GainR << 1));
|
(chip->AD.GainR << 1));
|
||||||
Mustek_SendData (chip, ES01_61_AFE_AUTO_GAIN_OFFSET_RED_HB,
|
Mustek_SendData (chip, ES01_61_AFE_AUTO_GAIN_OFFSET_RED_HB,
|
||||||
|
@ -4315,7 +4315,7 @@ Asic_SetSource (PAsic chip, LIGHTSOURCE lsLightSource)
|
||||||
DBG (DBG_ASIC, "Asic_SetSource: Source is Position\n");
|
DBG (DBG_ASIC, "Asic_SetSource: Source is Position\n");
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
DBG (DBG_ASIC, "Asic_SetSource: Source is Negtive\n");
|
DBG (DBG_ASIC, "Asic_SetSource: Source is Negative\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DBG (DBG_ASIC, "Asic_SetSource: Source error\n");
|
DBG (DBG_ASIC, "Asic_SetSource: Source error\n");
|
||||||
|
@ -4726,7 +4726,7 @@ Asic_SetShadingTable (PAsic chip, unsigned short * lpWhiteShading,
|
||||||
DBG (DBG_ASIC, "wValidPixelNumber = %d\n", wValidPixelNumber);
|
DBG (DBG_ASIC, "wValidPixelNumber = %d\n", wValidPixelNumber);
|
||||||
|
|
||||||
/* clear old Shading table, if it has. */
|
/* clear old Shading table, if it has. */
|
||||||
/* first 4 element and lastest 5 of Shading table can't been used */
|
/* first 4 element and latest 5 of Shading table can't been used */
|
||||||
wShadingTableSize = (ShadingTableSize (wValidPixelNumber)) * sizeof (unsigned short);
|
wShadingTableSize = (ShadingTableSize (wValidPixelNumber)) * sizeof (unsigned short);
|
||||||
if (chip->lpShadingTable != NULL)
|
if (chip->lpShadingTable != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -308,7 +308,7 @@ RGBColor;
|
||||||
#define DBG_DET 4 /* more detailed information */
|
#define DBG_DET 4 /* more detailed information */
|
||||||
#define DBG_FUNC 5 /* start and exits of high level functions */
|
#define DBG_FUNC 5 /* start and exits of high level functions */
|
||||||
#define DBG_ASIC 6 /* starts and exits of low level functions */
|
#define DBG_ASIC 6 /* starts and exits of low level functions */
|
||||||
#define DBG_DBG 10 /* usefull only for tracing bugs */
|
#define DBG_DBG 10 /* useful only for tracing bugs */
|
||||||
|
|
||||||
|
|
||||||
#define DPI_2400 0x8000
|
#define DPI_2400 0x8000
|
||||||
|
@ -1295,7 +1295,7 @@ static STATUS Asic_ReadCalibrationData (PAsic chip, void * pBuffer,
|
||||||
unsigned int dwXferBytes, SANE_Byte bScanBits);
|
unsigned int dwXferBytes, SANE_Byte bScanBits);
|
||||||
/* Set motor move or not */
|
/* Set motor move or not */
|
||||||
static STATUS Asic_SetMotorType (PAsic chip, SANE_Bool isMotorMove, SANE_Bool isUniformSpeed);
|
static STATUS Asic_SetMotorType (PAsic chip, SANE_Bool isMotorMove, SANE_Bool isUniformSpeed);
|
||||||
/* Move Motor Forward or Backword */
|
/* Move Motor Forward or Backward */
|
||||||
static STATUS Asic_MotorMove (PAsic chip, SANE_Bool isForward, unsigned int dwTotalSteps);
|
static STATUS Asic_MotorMove (PAsic chip, SANE_Bool isForward, unsigned int dwTotalSteps);
|
||||||
/* Move Motor to Home. */
|
/* Move Motor to Home. */
|
||||||
/* If isTA is TRUE, move TA to home, else move Lamp to home */
|
/* If isTA is TRUE, move TA to home, else move Lamp to home */
|
||||||
|
|
|
@ -3034,7 +3034,7 @@ MustScanner_ReadDataFromScanner (void * dummy)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*has read in memroy Buffer */
|
/*has read in memory Buffer */
|
||||||
wReadImageLines += wScanLinesThisBlock;
|
wReadImageLines += wScanLinesThisBlock;
|
||||||
|
|
||||||
AddScannedLines (wScanLinesThisBlock);
|
AddScannedLines (wScanLinesThisBlock);
|
||||||
|
@ -3203,10 +3203,10 @@ ModifyLinePoint (SANE_Byte * lpImageData,
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
Author: Jack Date: 2005/05/15
|
Author: Jack Date: 2005/05/15
|
||||||
Routine Description:
|
Routine Description:
|
||||||
Modifiy the image data
|
Modify the image data
|
||||||
Parameters:
|
Parameters:
|
||||||
A: the input the image data
|
A: the input the image data
|
||||||
B: the input the iamge data
|
B: the input the image data
|
||||||
Return value:
|
Return value:
|
||||||
the modified data
|
the modified data
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
|
@ -141,10 +141,10 @@ Reflective_Reset ()
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
Author: Jack Date: 2005/05/13
|
Author: Jack Date: 2005/05/13
|
||||||
Routine Description:
|
Routine Description:
|
||||||
get the suggest parameter of scaning
|
get the suggest parameter of scanning
|
||||||
Parameters:
|
Parameters:
|
||||||
pTarget: the information of scaning
|
pTarget: the information of scanning
|
||||||
pSuggest: suggest parameter of scaning
|
pSuggest: suggest parameter of scanning
|
||||||
Return value:
|
Return value:
|
||||||
if the operation is success
|
if the operation is success
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
|
@ -133,10 +133,10 @@ Transparent_Reset ()
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
Author: Jack Date: 2005/05/13
|
Author: Jack Date: 2005/05/13
|
||||||
Routine Description:
|
Routine Description:
|
||||||
get suggest parameter of scaning
|
get suggest parameter of scanning
|
||||||
Parameters:
|
Parameters:
|
||||||
pTarget: the information of scaning
|
pTarget: the information of scanning
|
||||||
pSuggest: the suggest parameter of scaning
|
pSuggest: the suggest parameter of scanning
|
||||||
Return value:
|
Return value:
|
||||||
if operation is success
|
if operation is success
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
|
@ -10,7 +10,7 @@ V 1.0-9 (2005-10-02)
|
||||||
- Removed global variables in mustek_usb2.c:
|
- Removed global variables in mustek_usb2.c:
|
||||||
Deleted the following variables (not necessary):
|
Deleted the following variables (not necessary):
|
||||||
m_bIsOpen
|
m_bIsOpen
|
||||||
Moved the following varaiables to Mustek_Scanner structure:
|
Moved the following variables to Mustek_Scanner structure:
|
||||||
m_bIsScanning
|
m_bIsScanning
|
||||||
m_bIsReading
|
m_bIsReading
|
||||||
setpara
|
setpara
|
||||||
|
@ -104,7 +104,7 @@ V 1.0-4 (2005-09-27)
|
||||||
- Changed backend name to mustek_usb2.
|
- Changed backend name to mustek_usb2.
|
||||||
- Used dos2unix to change dos line endings to unix.
|
- Used dos2unix to change dos line endings to unix.
|
||||||
- Added mustek_usb2.TODO.
|
- Added mustek_usb2.TODO.
|
||||||
- Changed several occurences of "//" to "/* */".
|
- Changed several occurrences of "//" to "/* */".
|
||||||
- Used DBG instead of XDBG.
|
- Used DBG instead of XDBG.
|
||||||
- Defined DBG levels in mustek_usb2_asic_low.h.
|
- Defined DBG levels in mustek_usb2_asic_low.h.
|
||||||
- Changed code to use sanei_usb instead of home-grown usb functions.
|
- Changed code to use sanei_usb instead of home-grown usb functions.
|
||||||
|
|
Ładowanie…
Reference in New Issue