-
Notifications
You must be signed in to change notification settings - Fork 12
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
compiletime decoder #44
Comments
never, nimPNG not designed to run at compiletime.
it is possible, but require perhaps 80% change in the source code.
nimPNG is using Next big hurdle is nimPNG use a lot of cast between different size integer. It is possible to do that in Nim VM, as demonstrated in stint, but also require large scale changes in the source code. Why you need compile time decoder? what is your use case? |
In my case I embed resources into the code. Currently I store the data as string:
Of course, this has the advantage that the compressed image is smaller, but slows down the start time. ... But I also thought about the possibilities of such a decoder: |
Hello janko
first:
I like your repository and the simplicity of the api very much.
Questions:
Is it possible to implement a compiletime decoder as well? Are there any known hurdles or problems? Have you ever tried this?
possible new API could be:
const png = loadStaticPNG32("image.png")
The text was updated successfully, but these errors were encountered: