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

Matto Marjanovic maddog@mir.com
Tue, 10 Dec 2002 14:10:47 -0500

 >> The difference isn't so much the data format as the code flow:  all the
 >>  planar data is returned after a single sane_start(), and the multi-frame
 >>  flags for determining which 'frame' is currently being scanned can be
 >>  removed from the standard.
 >But you can not expect that the order of the colors is red-green-blue,
 >so you again need a way to tell the frontend which color/channel is

"How do I know the order of the channels when the samples are interleaved?"

The planar format uses the same order.  Described by the same mechanism.

 >> Each sane_start() cycle would return a single frame, and each frame would
 >>  be a complete image.
 >I do not see that this improves anything. You rename several things
 >but you do not change a lot. And to remove sane_start in between
 >does not make anything easier.

It cleans up the code flow and the semantics of the scanning operations 
 *a lot*.  I'll assume you haven't read the rest of your email yet today,
 but if you're still not convinced later on, I can add more comments.

-matt m.