kopia lustrzana https://gitlab.com/sane-project/backends
Added support for Relisys RELI 4830 (VM4542).
rodzic
e0d98ae7b7
commit
1489a6552e
|
@ -146,6 +146,13 @@ static const struct scanners_supported scanners[] = {
|
||||||
{1, 600, 1}, /* resolution */
|
{1, 600, 1}, /* resolution */
|
||||||
300, 600, /* max x and Y resolution */
|
300, 600, /* max x and Y resolution */
|
||||||
3 /* color 3 pass */
|
3 /* color 3 pass */
|
||||||
|
},
|
||||||
|
|
||||||
|
{6, "TECO VM4542",
|
||||||
|
"Relisys", "RELI 4830",
|
||||||
|
{1, 400, 1}, /* resolution */
|
||||||
|
400, 400, /* max x and Y resolution */
|
||||||
|
1 /* color 1 pass */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1893,12 +1900,15 @@ sane_start (SANE_Handle handle)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* The windows driver does that, but some scanners don't like it. */
|
||||||
teco_vendor_spec (dev);
|
teco_vendor_spec (dev);
|
||||||
if (status)
|
if (status)
|
||||||
{
|
{
|
||||||
teco_close (dev);
|
teco_close (dev);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
status = teco_send_gamma (dev);
|
status = teco_send_gamma (dev);
|
||||||
if (status)
|
if (status)
|
||||||
|
@ -2030,7 +2040,7 @@ sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len,
|
||||||
while ((buf_offset != max_len) && dev->bytes_left);
|
while ((buf_offset != max_len) && dev->bytes_left);
|
||||||
|
|
||||||
DBG (DBG_info, "sane_read: leave, bytes_left=%ld\n",
|
DBG (DBG_info, "sane_read: leave, bytes_left=%ld\n",
|
||||||
(long) dev->bytes_left);
|
(long) dev->bytes_left);
|
||||||
|
|
||||||
return SANE_STATUS_GOOD;
|
return SANE_STATUS_GOOD;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,7 @@ scsi "RELISYS" "VM3530+" Scanner * * * 0
|
||||||
# Avec Color Office 2400
|
# Avec Color Office 2400
|
||||||
scsi "" "Image Scanner" Scanner
|
scsi "" "Image Scanner" Scanner
|
||||||
|
|
||||||
|
# Relisys RELI 4830
|
||||||
|
scsi "RELISYS" "VM4542" Scanner
|
||||||
|
|
||||||
/dev/scanner
|
/dev/scanner
|
||||||
|
|
|
@ -215,8 +215,8 @@ getbitfield (unsigned char *pageaddr, int mask, int shift)
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#define MM_PER_INCH 25.4
|
#define MM_PER_INCH 25.4
|
||||||
#define mmToIlu(mm) (((mm) * 300) / MM_PER_INCH)
|
#define mmToIlu(mm) (((mm) * dev->def->x_resolution_max) / MM_PER_INCH)
|
||||||
#define iluToMm(ilu) (((ilu) * MM_PER_INCH) / 300)
|
#define iluToMm(ilu) (((ilu) * MM_PER_INCH) / dev->def->x_resolution_max)
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue