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

Option to use standard malloc for image load #408

Closed
wants to merge 1 commit into from
Closed

Option to use standard malloc for image load #408

wants to merge 1 commit into from

Conversation

luboslenco
Copy link
Contributor

Allows to handle loading big images (exceeding BUFFER_SIZE) using standard allocators by defining KINC_IMAGE_STANDARD_MALLOC.

Related: #407

@RobDangerous
Copy link
Member

Sorry but I don't want to merge workarounds.

@luboslenco
Copy link
Contributor Author

No prob! Will try to have a look at #407, because even some 2048x2048 pngs will fail to load now. (I guess stbi needs more mem to unpack)

@RobDangerous
Copy link
Member

Yes, stbi allocs the complete target buffer plus some temporary allocations - haven't looked at the latter in detail yet.

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.

2 participants