document end detection fix

merge-requests/1/head
Stphane Voltz 2012-03-20 21:57:57 +01:00
rodzic 19c43b4184
commit 9ffa856022
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,8 @@
2012-03-20 Stéphane Voltz <stef.dev@free.fr>
* backend/genesys_*.[ch]: gl841 sheetfed scanners calibration
improvement, fix document end detection when doing dynamic lineart.
Copyrights updates.
2012-03-19 Gerhard Jaeger <gerhard@gjaeger.de>
* backend/plustek.c: Fix batch scanning with Plustek backend
Patch submitted and tested by Elias Oltmanns <eo@nebensachen.de>

Wyświetl plik

@ -3441,7 +3441,16 @@ gl841_detect_document_end (Genesys_Device * dev)
/* the current scancnt is also the final one, so we use it to
* compute total bytes to read. We also add the line count to eject document */
total_bytes_to_read=(scancnt+postcnt)*dev->wpl;
if (dev->settings.dynamic_lineart && dev->settings.scan_mode == SCAN_MODE_LINEART)
{
/* dynamic lineart case */
total_bytes_to_read=(scancnt+postcnt)*dev->wpl/8;
}
else
{
/* regular case */
total_bytes_to_read=(scancnt+postcnt)*dev->wpl;
}
DBG (DBG_io, "%s: old total_bytes_to_read=%u\n",__FUNCTION__,dev->total_bytes_to_read);
DBG (DBG_io, "%s: new total_bytes_to_read=%u\n",__FUNCTION__,total_bytes_to_read);