Commit Graph

193 Commits

Author SHA1 Message Date
Бранимир Караџић
f12bf096f6 Happy New Year! 2023-01-14 10:04:54 -08:00
Branimir Karadžić
6a15b31f19 Fixed build. 2023-01-01 19:12:09 -08:00
Бранимир Караџић
8c3aabc3c1 Updated astc-encoder. 2022-11-10 17:27:01 -08:00
von
58c0869be5 remove unnecessary line 2022-10-31 13:14:46 +08:00
von
3d0678e3cc fix dds texture array 2022-10-31 10:05:35 +08:00
von
6a2599324f fix dds texture array bug 2022-10-31 09:53:59 +08:00
Raziel Alphadios
e0e9fef6a8 Drop astc-codec and use astc-encoder for decoding too
Add missing ASTC formats to imageEncode path too
2022-10-26 04:39:59 +03:00
Raziel Alphadios
3e096a4a50 Add support for remaining unsupported ASTC formats 2022-10-26 02:34:33 +03:00
Raziel Alphadios
2e26b42318 Break out of astc image_compress error too for consistency 2022-10-21 22:36:46 +03:00
Raziel Alphadios
97934fd0d1 Break out of astc encoding on astc error 2022-10-21 22:29:37 +03:00
Raziel Alphadios
891289a0fc Add astc error handling 2022-10-21 19:52:37 +03:00
Raziel Alphadios
3f98d7b133 Integrate new astc-encoder 2022-10-21 07:27:00 +03:00
Бранимир Караџић
c7f88c254d Drop in latest astc-encoder. 2022-10-20 19:58:04 -07:00
Бранимир Караџић
0de8816a8b Cleanup. 2022-09-23 23:18:57 -07:00
Бранимир Караџић
603dff3fb7 Fixed warning. 2022-09-18 19:23:59 -07:00
Sandy Carter
9a074b7fcc pixelformats: Add B5G6R5 2022-08-24 11:04:43 -04:00
Sandy Carter
5d840d38a6 pixelformats: Add BGR5A1 2022-08-24 10:22:56 -04:00
Sandy Carter
21e42e98c8 pixelformats: Add BGRA4 2022-08-24 09:57:27 -04:00
Бранимир Караџић
31358177f1 Added numeric min/max for type. 2022-08-22 20:30:34 -07:00
luz paz
637a3a6abc Fix misc. typo
Found via `codespell -q 3 -S ./3rdparty -L ba,inout,lod,quater,treshold`
2022-02-05 16:50:31 -05:00
Бранимир Караџић
9d6af16116 Happy New Year! 2022-01-15 11:58:54 -08:00
Christophe Dehais
6c6bb12137 Fix ktx cubemap size calculation
Change was introduced by commit #63 (b8a7a90)
2021-10-26 16:07:40 +02:00
Бранимир Караџић
c4941995d3 Fixed assert macros, and improved error handling. 2021-10-25 18:59:22 -07:00
Бранимир Караџић
6693de0e50 Added initializer types. 2021-09-06 09:03:12 -07:00
attilaz
b8a7a901db Fixes for cubemap loading from ktx/pvr3 container 2021-08-06 09:07:59 +02:00
attilaz
ceea976049 added etc2a decoder 2021-08-03 09:47:41 +02:00
attilaz
4aa1353311 ETC2 decompression fixes 2021-08-02 10:38:39 +02:00
C.Even
2be26090ca PNG: Fixed 1,2,4 bits palette support 2021-04-18 20:02:59 +08:00
Brandon DeRosier
7f1d2e4604 Remove ctype.h include that's no longer needed.
See also bkaradzic/bimg#51 and 0c9cb2786f.
2021-01-31 02:26:35 -08:00
Brandon DeRosier
0c9cb2786f Fix emscripten builds by correcting ctype.h include.
The emscripten compat headers work by transparently augmenting imports and including the original headers via `#include_next`.
The search path for emscripten places `system/include/compat` before `system/include`, and so importing with `compat/ctype.h` causes the preprocessor to skip over `system/include/compat` and land the search cursor on `system/include`, which then causes the subsequent `#include_next <ctype.h>` lookup to fail while processing the compat header.

Fixes emscripten-core/emscripten#13109 and bkaradzic/bgfx#2336.
2021-01-30 17:36:17 -08:00
Бранимир Караџић
a8686f9a20 Happy New Year! 2021-01-14 15:53:32 -08:00
Бранимир Караџић
bf830a85f5 texturec: Added support for vertical cubemap strip. 2020-11-25 17:08:29 -08:00
Matthew Endsley
dc7b730805 Change -Wunused-but-set-variable to GCC only
Clang (as of version 10.0.0) does not support this flag.
2020-10-04 20:38:50 -07:00
Бранимир Караџић
b65d12aa82 Updated stb headers. 2020-09-14 12:33:54 -07:00
Branimir Karadžić
3702758a46 Fixed warnings. 2020-09-07 10:36:03 -07:00
Branimir Karadžić
ac57c4dd97 Fixed warnings. 2020-09-07 10:07:02 -07:00
Бранимир Караџић
bfe3c683f9 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:08 -07:00
Бранимир Караџић
17bcbaf414 Fixed warnings. 2020-06-09 20:09:51 -07:00
NPatch
b336e20b9e Removing hasAlpha from bimg::TextureInfo and bimg::imageGetSize 2020-05-17 04:16:45 +03:00
NPatch
5de76c05a3 LodePNG and EXR parsers now set ImageContainer.m_hasAlpha.
hasAlpha field added in bimg::TextureInfo and bimg::imageGetSize.
2020-05-16 18:08:21 +03:00
Бранимир Караџић
5ee42f6de1 Removed alignment macros, and added functions instead. 2020-04-19 18:22:49 -07:00
Robin Allen
d69aef2368 Fix bug where loading uncompressed sRGB KTX files would swap B/R 2020-03-04 17:55:17 +00:00
Robin Allen
7d226675ea Enable KTX sRGB formats
- When parsing, set m_srgb flag on the ImageContainer if the image
  is in an sRGB format.

- When writing, take a new srgb parameter. If set, use the appropriate
  sRGB format.
2020-03-03 22:14:59 +00:00
Бранимир Караџић
f19841e815 Removed error. 2020-02-20 07:54:11 -08:00
Бранимир Караџић
29a722a729 Cleanup. 2020-02-08 15:41:35 -08:00
Vladimir Vukicevic
504ea68273 Add BIMG_DECODE_ASTC 2020-01-31 17:28:41 -08:00
Бранимир Караџић
bfbafce461 Happy New Year! 2020-01-14 21:26:10 -08:00
Brick
ea12e899d5 Optimized decodeBlockBc6h 2019-12-31 04:56:23 +00:00
Christophe Dehais
c93f4b5808 Use the correct layer size in imageWriteKtx 2019-11-26 22:07:25 +01:00
David Amador
e80463a5e7 fixed build error 2019-11-14 08:52:15 +00:00