Commit Graph

106 Commits

Author SHA1 Message Date
Бранимир Караџић
bf830a85f5 texturec: Added support for vertical cubemap strip. 2020-11-25 17:08:29 -08:00
Бранимир Караџић
bfe3c683f9 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:08 -07: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
Бранимир Караџић
dab021bc46 Cleanup. 2019-07-27 20:12:31 -07:00
Бранимир Караџић
6fc9933183 Fixed crash when reading out of bounds. 2019-07-22 19:35:29 -07:00
Branimir Karadžić
cf58871928 Fixed ASTC decoding. 2019-02-16 21:52:23 -08:00
Бранимир Караџић
7ad9c896ba Added astc-codec decoder. 2019-02-16 13:11:06 -08:00
Бранимир Караџић
e1edb3b72c Cleanup. 2019-01-29 15:03:00 -08:00
Бранимир Караџић
db9122c255 Happy New Year! 2019-01-13 17:12:46 -08:00
Branimir Karadžić
baffd743b9 Cleanup. 2018-12-21 18:02:22 -08:00
Branimir Karadžić
18248c9492 Fixed decoding into image with different destination pitch. 2018-12-20 16:39:05 -08:00
william7ba
a4d5eb104e Add scaled mip-chain for sdf textures 2018-12-17 16:38:54 -08:00
Branimir Karadžić
ba69d9e52c Cleanup. 2018-11-25 20:10:40 -08:00
Branimir Karadžić
08e5d46037 Removing old vector math. 2018-11-17 20:01:38 -08:00
Branimir Karadžić
3bb8625872 Cleanup. 2018-11-14 20:01:36 -08:00
Branimir Karadžić
d9d6e81ce1 Removed writePrintf. 2018-11-12 20:26:14 -08:00
Branimir Karadžić
8a7d5589c2 texturec: Added --linear option. 2018-11-02 17:16:32 -07:00
Branimir Karadžić
65b7c21db8 Cleanup. 2018-07-25 05:19:25 +02:00
Andrew Willmott
03ad3921ef ASTC encoding support
- Add 3rdparty/astc with lib version of the standard encoder
- Add astc_compress call for ASTC formats

- Add BIMG_CONFIG_ASTC_DECODE-gated decompression support. This is just for
  testing, the decompress code is currently too heavy to include in the core lib.
- Add fourcc support for DDS decode so ASTC and other formats not covered by
  dxgi can be read

- Add --formats option to texturec, lists all supported formats

- Update genie files -- add astc to bimg_encode and remove redundant files from
  texturec
2018-07-23 19:05:11 +01:00
Branimir Karadžić
3a72f45d7d Cleanup. 2018-07-19 19:55:59 -07:00
Branimir Karadžić
dc121dbc27 Cleanup. 2018-07-18 20:30:45 -07:00
Branimir Karadžić
e802985376 Calculate mip size based on block size. 2018-07-18 20:27:24 -07:00
Branimir Karadžić
c3a55957f2 CMFT WIP. 2018-06-21 19:10:14 -07:00
Branimir Karadžić
ba82899651 Adding CMFT functionality. 2018-06-19 17:52:14 -07:00
Branimir Karadžić
76b2fe3e36 Adding CMFT functionality. 2018-06-15 17:39:00 -07:00
Branimir Karadžić
85162df8a6 Cleanup. 2018-06-15 11:03:13 -07:00
Branimir Karadžić
07a66c7813 Fixed image size calculation. 2018-06-14 17:01:48 -07:00
Branimir Karadžić
29a05c292b Added support for .hdr image write. 2018-06-13 18:20:17 -07:00
Branimir Karadžić
2212baac01 EXR write: Changed channel order to make GIMP and PS load .exr correctly. 2018-06-13 17:13:37 -07:00
Branimir Karadžić
b81be57520 Fixed .ktx parsing. 2018-06-11 17:38:00 -07:00
Branimir Karadžić
7659387ae2 Cleanup. 2018-06-11 17:37:48 -07:00
Branimir Karadžić
89e32f41db Cleanup. 2018-06-11 14:42:49 -07:00
Andrew Willmott
1e49b8a6c8 Merge branch 'atc_and_astc_support' into master 2018-06-10 01:01:23 +01:00
Andrew Willmott
f1666e2bf2 Add ATC & ASTC support
- Add ATC formats for Android etc.
- Add enums for "useful" ASTC formats, using https://developer.nvidia.com/astc-texture-compression-for-game-assets as a guide

- Support decoding ATC/ATCE/ATCI
- Generalise block code to handle non-power-of-two
- Add DDS support for ETC/old (non-DX10) PTC/ATC/ASTC
- Add KTX support for ATC/ASTC
2018-06-09 22:29:00 +01:00
Branimir Karadžić
57fb4b8aa5 Fixed issue #13. 2018-06-05 15:06:54 -07:00
Branimir Karadžić
56315c6711 Fixed memory alignment. 2018-05-29 17:24:35 -07:00
Branimir Karadžić
d1a59dc8d0 Fixed crash when resizing image with mips from compressed to uncompressed format. 2018-05-25 16:29:11 -07:00