[sane-devel] sane_get_parameters / sample depth

abel deuring adeuring at gmx.net
Sun Sep 22 17:13:06 BST 2002


Major A wrote:
>>Could somebody give me a clue about the possible sample depths?
> 
> 
> There are only the three you mentioned -- 1, 8, 16. If a scanner
> supports, say, 12 bits, then the backend has to expand that to 16
> bits. The way this is usually done is that the scanned samples are
> left-justified within the two bytes, i.e. the answer to your question
> is 0, 32, 64, 96, etc.


Andras,

thanks for clarifying this. Makes life far more easier ;)

ABel




More information about the sane-devel mailing list