Section: SANE Scanner Access Now Easy (5)
Updated: 13 Jul 2008
This backend expects device names of the form:
Where special is the UNIX path-name for the special device that corresponds to the scanner. The special device name must be a generic SCSI device or a symlink to such a device. Under Linux, such a device name could be /dev/sga or /dev/sge, for example.
The Polaroid DMC supports a number of imaging modes. This driver supports five of the imaging modes:
The contents of the dmc.conf file is a list of device names that correspond to DMC scanners. Empty lines and lines starting with a hash mark (#) are ignored. A sample configuration file is shown below:
In the "Full Frame" and "Raw" modes, images must be read in units of entire lines. The driver performs no buffering in these modes; if you ask sane_read to read a non-integral number of lines, it may read less than you ask for. If you ask sane_read to read less than a single line, it returns SANE_STATUS_INVAL.
In the "Super Resolution" mode, images must be read in units of two lines (3198 pixels or 9594 bytes.) If you try to read less than two lines, you get SANE_STATUS_INVAL. The Super Resolution mode is very slow.
In the "Viewfinder" and "Thumbnail" modes, the entire image must be read in one SCSI transfer. In this case, the driver performs buffering and you can read the image in as small an increment as you like.
David F. Skoll
The backend is derived from sane-hp by David Mosberger
Tutoriais de Tecnologia Web