Commit Graph

885 Commits

Author SHA1 Message Date
Rich Geldreich
fbb7de77f2 Merge pull request #412 from Skullheadx/Fix-Missing-cfloat-Include
Fix missing cfloat include in basisu_astc_hdr_6x6_enc.cpp
2025-11-21 21:34:55 -05:00
Richard Geldreich
204d7525ad fixing merge issues 2025-11-21 21:30:58 -05:00
Rich Geldreich
3decad24c3 Merge pull request #200 from aaronfranke/format-gh-actions
Update formatting script and use GitHub Actions
2025-11-21 21:22:45 -05:00
Aaron Franke
528ac92b7b Update formatting script to use pre-commit and GitHub Actions 2025-11-21 11:52:39 -08:00
Aaron Franke
f3a63a3f54 Remove trailing space characters 2025-11-21 11:52:38 -08:00
Skullheadx
67886898e6 Add missing cfloat include 2025-11-19 09:51:47 -05:00
Richard Geldreich
717c3fec70 disabling image save here, not needed 2025-11-18 22:09:39 -05:00
Richard Geldreich
6000fedf62 compressor fuzzing: fixing rare overflow in RDO candidate picker 2025-11-18 21:54:27 -05:00
Richard Geldreich
d7ef7030a0 Porting ETC1S colorspace very rare calculation overflow fix into OpenCL program 2025-11-18 17:38:20 -05:00
Richard Geldreich
5a1ae5d65d Fixing a very rare 1-bit overflow in ETC1S SSE optimized colorspace error calculations (which are 32-bit vs. the plain C++ code's 64-bit). Ultimately the output would still be correct and transcodable, but this could cause a compressor assertion check to fail. Found during compressor fuzz testing. 2025-11-18 17:27:51 -05:00
Richard Geldreich
6e54503437 adding compressor validate output flag from XUASTC branch 2025-11-18 17:25:32 -05:00
Richard Geldreich
f7d0925f96 Adding rel tolerance to this assert, found during compressor fuzzing 2025-11-18 17:25:06 -05:00
Richard Geldreich
3fa2ceb26c Adding compressor/transcoder fuzz testing from XUASTC branch 2025-11-18 17:24:44 -05:00
Richard Geldreich
5179a06343 rebuild WASM 2025-11-18 17:24:25 -05:00
Richard Geldreich
221d2230e5 yet another warning fix before_xuastc 2025-11-08 12:55:41 -05:00
Richard Geldreich
cbb8ebefa4 Fixing ftell() error handling issue introduced by warning merge from PR 408 2025-11-08 11:28:34 -05:00
Richard Geldreich
703d05cc7a Adding MSVC .manifest to cmake build 2025-11-08 09:09:30 -05:00
Richard Geldreich
f4614b0a3d Adding EXAMPLES option so they can be optionally compiled (partially from PR 383) 2025-11-08 09:05:15 -05:00
Richard Geldreich
e31e3e1a3f adding newline to end of file 2025-11-06 13:38:44 -05:00
Richard Geldreich
196db8cbe2 Merging as much of PR #408 as we safely can.
PR 408's cmakelists.txt file has too many issues (OpenCL breaks on Windows/OSX) and changing our options to have the "BASISU_" prefix will break upstream builds.
2025-11-06 13:19:40 -05:00
Richard Geldreich
b1110111d4 adding -O3 to wasm linker options 2025-09-20 10:41:16 -04:00
Rich Geldreich
1e8fbb14fb Merge pull request #401 from needle-tools/fix/add-link-flags-o3
Fix: bring back -O3 in LINK_FLAGS for 150kB smaller JS+WASM build
2025-09-20 10:34:30 -04:00
Richard Geldreich
e8855f8840 Compiler warning fixes.
Cleaning up handling of 8-byte lengths/offsets in KTX2 files. (In practice, we don't currently accept files this large anyway.)
2025-09-20 10:10:08 -04:00
hybridherbst
3393721250 Fix: bring back -O3 in LINK_FLAGS for 150kB smaller JS+WASM build 2025-09-11 10:24:46 +02:00
Richard Geldreich
ca56dbbaff Fixing minor compile issue introduced in merged PR 2025-09-05 22:23:31 -04:00
Rich Geldreich
87a1e1fbe6 Merge pull request #400 from zeux/transcoder-unity-build
Fix CMake Unity builds
2025-09-05 22:18:54 -04:00
Richard Geldreich
b17dd2967c Rebuilt WASM execs with latest changes/fixes 2025-09-05 21:24:51 -04:00
Richard Geldreich
dfcfe7bf19 clang warning fix 2025-09-05 21:13:22 -04:00
Richard Geldreich
f96fece6ee typo fix 2025-09-05 21:13:10 -04:00
Richard Geldreich
2c6712697c Fixing thread pool shutdown so the kill flag is set inside the mutex, preventing a race. This could cause very rare lockups on the previous code.
Also for more safety to prevent lockups on buggy C run-times, adding a 1s timeout in the thread pool condition variable wait.
2025-09-05 21:13:04 -04:00
Richard Geldreich
2ac62fb349 changing port from 8000 to 8080 2025-09-05 21:11:00 -04:00
Richard Geldreich
dcb7db72d2 Very minor fix/improvement to HDR 6x6 encoder (channel pair min correlation check). On blocks with all channels active (by far the most common case in practice), there's no difference. 2025-09-05 21:08:02 -04:00
Richard Geldreich
69ad18e035 removing unnecessary debug prints 2025-09-02 17:33:13 -04:00
Rich Geldreich
97a121451d Update README.md 2025-08-22 15:52:14 -04:00
Arseny Kapoulkine
f12efae6f9 Fix CMake Unity builds
transcoder/basisu_astc_helpers.h has a pragma once, but it is also an
implementation header (when ASTC_HELPERS_IMPLEMENTATION is defined).

pragma once is not necessary here as the header has a separate ifdef
guard, and it blocks attempts to compile Basis as a CMake Unity build
(CMAKE_UNITY_BUILD=ON) or as a single-translation unit non-CMake build
if the helpers header has been included earlier in the TU, as the second
inclusion with implementation defined doesn't actually include the
header.
2025-08-17 10:33:16 -07:00
Rich Geldreich
1172d07395 Update README.md 2025-07-20 21:00:34 -04:00
Richard Geldreich
5d64f944f5 Fixing BASISU_OPENCL_ASSERT_ON_ANY_ERRORS so it's 0 by default 2025-07-17 12:18:18 -04:00
Richard Geldreich
480ab65821 fixing license 2025-07-08 11:24:27 -04:00
Rich Geldreich
d5906ac837 Update Apache-2.0.txt
adding copyright
2025-07-08 11:20:39 -04:00
Rich Geldreich
d8d1bfc532 Update README.md 2025-06-30 21:25:12 -04:00
Richard Geldreich
100ace82d2 emcc warning fixes, fixing warnings in WASM cmakelists.txt files, changing ETC1S encoder to use std::map vs. std::unordered_map for hopefully more cross platform determinism 2025-06-24 17:22:05 -04:00
Richard Geldreich
75b19f6aff new file 2025-06-24 17:20:16 -04:00
Rich Geldreich
f0fe96152f Merge pull request #391 from cubeleo/master
CMake: Fixed VS build by setting the C++ standard to 17 for "if constexpr".
2025-06-24 16:08:14 -04:00
Rich Geldreich
e62d9a3af0 Merge pull request #387 from Chubercik/ambiguity_fix
Fix ambiguous calls to `safe_shift_left()` in `basisu_containers.h`
2025-06-18 21:38:26 -04:00
Rich Geldreich
a626bf5820 Merge pull request #394 from Chubercik/no_superscript
Change `²` (U+00B2) to `^2`
2025-06-18 21:27:14 -04:00
Rich Geldreich
4b7cdb1753 Merge pull request #395 from akien-mga/transcoder-containers-include-ctype.h
Add missing `ctype.h` include for transcoder/basisu_containers_impl.h
2025-06-18 21:26:15 -04:00
Rémi Verschelde
40288583c7 Add missing ctype.h include for transcoder/basisu_containers_impl.h
The file uses `isdigit` and `isalpha` from `ctype.h`, and recent MSVC seems
to require it explicitly.
2025-05-07 23:16:28 +02:00
Jakub Marcowski
4855a3e338 Change ² (U+00B2) to ^2 2025-04-25 15:54:31 +02:00
Rich Geldreich
04f30f081a Update README.md 2025-04-06 00:23:12 -04:00
Richard Geldreich
42c21d8066 removing unnecessary #include (which was used for testing) 2025-03-22 17:12:16 -04:00