Commit Graph

180 Commits

Author SHA1 Message Date
Бранимир Караџић
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
Бранимир Караџић
2676f06e89 Cleanup. 2019-11-13 21:26:49 -08:00
Бранимир Караџић
cab4328a94 Cleanup. 2019-11-13 20:39:07 -08:00
Бранимир Караџић
0ab650f972 Cleanup. 2019-11-12 21:36:24 -08:00
Бранимир Караџић
9b5edc85ae WIP: Added ability to enable/disable decoders. 2019-11-10 20:26:04 -08:00
Sebastian Marketsmueller
42cd01203d fix integer log2 for asmjs 2019-10-25 14:45:12 -07:00
Бранимир Караџић
dab021bc46 Cleanup. 2019-07-27 20:12:31 -07:00
Бранимир Караџић
50833b01ac Cleanup. 2019-07-23 20:42:41 -07:00
Бранимир Караџић
6a8a1cbe38 Merge pull request #24 from andrewwillmott/astc-nmap-encoding
ASTC normal map support
2019-07-23 20:38:08 -07:00
Andrew Willmott
73fa013ec0 ASTC normal map support
- Update astc to 57af6af from https://github.com/andrewwillmott/astc-encoder
- Expand bimg::Quality to include source-as-normal-map
  modes, intended as a hint to the encoder.
- Hook this up for ASTC, and in texturec
2019-07-24 01:35:33 +01:00
Бранимир Караџић
6fc9933183 Fixed crash when reading out of bounds. 2019-07-22 19:35:29 -07:00
Бранимир Караџић
58d682e633 Cleanup. 2019-07-15 20:45:22 -07:00
Бранимир Караџић
f0947b794c Cleanup. 2019-02-17 16:55:25 -08:00
Branimir Karadžić
cf58871928 Fixed ASTC decoding. 2019-02-16 21:52:23 -08:00