# RE: Getting compressed B/W image data from Fujitsu M3096GXm scann er

From: Armistead, Jason (armistej@oeca.otis.com)
Date: Sun Feb 04 2001 - 21:57:32 PST

- Next message: Heikki Kantola: "Re: SANE 1.0.4 and SnapScan library problems"
  - Previous message: Armistead, Jason: "RE: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Next in thread: abel deuring: "Re: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Reply: abel deuring: "Re: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Hi Tom (and all on the SANE list)

  Thanks to Tom for his pointing out that his sane-bh backend DOES support
  compression.

  Why isn't it directly integrated with SANE 1.04 and part of the standard
  distribution ? The latest sane-bh patches are against 1.03, so I guess
  there'll be some extra work required to make it go together with 1.04 ?

  The obvious question arises : When is "the next major version of SANE" due
  to be released ? It would seem to me (maybe naively) that scanner-based
  compression is something that has been overlooked in SANE up until now.

  Is there any reason that a "reference model" scanner from the SCSI II spec
  wasn't developed as part of SANE, as a basis for all others to be modelled
  on ? Obviously every manufacturer likes to "roll their own" feature set,
  but we seem to be treading on each other's toes by re-inventing at least
  some portion of the wheel for each new scanner. e.g. with sense code /
  qualifier decoding for the various error messages such as ADF jamming.
  Perhaps it's time to look at redesigning the backends to deal with these
  e.g. a function called sane_scsi2_asc60_asq00 might actually handle the SCSI
  2 ASC60, ASQ00 response code "Lamp failure" for all scanners. Perhaps this
  also lends itself to other (multi language support ?) also if the SANE API
  could be extended to cover some sort of SANE_Status to text translation
  scheme.

  Or am I just barking up the wrong tree ???

  There also seems to be a large discrepancy in the level of diagnostic given
  in each driver e.g. the Microtek driver seems to be absolutely LOADED with
  debugging information (over 119 printfs, plus stacks of DBG callouts), but
  others have very few at all.

  Then again, maybe I'm just used to being pampered by pay-ware rather than
  GPL-ware ;-)

  Is there a list of proposed features (or just a wish list by SANE users) for
  the next version ?

  Just curious

  Jason (who is subscribed to the list and so doesn't need cc-ing)

  -----Original Message-----
  From: Tom Martone [mailto:tom@martoneconsulting.com]
  Sent: Saturday, 3 February 2001 12:26
  To: sane-devel@mostang.com
  Subject: Re: Getting compressed B/W image data from Fujitsu M3096GXm
  scanner

  Greetings,

  Armistead, Jason wrote:
  >
  > I would have thought that some of the top-end high volume
  > scanners like Bell & Howell would surely support on-board compression, and
  > that someone, somewhere might have added them to SANE.

  The Bell & Howell Copiscan II series does support several compressed
  formats (CCITT G3, CCITT G3-2D, CCITT G4) and the SANE driver sane-bh
  supports these. To fully utilize the compressed formats, a patch to
  sane.h is necessary which adds several new frametypes.

  /* optional frames */
  SANE_FRAME_TEXT = 10, /* Human readable text non-image data */
  SANE_FRAME_JPEG = 11, /* JPEG compressed image */
  SANE_FRAME_G31D = 12, /* Group 3 1D compressed image */
  SANE_FRAME_G32D = 13, /* Group 3 2D compressed image */
  SANE_FRAME_G42D = 14 /* Group 4 2D compressed image */

  Compressed formats are not supported in the current SANE standard,
  and are to be addressed in the next major version of SANE. Unofficially,
  and non-standardly, I guess, a simple addition of a few enumeration
  values and a cooperating front and back end is all you would need
  to get this going on your compression-enabled scanner.

  Happy scanning,
  Tom

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Heikki Kantola: "Re: SANE 1.0.4 and SnapScan library problems"
  - Previous message: Armistead, Jason: "RE: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Next in thread: abel deuring: "Re: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Reply: abel deuring: "Re: Getting compressed B/W image data from Fujitsu M3096GXm scann er"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Sun Feb 04 2001 - 22:01:29 PST