[sane-devel] Byte ordering

Ralph Little skelband at gmail.com
Wed Jun 4 05:46:40 BST 2025


Hi.
Someone has asked the question about byte order in multi-byte image data
that we might get from a SANE backend. For example, if the data is 16-bit,
what assumptions can we make about the byte order of that data? There
doesn't seem to be anything in the SANE API specification for guidance.

It is not enough to assume the local machine byte order since we may get
data through the net backend from a remote machine with a different byte
order.

Cheers,
Ralph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20250603/8667a095/attachment.htm>


More information about the sane-devel mailing list