[sane-devel] SANE2 standard revisited: image data format

Oliver Rauch oliver.rauch@rauch-domain.de
Mon, 9 Dec 2002 23:19:25 +0100

On Monday 09 December 2002 17:51, Matto Marjanovic wrote:

> So, how about this:  remove the "frames" concept altogether.  The whole
>  notion of calling start_scan() repeatedly to scan the same document wa=
>  always rather gruesome anyway.
> Instead, we give the choice of a PACKED (i.e. byte-interleaved) format,
>  or a PLANAR (i.e. one channel of the image at a time) format.  For the
>  PLANAR format, useful for multi-pass scanners, the backend just does
>  the multiple passes on its own, and transmits the data one pass at a
>  time.  The frontend does not need to know if the scanner is multipass
>  or not.

Hello Matto,
this is very similar to the frame type. In fact you do not change a lot w=
this. When we want to remove the frames then I suggest to do it right:
only channel-interleaved data, no planes in SANE_(FRAME_)RAW.

In fact this makes the sane standard more simple. Three pass scanners
are not produced any more.

But we have to keep in mind that sane is not only made for scanners.
There may be e.g. a telescope that produces a visible image
(may be RGB, may be CMYK) and also additional infrared or
ultra-violett data. We still need a way to transmit such data!