summaryrefslogtreecommitdiff
path: root/backend/plustek-pp_dac.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
commitee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch)
tree58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/plustek-pp_dac.c
parent0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff)
parentfef76e17ed4c607ea73b81279f9ef1d7121be900 (diff)
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/plustek-pp_dac.c')
-rw-r--r--backend/plustek-pp_dac.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/backend/plustek-pp_dac.c b/backend/plustek-pp_dac.c
index f89d814..f0cfe40 100644
--- a/backend/plustek-pp_dac.c
+++ b/backend/plustek-pp_dac.c
@@ -311,7 +311,7 @@ static void dacP98CheckLastGain( pScanData ps )
if (b[w] < *p.pb)
b[w] = *p.pb;
}
-
+
if (b[w] > _GAIN_P98_HIGH) {
*(pbReg [w]) -= 1;
}
@@ -643,7 +643,7 @@ static void dacP98WriteBackToShadingRAM( pScanData ps )
*pBuffer = Data.wValue;
pBuffer++;
}
-
+
}
dacP98DownloadShadingTable( ps, ps->pScanBuffer2, (5400 * 2 * 3));
}
@@ -763,7 +763,7 @@ static void dacP98Adjust12BitShading( pScanData ps )
*pt.pdw += (ULong)(*pd.pw * 94 / 100 & 0x0fff);
/* one line */
- if (IOReadFifoLength( ps ) <= 2500)
+ if (IOReadFifoLength( ps ) <= 2500)
IORegisterDirectToScanner( ps, ps->RegRefreshScanState );
}
@@ -782,7 +782,7 @@ static Bool dacP98WaitForShading( pScanData ps )
DBG( DBG_LOW, "dacP98WaitForShading()\n" );
- /*
+ /*
* before getting the shading data, (re)init the ASIC
*/
ps->InitialSetCurrentSpeed( ps );
@@ -1079,7 +1079,7 @@ static void dacP96ReadColorShadingLine( pScanData ps )
}
} else
b2ndDiscard--;
-
+
if (!b3rdDiscard) {
if (b3rdReadLines) {
b3rdReadLines--;
@@ -1159,7 +1159,7 @@ static void dacP96SetShadingGainProc( pScanData ps, Byte bHigh, ULong dwCh )
ps->Asic96Reg.RD_ShadingCorrectCtrl &= bMask;
ps->Asic96Reg.RD_ShadingCorrectCtrl |= bGain;
- if (!bGain) {
+ if (!bGain) {
/* GammaGain1 (ps) */
for (dw = ps->BufferSizePerModel; dw; dw--, pbSrce++, pbDest++)
if (*pbSrce > bDark)
@@ -1334,7 +1334,7 @@ static Bool dacP96003WaitForShading( pScanData ps )
dacP96SetInitialGainRAM( ps );
/* SetInitialGainRegister () ++++++++++++++++++++++++++++++++++++*/
- ps->Asic96Reg.u28.RD_RedChShadingOff =
+ ps->Asic96Reg.u28.RD_RedChShadingOff =
ps->Asic96Reg.u29.RD_GreenChShadingOff =
ps->Asic96Reg.RD_BlueChShadingOff =
ps->Asic96Reg.RD_RedChDarkOff =
@@ -1694,7 +1694,7 @@ static Bool dacP96001WaitForShading( pScanData ps )
/* AverageWideBank (pScanData) */
for( dwSum = 0, dw = 0; dw < 2700; dw++ )
dwSum += (ULong)ps->pPrescan16[dw];
-
+
dwSum /= 2700UL;
if( dwSum <= 0x80 ) {
@@ -1860,7 +1860,7 @@ static void dacP98003AdjustRGBGain( pScanData ps )
/* PauseColorMotorRunStates () */
memset( ps->a_nbNewAdrPointer, 0, _SCANSTATE_BYTES );
- ps->a_nbNewAdrPointer[1] = 0x77;
+ ps->a_nbNewAdrPointer[1] = 0x77;
IOPutOnAllRegisters( ps );
@@ -2221,7 +2221,7 @@ static void dacP98003AdjustShadingWaveform( pScanData ps )
} else
pwsum->Red = 0;
- if((short)(pwsum->Green -= ps->Shade.DarkOffset.Colors.Green) > 0) {
+ if((short)(pwsum->Green -= ps->Shade.DarkOffset.Colors.Green) > 0) {
pwsum->Green = pwsum->Green * pRGB->Green / 100U;
if( pwsum->Green > 0xfff )
pwsum->Green = 0xfff;
@@ -2312,7 +2312,7 @@ static void dacP98003AdjustDark( pScanData ps )
/* PauseColorMotorRunStates () */
memset( ps->a_nbNewAdrPointer, 0, _SCANSTATE_BYTES );
- ps->a_nbNewAdrPointer[1] = 0x77;
+ ps->a_nbNewAdrPointer[1] = 0x77;
IOPutOnAllRegisters( ps );
_DODELAY( 70 );
@@ -2374,7 +2374,7 @@ static Bool dacP98003WaitForShading( pScanData ps )
DBG( DBG_LOW, "dacP98003WaitForShading()\n" );
- /*
+ /*
* before getting the shading data, (re)init the ASIC
*/
ps->ReInitAsic( ps, _TRUE );
@@ -2501,7 +2501,7 @@ _LOC void DacP98FillShadingDarkToShadingRegister( pScanData ps )
pValue = (pUChar)&ps->AsicReg.RD_RedDarkOff;
for (bReg = ps->RegRedChDarkOffsetLow; bReg <= ps->RegBlueChDarkOffsetHigh;
bReg++, pValue++) {
-
+
IODataToRegister( ps, bReg, *pValue );
}
}