bmx-ng / image.mod

Image handlers
0 stars 2 forks source link

Add more formats #1

Open woollybah opened 2 years ago

woollybah commented 2 years ago

Since freeimage appears to be no longer receiving updates, it may be a good time to consider adding support for different image formats in separate modules, each using their own pixmap loader.

We may then want some generic pixmap manipulation stuff that the likes of freeimage provides.

What formats to add?

...

thareh commented 2 years ago

HEIF would be nice! 😄

woollybah commented 2 years ago

@thareh It would. Unfortunately the "best" library appears to be libheif, which is LGPL, and would require a shared library for deployment with an application. Not the end of the world, but the libs would need to be pre-built and shipped in the module - for each platform/arch.

woollybah commented 2 years ago

AVIF loader is working nicely on arm/arm64. Unfortunately, it requires nasm on x86/x64, which I currently don't have a workaround for...

woollybah commented 1 year ago

I now have a working x64 build of the AVIF example on macOS. This requires enhanced support for custom assemblers on a per module/file basis, including the ability for the user to specify locations of the assembler - much in the same way as one can currently do with the C/C++ compilers, etc.