kopia lustrzana https://gitlab.com/sane-project/backends
Enable Slide on DigitDia 4000, correct misspelling
rodzic
e16d023b2b
commit
696ccd2d7b
|
@ -110,6 +110,8 @@ extern void write_tiff_rgbi_header (FILE *fptr, int width, int height, int depth
|
||||||
/* device flags */
|
/* device flags */
|
||||||
|
|
||||||
#define FLAG_SLIDE_TRANSPORT 0x01
|
#define FLAG_SLIDE_TRANSPORT 0x01
|
||||||
|
/* Some scanners do understand SLIDE_TRANSPORT but not CMD_17 - introducing a new flag */
|
||||||
|
#define FLAG_CMD_17_NOSUPPORT 0x02
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
|
@ -1004,10 +1006,12 @@ sane_start (SANE_Handle handle)
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Function 17
|
* Function 17
|
||||||
|
* This function is not supported by all scanners which are capable of
|
||||||
|
* slide transport, therefore FLAG_CMD_17_NOSUPPORT was introduced.
|
||||||
*
|
*
|
||||||
* ---------------------------------------------------------------------- */
|
* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
if (scanner->device->flags & FLAG_SLIDE_TRANSPORT) {
|
if ( (scanner->device->flags & FLAG_SLIDE_TRANSPORT) & !(scanner->device->flags & FLAG_CMD_17_NOSUPPORT) ) {
|
||||||
sanei_pieusb_cmd_17 (scanner->device_number, 1, &status);
|
sanei_pieusb_cmd_17 (scanner->device_number, 1, &status);
|
||||||
if (status.pieusb_status != PIEUSB_STATUS_GOOD) {
|
if (status.pieusb_status != PIEUSB_STATUS_GOOD) {
|
||||||
DBG (DBG_error, "sane_start(): sanei_pieusb_cmd_17 failed: %d\n", status.pieusb_status);
|
DBG (DBG_error, "sane_start(): sanei_pieusb_cmd_17 failed: %d\n", status.pieusb_status);
|
||||||
|
|
|
@ -16,5 +16,5 @@
|
||||||
usb 0x05e3 0x0145 0x47 0x00
|
usb 0x05e3 0x0145 0x47 0x00
|
||||||
# Reflecta CrystalScan 3600
|
# Reflecta CrystalScan 3600
|
||||||
usb 0x05e3 0x0145 0x2e 0x00
|
usb 0x05e3 0x0145 0x2e 0x00
|
||||||
# Reflecta DigitDia 4000
|
# Reflecta DigitDia 4000 - SLIDE_TRANSPORT but no CMD_17
|
||||||
usb 0x05e3 0x0142 0x2f 0x00
|
usb 0x05e3 0x0142 0x2f 0x03
|
||||||
|
|
|
@ -753,7 +753,7 @@ sanei_pieusb_init_options (Pieusb_Scanner* scanner)
|
||||||
scanner->opt[OPT_FAST_INFRARED].cap |= SANE_CAP_SOFT_SELECT;
|
scanner->opt[OPT_FAST_INFRARED].cap |= SANE_CAP_SOFT_SELECT;
|
||||||
|
|
||||||
/* automatically advance to next slide after scan */
|
/* automatically advance to next slide after scan */
|
||||||
scanner->opt[OPT_ADVANCE_SLIDE].name = "advcane";
|
scanner->opt[OPT_ADVANCE_SLIDE].name = "advance";
|
||||||
scanner->opt[OPT_ADVANCE_SLIDE].title = "Advance slide";
|
scanner->opt[OPT_ADVANCE_SLIDE].title = "Advance slide";
|
||||||
scanner->opt[OPT_ADVANCE_SLIDE].desc = "Automatically advance to next slide after scan";
|
scanner->opt[OPT_ADVANCE_SLIDE].desc = "Automatically advance to next slide after scan";
|
||||||
scanner->opt[OPT_ADVANCE_SLIDE].type = SANE_TYPE_BOOL;
|
scanner->opt[OPT_ADVANCE_SLIDE].type = SANE_TYPE_BOOL;
|
||||||
|
|
Ładowanie…
Reference in New Issue