[sane-devel] API clarification question

Jonathan Schulz jonathan.schulz at hotmail.de
Fri Feb 2 16:29:37 GMT 2024


Hello,

I have posted a question on GitLab regarding the SANE API (https://gitlab.com/sane-project/standard/-/issues/10). Ralph suggested that I also ask here. The sentence in question is

"Member last_frame is set to SANE_TRUE if and only if the frame that is currently being acquired (or the frame that will be acquired next if there is no current frame) is the last frame of a multi frame image (e.g., the current frame is the blue component of a red, green, blue image)."

This sounds to me as if the following should be true:

Whenever format is set to SANE_FRAME_GRAY or SANE_FRAME_RGB, last_frame should be equal to SANE_False.

However, both scanimage and the test backend behave differently. Does anyone have any thoughts on this matter? Otherwise, I will open a MR to adapt the API spec to the real usage.

Best,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20240202/ab351082/attachment.htm>


More information about the sane-devel mailing list