bimg
bimg copied to clipboard
Image library.
[pipes.zip](https://github.com/bkaradzic/bimg/files/6936878/pipes.zip) This image clearly shows the artifacts. One problem seems to be the incorrect punchthrough flag. According to the specs (table 173) it is at bit 32. https://www.khronos.org/registry/DataFormat/specs/1.3/dataformat.1.3.html#_format_pvrtc1_4bpp Current values...
Morton offset should take texture dimensions into account see reflectedMortonOffset function: https://www.khronos.org/registry/DataFormat/specs/1.3/dataformat.1.3.html#_format_pvrtc1_4bpp Current implementation https://github.com/bkaradzic/bimg/blob/master/src/image.cpp#L2973 causes crashes/incorrect textures for non-square textures. I can send PR with the function in specs,...
Hi, I spoke with you on the discord channel about this issue. I'm getting a runtime error in memcpy stemming from bimg::ImageParseDds(). [Here is a sample DDS file](https://drive.google.com/file/d/1yf5RxUrFJjmTtd_DjnA5fd0_Cs-cSX6I/view?usp=sharing) which has...
please add support for ETC2A and ETC2A1 texture formats
I was trying to build `bgfx` with the `mingw-gcc-release64` target, but it failed with the following error: ``` In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/cmath:45, from C:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/math.h:36, from ../../../../bimg/3rdparty/astc/astc_averages_and_directions.cpp:19: C:/mingw64/x86_64-w64-mingw32/include/math.h: In function...
When encoding a 256x256 n.png with astc6x6 format, the size is changed to 258x258 (for 6x6 alignment) ``` texturec -f n.png -o n.ktx -t astc6x6 ``` And it may cause...
https://github.com/fish2000/homebrew-praxa/blob/master/bimg.rb … notes and/or PRs are always welcome. Cheers!
I have a BC3 format texture with mipmaps, and I want to convert it to RGBA32F format with mipmaps. It will cause memory writen out of bounds (The texture I...
Fixes the following compile error: ``` bimg/3rdparty/nvtt/nvcore/debug.h:177:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information ```
If an `ImageContainer` has a non-default (`R0`) `m_orientation` and is passed into `imageConvert`, the returned `ImageContainer` does not retain the same `m_orientation` and as a result the image will be...