Sean> It's not entirely clear to me from the draft document how soon
  Sean> after doing a "start scan" that it's expected the X and Y
  Sean> image size will be known.  The back-end I'm working on right
  Sean> now doesn't actually have the exact size (only an estimate
  Sean> because of auto-page-size detection) until after the first
  Sean> data read has completed.
Actually, I think the draft is pretty clear:
	"The returned parameters are guaranteed to be accurate between
	 the time a scan has been started (sane_start() has
	 been called) and the completion of that request."
  Sean> I suspect that some front-ends will expect it to be accurate
  Sean> before reading the first data-block (for writing a header or
  Sean> allocating the image buffer).
Yup, this is correct.  Maybe you can buffer the first line?
	--david
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com