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

Support sub-byte bitsPerSample #2

Open
GPHemsley opened this issue Sep 15, 2012 · 0 comments
Open

Support sub-byte bitsPerSample #2

GPHemsley opened this issue Sep 15, 2012 · 0 comments
Labels

Comments

@GPHemsley
Copy link
Owner

The size of a sample is stored in bitsPerSample, which allows sub-byte values (i.e. values not divisible by 8). As a result, sample data could span byte boundaries.

Since many images use this method (it allows for smaller files), we need to support this. However, it will require fancy handling, because DataView only allows reading a minimum of one byte at a time.

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

No branches or pull requests

1 participant