That's what I know at the moment:
All 16/32 Bit values in big endian!
Read/write calibration data can be completely omitted.
Set window:
Resolution in dpi, below 60dpi don't work.
Upper left coord. and window size in 1/1200 in for 12??? models,
in 1/600 in for 6??? models.
Threshold: Ignored
Image comp: Ignored
Bits p. pixel: only 1 (=>lineart), 8 (=>gray), 24 (=>color),
there is no halftone mode
Send data:
Gamma: cmd[2]=0x03
cmd[6]=0x00 => gray, 4096 Bytes, cmd[7]=0x10, cmd[8]=0x00
cmd[6]=0x01 => red, 4096 Bytes, cmd[7]=0x10, cmd[8]=0x00
cmd[6]=0x02 => green, 4096 Bytes, cmd[7]=0x10, cmd[8]=0x00
cmd[6]=0x03 => blue, 4096 Bytes, cmd[7]=0x10, cmd[8]=0x00
cmd[6]=0x04 => threshold (lineart), cmd[7]=0x00,
cmd[8]: bright -> 00 ... 80 ... FF <- dark
no further data!
Read Data:
cmd[6] seems to be don't care, despite the strange code in
the sample driver.
And: If supplied SCSI card is used, disable USLEEP code (in
g_NCR5380.c). The scanner silently overwrites its buffer (128kB)
if data isn't requested fast enough!!! So one gets a corrupted
image (some horizontal stripes missing or appearing several
times, shifted horizontally etc.) Grrrrrrrrrrrrrrrrrrrrrr!
I haven't figured out yet how the colors are interleaved and
line distance has to be interpreted.
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com