TODO Version 0.3
================

This is a list of things that need doing.  There are far more
things than are shown here, but this should get you started if
you are looking for a project.  If you want to take on anything
that involves coding more serious than fixing small bugs,
please talk to me first.  My email address is johnsonm@redhat.com

Before you try to do anything with the driver that involves
the scanner, please read the scsi-00d.unix file which contains
the scanner documentation from Umax.

 * Move from global variables to a scanner structure.

 * Query the scanner for capabilities to fill in scanner
   structure.

 * Break into separate files to:
    o Send/receive SCSI commands [DONE: scsicmd.*]
    o Take command-line arguments
    o Actually talk to the scanner
    o Others as become obviously necessary
   This will help make this into a generic scanner driver.

 * Add capability for three-pass scans.  To do this:
    o Implement the scanner structure.
    o Implement filling in the scanner structure from
      the INQUIRY response.
    o Allocate a memory block large enough to hold the
      whole scan; height_in_pixels * width_in_pixels * 3
    o Scan three times, filling in byte slices.
   Then add two command-line options:
    o Output to a mmap()ed file, avoiding extra swapping
      for large images.
    o Output data in real-time; one ppm representing the
      red scan as it happens, then another ppm representing
      the red plus green scans as the green scan happens,
      then the correct ppm as the blue scan happens.
      Useful for real-time display.

 * Try to support older models by noticing if the INQUIRY command
   block is completely empty, and sending a very much shortened
   SET_WINDOW command; only sending what is absolutely necessary.
   Do the same thing that PINT does for this.
   Also shorten the request length as shown in the PINT driver.
   The algorithm is confusing; just snarf the code, since it is GPL'ed.

 * Use /proc/scsi, if it is available, to avoid scanning the whole
   scsi bus every time we run.

 * Add halftone support for scanners that have it.  That's not
   too important, though, because more intelligent halftone and
   dither algorithms are available in software.  The hardware
   halftone support is pretty basic halftoning and isn't
   supported on all models.

 * Add more documentation.

 * Add lots of missing functionality.

 * Analyze for suid root security.  (necessary? probably not; make
   the sg device have the proper permissions instead.  scsidev would
   be useful here.)

 * Figure out how to create gamma curves.  I know how to download
   them if anyone can figure out what they are supposed to look
   like exactly.  If you are interested in doing this, I can
   provide you with SCSI command dumps of the Windows driver
   doing this.
