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

Use detailed errors for TGA decoder #1145

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

lo48576
Copy link
Contributor

@lo48576 lo48576 commented Feb 16, 2020

This is part of #1134, rework for tga module.

All errors that can be emitted from the decoder is "unsupported pixel format", so I used UnsupportedErrorKind::Color variant, but I'm not sure it is good.
It erases detailed error info such as number of alpha bits.

TGA decoder does not support bit depths *larger than* 32.
@HeroicKatora HeroicKatora merged commit 947fda9 into image-rs:master Apr 19, 2020
@lo48576 lo48576 deleted the feature/tga-detailed-error branch April 19, 2020 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants