On Tuesday 10 February 2009, m. allan noah wrote: > On Tue, Feb 10, 2009 at 2:54 PM, K?re S?rs <kare.sars at kolumbus.fi> wrote: > > Hi, > > > > How common is it that backends return frame types SANE_FRAME_RED/GREEN/BLUE? > > > > At the moment libksane reserves memory for the whole returned image and in > > case the backend returns the colors separately they are assembled to > > "normal" > > RGB format before the image data is returned to the user. Now there is a > > need > > to return the data for large images in chunks in stead of the whole thing at > > once. So the question is: Is it worth the time to work around this by > > splitting up the selected area and scanning one part at a time or is these > > frames only used in very few exotic models? > > Scanning in parts wont work with ADF machines. 14 backends contain > 'SANE_FRAME_RED': > > agfafocus > apple > artec > bh > microtek > microtek2 > mustek > pie > pint > pnm > tamarack > teco1 > test > umax > > While rare, at least some of those machines are still in use > somewhere. You might just have to go into blocking mode for those > machines. >
Thanks, I think I will have to return an error at scan time for this, since I guess the only way to know for sure that I'll get those frames is with sane_get_parameters() after sane_start(). -- K?re S?rs
