<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jun 3, 2025 at 9:46 PM Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi.</div><div>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.</div><div><br></div><div>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.</div></div></blockquote><div><br></div><div>In the case of the net backend, the byte order is indicated in the <a href="https://sane-project.gitlab.io/standard/net.html#sane-net-start">SANE_NET_START response</a>. The client is responsible for reordering bytes if the byte orders differ. I don't have any experience with other backends. :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Cheers,</div><div>Ralph</div></div>
</blockquote></div></div>