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

Made Tag::from_u16, from_u16_exhaustive and to_u16 const #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbartussek
Copy link

I'm using image-tiff to write DNG files, using a lot of currently Unknown tags as a result.
For forward compatibility once some of these tags are defined (#47, #210), I'm using Tag::from_u16_exhaustive.

This patch changes the u16 conversion functions to be const functions so Tag constants can be defined from raw numeric ids without having to always define them as Unknown.

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

Successfully merging this pull request may close these issues.

1 participant