Commit Graph

464 Commits

Author SHA1 Message Date
Maciej Kacper Jagiełło
4433e80fe4 Enable building the encoder with Enscripten to WebAssebly as a Nodejs cli tool. 2020-05-16 17:28:17 +02:00
Rich Geldreich
374a04d54d Merge pull request #134 from cwoffenden/transcoder-xcode
Xcode 11 transcoder warnings removed
2020-05-06 19:59:59 -04:00
Rich Geldreich
cc1dac78fb Merge pull request #136 from aaronfranke/travis
Add a formatting script for Travis CI
2020-05-06 19:57:43 -04:00
Rich Geldreich
525458ae82 Merge pull request #137 from ondys/patch-2
Fixed undefined behavior in BASISU_OFFSETOF
2020-05-06 19:56:56 -04:00
richgel999
a1689504ea Huffman encoder fixes for very large streams
Allowing Huffman decoder to use different fast bits table sizes
Adding NV and AMD BC1 decoders
2020-05-05 23:10:21 -04:00
richgel999
bb64ec604c Renaming USE_UNALIGNED_WORD_READS to BASISD_USE_UNALIGNED_WORD_READS.
Setting BASISD_USE_UNALIGNED_WORD_READS to 0 for WebAssembly builds.
Renaming IS_BIG_ENDIAN to BASISD_IS_BIG_ENDIAN.
2020-05-05 22:40:40 -04:00
Ondrej Stava
57ca9acadd Fixed undefined behavior in BASISU_OFFSETOF
The original implementation was dereferencing a nullptr which is an undefined behavior according to the C++ spec. It was triggering some automatic errors during our sanitizer tests (asan with nullptr check).

The fix replaces the offset with standard implementation of offsetof that uses compiler built in instructions when available (avoiding the undefined behavior).
2020-04-28 11:11:10 -07:00
Aaron Franke
409d9a502e Commit files changed by the formatting script 2020-04-25 00:21:48 -04:00
Aaron Franke
4fe7cefcd1 Add a formatting script for Travis CI 2020-04-25 00:21:30 -04:00
Rich Geldreich
aaa13941ff Fixing tabs 2020-04-22 01:19:43 -04:00
Rich Geldreich
74643008f0 New file 2020-04-22 01:18:44 -04:00
Carl Woffenden
5c11484595 Xcode 11 transcoder warnings removed
With the default Xcode 11 settings, these non-functional changes remove warnings when building for iOS and Mac, notably:

Possible misuse of comma operator here

Implicit conversion loses integer precision: 'long' to 'int'
2020-04-21 19:11:10 +02:00
Rich Geldreich
774549d006 Merge pull request #125 from cwoffenden/gitignore-tweaks
Ignoring VS working files and Mac finder
2020-04-14 21:05:03 -04:00
Rich Geldreich
66d5306ba2 Merge pull request #126 from brunogm0/master
Further optimize img!
2020-04-14 21:04:33 -04:00
Rich Geldreich
fadb1e8e94 Merge pull request #128 from cwoffenden/vs-warnings-1
Resolved various Visual Stufio warnings
2020-04-10 14:38:06 -04:00
Rich Geldreich
7a7025e919 Merge pull request #127 from toji/webgl-loader
Added basis_loader.js for WebGL
2020-04-10 14:26:43 -04:00
Rich Geldreich
7398094547 Update README.md 2020-04-09 00:17:50 -04:00
Rich Geldreich
2e5100bda7 Update README.md 2020-04-09 00:13:11 -04:00
Rich Geldreich
76fa25921e Fixing command line help text related to mipmap filtering & sRGB. 2020-04-09 00:03:51 -04:00
Rich Geldreich
804f1415d1 Removing invalid assert. 2020-04-08 23:57:45 -04:00
Rich Geldreich
744a8c1a63 Update README.md 2020-04-08 14:02:59 -04:00
Rich Geldreich
702734ff86 Update README.md 2020-04-08 13:56:03 -04:00
Carl Woffenden
ee828597e7 Resolved various Visual Stufio warnings
All configurations: "warning MSB8004: Output Directory does not end with a trailing slash." Release: "command line warning D9025: overriding '/sdl' with '/GS-'" and "warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc"
2020-04-08 14:25:31 +02: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.39‬kb  -> 1425.78kb  (11.4%)
2020-04-02 15:13:03 -03:00
Carl Woffenden
9dceb725f8 Ignoring VS working files and Mac finder
Minor change but stops the need to keep manually ignoring/reverting working files.
2020-04-02 16:54:49 +02:00
Rich Geldreich
c012fe694b Enabling jpeg linear chroma filtering 2020-03-27 23:52:46 -04:00
Rich Geldreich
09b23971fd Minor fixes: Fixing signed left shift, adding limit to 1000 progressive scans 2020-03-27 22:20:17 -04:00
Rich Geldreich
38d1fa2734 Update README.md 2020-03-25 05:38:27 -04:00
Rich Geldreich
078ce180bc Adding JPEG reading support 2020-03-25 05:24:37 -04:00
Rich Geldreich
3527cc91fc New files 2020-03-25 05:21:33 -04:00
Rich Geldreich
e9c55faac7 Merge pull request #106 from Cheney-W/Cheney
Include <ostream> in basisu_enc.h
2020-03-22 23:55:36 -04:00
Rich Geldreich
12889dfe9d Adding -renorm option, manually merged from
29db2936fe
2020-03-22 23:53:05 -04:00
Rich Geldreich
206622d8fe Update to TGA reader 2020-03-22 23:44:26 -04:00
Rich Geldreich
3d4a39a147 Adding TGA reading support 2020-03-22 23:44:25 -04:00
Rich Geldreich
92e5720bf2 Merge pull request #121 from EwoutH/patch-1
CI: Add basic AppVeyor configuration
2020-03-22 23:40:14 -04:00
Rich Geldreich
54a2db06f1 Merge pull request #116 from cwoffenden/single-file-transcoder
Single file transcoder fixes
2020-03-22 23:39:18 -04:00
Rich Geldreich
6ef114ac1e Merge pull request #117 from cwoffenden/previewers-uastc
Updated Windows previewer with UASTC support
2020-03-22 23:38:27 -04:00
Rich Geldreich
23e1eebca2 Merge pull request #118 from jschueller/patch-1
CMake: Only unices have the strip command
2020-03-22 23:37:34 -04:00
Rich Geldreich
61c10ece26 Merge pull request #119 from cwoffenden/readme-typos-1
Minor typos
2020-03-22 23:36:40 -04:00
Rich Geldreich
a15c2d382a Merge pull request #122 from EwoutH/imgbot
[ImgBot] Optimize images
2020-03-22 23:35:36 -04:00
Ewout ter Hoeven
768e29a4e9 AppVeyor: Specify artifact path 2020-03-22 09:31:54 +01:00
Ewout ter Hoeven
5824a400be CI: Add initial AppVeyor configuration 2020-03-22 09:26:51 +01: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
Carl Woffenden
9462a0b6d6 Minor typos 2020-03-21 20:43:58 +01:00
Julien Schueller
b474b3d16e CMake: Only unices have the strip command
Fixes the build on MinGW
2020-03-21 17:25:46 +01:00
Carl Woffenden
56d2782b5f Minor docs 2020-03-21 16:31:39 +01:00
Carl Woffenden
a9ee154233 Fixed Emscripten demo when transcoding to uncompressed formats
(Also added editor config file)
2020-03-21 16:13:45 +01:00
Carl Woffenden
310aea5a66 Minor typo 2020-03-21 15:42:19 +01:00