Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of rounding issues while converting between units of length #6

Open
mback2k opened this issue Nov 22, 2013 · 1 comment
Open
Assignees
Milestone

Comments

@mback2k
Copy link
Owner

mback2k commented Nov 22, 2013

The WIA microdriver currently handles those issues by always falling back to the user-supplied values. Those input values are basically set in stone, since most implementations of WIA user-interfaces do not provide a way to get updated/rounded values back from the scanning device. The values are set using a fire-and-forget approach which leads to the receiving part always assuming that the aquired image consists of the originally requested length in bytes.

The current implementation achieves this by trimming of additional padding bytes or filling up missing bytes on a per line and total row basis.

@mback2k
Copy link
Owner Author

mback2k commented Jul 27, 2014

The file sanei_constrain_value.c of the sane-project contains code to apply constraints to a variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant