Richard Geldreich
b60eedf134
new file
2024-09-10 14:29:36 -04:00
Richard Geldreich
2b95e10dfd
removing old file
2024-09-10 14:23:51 -04:00
Richard Geldreich
89b682b97d
removing old files
2024-09-10 14:22:07 -04:00
Richard Geldreich
7a2094b807
Adding SAN option to CMakeLists.txt, to make it easier to use clang's address/undefined behavior sanitizer on codebase
...
Fixing overflow issue on extreme colors in color_distance().
Explicitly disabling unaligned addressing in miniz and transcoder when UBSAN is enabled
Disabling a needless optimization in transcoder causing ubsan issues (that could have easily been worked around in a different way, but it was an unnecessary optimization to begin with)
Rebuild wasm builds
2022-02-24 19:45:01 -05:00
Richard Geldreich
deeb5acb56
v1.16 release: OpenCL support, removing global selector palette code (it was unused/dead code), ETC1S encoding optimizations, -parallel command line option
2022-01-28 08:32:54 -05:00
Rich Geldreich
5337227c5d
Rebuilt WASM encoder
2021-04-15 00:02:16 -04:00
Rich Geldreich
ee626cec19
Adding initial support for user-provided mipmaps. This isn't hooked up to the command line tool or the JS wrappers yet.
2021-04-13 22:48:01 -04:00
Rich Geldreich
0b9cd40f3b
Rebuild WASM files
2021-04-13 15:25:42 -04:00
Rich Geldreich
7f0a00afe1
Adding KTX2 transcoding/encoding/decompression to PNG/KTX1 support to the transcoder, encoder, JavaScript wrappers. This is also adding Zstandard to the repo, which is optional. Set BASISD_SUPPORT_KTX2_ZSTD=0 when compiling the encoder/transcoder to disable it, or from cmake set KTX2_ZSTANDARD=FALSE.
2021-04-12 13:30:45 -04:00
Rich Geldreich
b3ecdb5ea3
ktx2_encode_test: new samples files for WASM KTX2 encoding/transcoding
2021-04-12 13:29:13 -04:00
Rich Geldreich
2d4fe933b2
Basis Universal v1.13:
...
- Optimized ETC1S encoder (3-4.5x faster)
- Added optional SSE 4.1 support to encoder
- Switched from std::vector to a custom vector in the encoder and transcoder
- Added CppSPMD (SSE only for now)
- UASTC RDO is now more effective, but the command line parameter controlling qualiy has changed (to "lambda")
2021-03-09 11:00:25 -05:00
Rich Geldreich
8fceed472a
Update README.md
2020-12-17 14:55:57 -05:00
Rich Geldreich
2d63617d71
Update README.md
2020-12-17 14:54:09 -05:00
Rich Geldreich
5d2120b085
Update README.md
2020-12-17 14:52:36 -05:00
Rich Geldreich
ea668ac2c3
Updating preview image
2020-12-17 14:47:34 -05:00
Rich Geldreich
5b299684cd
Update README.md
2020-12-17 14:46:25 -05:00
Rich Geldreich
f51ea57463
Update README.md
2020-12-17 14:43:29 -05:00
Rich Geldreich
a21ea7f25b
Adding missing files
2020-12-17 14:38:15 -05:00
Rich Geldreich
85fa18ec94
Adding encoder WebAssembly support, encode_test sample
...
Encoder is now a library in the "encoder" directory
JavaScript wrappers now expose the entire codec: encoder, transcoder, container independent transcoding, and .basis file information
2020-12-17 14:26:28 -05:00
Rich Geldreich
9ebf01854c
new file
2020-12-17 14:24:34 -05:00
Rich Geldreich
5eebb7e4f9
new files
2020-12-17 14:24:22 -05:00
Andre Brisco
1d66c98c32
Ran ./format.sh
2020-10-07 19:13:04 -07:00
Aaron Franke
409d9a502e
Commit files changed by the formatting script
2020-04-25 00:21:48 -04:00
Rich Geldreich
66d5306ba2
Merge pull request #126 from brunogm0/master
...
Further optimize img!
2020-04-14 21:04:33 -04:00
Brandon Jones
171a38483f
Fix a couple minor errors
2020-04-06 16:38:25 -07:00
Brandon Jones
fc1183c412
Added basis_loader.js for WebGL
2020-04-06 14:55:45 -07:00
Bruno George de Moraes
c8cb464fe3
Further optimize img!
...
/encoder_lvl_vs_perf.png -- 7.22kb -> 6.18kb (14.4%)
/webgl/texture/preview.png -- 432.41kb -> 317.87kb (26.488%)
/contrib/single_file_transcoder/examples/testcard.png -- 10.55kb -> 7.90kb (25.1%)
/contrib/single_file_transcoder/examples/testcard-rgba.png -- 14.3kb -> 11.52kb (19.44%)
/webgl/gltf/preview.png -- 490.65kb -> 458kb (6.652%)
/contrib/previewers/win/preview.png -- 652.43kb -> 624.31 (4.31%)
Total: 1,609.39kb -> 1425.78kb (11.4%)
2020-04-02 15:13:03 -03:00
ImgBotApp
3cb4515cc0
[ImgBot] Optimize images
...
*Total -- 1,819.93kb -> 1,593.25kb (12.46%)
/encoder_lvl_vs_perf.png -- 13.04kb -> 7.22kb (44.68%)
/webgl/texture/preview.png -- 522.49kb -> 432.41kb (17.24%)
/contrib/single_file_transcoder/examples/testcard.png -- 12.38kb -> 10.55kb (14.79%)
/webgl/gltf/preview.png -- 563.41kb -> 490.65kb (12.91%)
/contrib/previewers/win/preview.png -- 708.61kb -> 652.43kb (7.93%)
Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com >
2020-03-22 08:23:08 +00:00
Aaron Franke
2a58642381
Make file formatting comply with POSIX and Unix standards
...
UTF-8, LF, no BOM, and newlines at end of files
2020-03-21 02:44:10 -04:00
Rich Geldreich
5b6eb565e4
- Adding UASTC support to encoder, transcoder, .basis file format
...
- Removing BC7 mode 6 support from transcoder (will alway use the much smaller mode 5 tables now)
- Adding BMP support
- Adding -bench mode, for development
- CMakeLists.txt file now compatible with Visual Studio 2019 (MSVC)
2020-03-20 02:00:34 -04:00
Rich Geldreich
9829034505
new files
2020-03-20 01:57:19 -04:00
Rich Geldreich
d0ee14e1fb
new files
2020-03-20 01:57:12 -04:00
Richard Geldreich
1cae1d5726
Rebuilt transcoder
2019-09-29 20:02:20 -07:00
richgel999
01d391cc2a
PVRTC1 apparently always use wrap addressing when fetching the adjacent block colors (even when clamp texture addressing is being used), so we don't need the wrap vs. clamp option anymore. It's always wrap and that's that.
2019-09-29 19:34:00 -07:00
richgel999
2af4f74533
Transcoder wrappers compilation fixes, rebuilt WebAssembly transcoder
2019-09-26 23:03:26 -07:00
richgel999
54304fa014
- Adding PVRTC2 RGB/RGBA and ETC2 EAC R11 and RG11
...
- Renaming -no_auto_global_sel_pal to -auto_global_sel_pal, disabling global selector palette usage by default to speed up compression on small images
- Renaming texture format enums
- Fixing uninitialized memory issue in front end - it wouldn't have affected the correctness of the output, or output quality
- Bumping command line tool up to v1.10
2019-09-26 22:35:14 -07:00
richgel999
b57a362f65
Reducing the WebAssembly transcoder size by disabling ATC and disabling the 8-bit ASTC tables. Rebuilt the transcoder.
2019-09-20 11:45:03 -07:00
richgel999
6e70902e82
Fixing tabs
2019-09-19 23:19:30 -07:00
richgel999
14a8e3ed99
Fixing tabs
2019-09-19 23:19:08 -07:00
richgel999
921a18b68f
Fixing tabs
2019-09-19 23:18:34 -07:00
richgel999
d9a289d42a
Changing webgl texture test so it uses a power of 2 texture by default, so it works on iOS
2019-09-19 23:15:41 -07:00
richgel999
d877fead4e
Adding power of 2 texture for webgl texture test, so it works on iOS
2019-09-19 23:15:08 -07:00
richgel999
e1a520c132
Adding uncompressed 565 pixel format support to texture demo
2019-09-19 22:12:40 -07:00
richgel999
eeb15a6e54
The transcoder now supports unpacking to 565 directly, so we don't need to transcode to BC1 then convert in Javascript
2019-09-19 21:58:10 -07:00
richgel999
c2869ffecc
Adding uncompressed pixel support to transcoder wrappers in webgl/transcoder/basis_wrappers.cpp. Note uncompressed hasn't been tested yet, but I've verified that compressed still works.
2019-09-19 21:39:57 -07:00
Rich Geldreich
3c9ed05472
Update README.md
2019-09-19 18:13:55 -07:00
richgel999
8545341b4b
Rebuild transcoder in WebAssembly on OSX
2019-09-19 15:03:17 -07:00
richgel999
2cb6bdadc1
Checking in new webgl files. Note that the WebAssembly transcoder has gotten bloated with BC7 support, which I'm working on fixing right now. (The wasm went from ~200k to 900k, because of a transcoder macro configuration issue.)
2019-09-19 14:34:39 -07:00
Preston Tamkin
39b5c5bc42
Modularize emscripten build.
...
By default, emscripten's generated javascript modules lives in the global object "Module'.
This makes it impossible to load multiple emscripten modules on the same page.
In attempt to avoid namespace collision, this change modularizes the emscripten build so the Module is instead called 'BASIS'.
Many target applications for Basis are likely to already be using other emscripten modules.
Testing:
The existing webgl/(texture|gltf) pages have been updated to use the new name and seem to operate as before
2019-06-11 23:42:49 -07:00
Rich Geldreich
5e8ad71036
Merge pull request #27 from zeux/wasmopt
...
Fix webgl CMakeLists.txt setup
2019-06-11 10:59:56 -07:00