diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
commit | ee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch) | |
tree | 58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/plustek-pp_tpa.c | |
parent | 0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff) | |
parent | fef76e17ed4c607ea73b81279f9ef1d7121be900 (diff) |
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/plustek-pp_tpa.c')
-rw-r--r-- | backend/plustek-pp_tpa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/plustek-pp_tpa.c b/backend/plustek-pp_tpa.c index 021bad6..f2ca1f0 100644 --- a/backend/plustek-pp_tpa.c +++ b/backend/plustek-pp_tpa.c @@ -104,7 +104,7 @@ static void tpaP98SubNoise( pScanData ps, pULong pdwSum, pUShort pwShading, for (dwLines = _DEF_DARKEST_SKIP; dwLines--; pw += 5400UL) dwSum += (ULong) *pw; - + *pwShading = (UShort)((*pdwSum - dwSum) / ps->Shade.dwDiv); } if (ps->dwShadingPixels != 5400UL) { @@ -247,7 +247,7 @@ static void tpaP98GetNegativeTempRamData( pScanData ps ) pNegativeTempRam[dw] = (UShort)((pdwNegativeSumTemp[dw1] + pdwNegativeSumTemp[dw1+1] + pdwNegativeSumTemp[dw1+2] + - pdwNegativeSumTemp[dw1+3]) / 128); + pdwNegativeSumTemp[dw1+3]) / 128); /* shift 6 bits */ } @@ -259,7 +259,7 @@ static void tpaP98GetNegativeTempRamData( pScanData ps ) } /* do R shading average */ - for (dw = 0; dw < 240; dw++, dw1 += 4) { + for (dw = 0; dw < 240; dw++, dw1 += 4) { pNegativeTempRam2[dw] = (UShort)( (((pUShort)ps->pScanBuffer1)[dw1] + ((pUShort)ps->pScanBuffer1)[dw1+1] + |