Commit Graph
238 Commits
Author SHA1 Message Date
richgel999 b67956e5b7 Adding new files 2019-09-19 13:17:57 -07:00
richgel999 3629438d43 Transcoder update: ASTC 4x4 RGB/RGBA, ATC RGB/RGBA, BC7 mode 5 RGBA, PVRTC1 4bpp RGBA, and uncompressed raster formats. 2019-09-19 12:29:44 -07:00
Rich Geldreich 09e71afedf Update README.md 2019-09-09 13:38:18 -07:00
Rich Geldreich 98d9848983 Update README.md 2019-09-09 13:37:33 -07:00
Rich Geldreich 6002320758 Merge pull request #46 from Squareys/iterator-dbg-level
Avoid iterator debug level mismatches for linking as library
2019-08-22 08:50:52 -07:00
richgel999 8b6cfe1115 Adding missing enums for BC7 and PVRTC 32bpp - somehow these got messed up in a reformat. 2019-08-21 21:15:40 -07:00
richgel999 ab3c0e86b3 Fixing basis_enc.h so it doesn't include itself 2019-07-29 14:25:51 -07:00
Rich Geldreich 680ebc80e7 Updating readme 2019-07-28 20:45:11 -07:00
richgel999 f8f87d51f4 Basis Universal doesn't pack blocks to plain ETC1, and it doesn't try to explicitly pack solid color blocks. To reduce the size of the code to maintain, I'm removing this unused/dead code. 2019-07-28 20:29:51 -07:00
Squareys 2df7937bbf Add BASISU_NO_ITERATOR_DEBUG_LEVEL symbol to avoid debug level mismatches
Signed-off-by: Squareys <squareys@googlemail.com>
2019-07-07 22:48:27 +02:00
Rich Geldreich 087198fe26 Merge pull request #26 from prestomation/master
Modularize emscripten build.
2019-06-26 16:58:33 -07:00
richgel999 bbbce07039 Removing unnecessary assert. 2019-06-25 19:32:59 -07:00
richgel999 c9d24115ae Fixing cubemap .KTX files so the proper image_size field is written. Fixes this bug: https://github.com/BinomialLLC/basis_universal/issues/40 2019-06-22 22:09:10 -07:00
Rich Geldreich f0cb9db95a Merge pull request #36 from jherico/fix/assignment_copy_ctor_disable
Properly disable copy ctor and assignment operator
2019-06-17 19:37:53 -07:00
Brad Davis fccfdd93ef Properly disable copy ctor and assignment operator 2019-06-15 10:31:21 -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 f3f7c69f28 Merge pull request #32 from cwoffenden/previewers
Generates Windows thumbnails and preview
2019-06-11 11:02:47 -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
Carl Woffenden 79d043092f Added flush after updating DIB contents 2019-06-10 08:50:52 +02:00
Rich Geldreich 7d784c7288 Correcting the copyright date, as all of the Basis Universal code was written during/after April '19. 2019-06-09 18:29:41 -07:00
Carl Woffenden b1c5642c8d Fix for dimensions that aren't a multiple of four
Grows the preview size to the nearest 4x4 to match the block size used.
2019-06-09 21:17:01 +02:00
Carl Woffenden 7121deeef7 Preview image now local 2019-06-09 11:48:37 +02:00
Carl Woffenden 37a9dc3da3 Initial working Windows preview
Creates previews from Basis files. Rough but creates thumbnails and preview pane views from the first images nearest mipmap.
2019-06-08 18:49:08 +02:00
Rich Geldreich 43fccbd21f Update README.md 2019-06-07 20:55:32 -07:00
Rich Geldreich 231fd71797 Update README.md 2019-06-07 20:55:06 -07:00
Rich Geldreich b6c20de094 Update README.md 2019-06-07 20:53:51 -07:00
richgel999 9bb867f98b Enabling debug flags in transcoder 2019-06-07 20:52:54 -07:00
richgel999 a92424d772 Adding webgl_videotest files 2019-06-07 20:51:00 -07:00
Rich Geldreich 938fe8c204 Removing OSX build instructions 2019-06-07 20:48:18 -07:00
Rich Geldreich 589d38971f Texture video changes 2019-06-07 20:47:21 -07:00
richgel999 ab722fa2e1 - Adding support for skip blocks, i-frames and p-frames to the backend and transcoder, for texture video use.
- For PVRTC1, we now memset() any extra blocks after the blocks we know will be transcoded into. This is done because in GL there is padding that occurs on textures smaller than 8x8.
- Removing all OpenMP usage and replacing it with a basis C++11 job system.
- Fixing TSVQ class so it can split very long "thin" clusters that before weren't being split. This improves endpoint quantization on videos and complex 2D textures.
- More frontend perf. optimizations.

Tested on OSX, Linux with gcc/clang, and Win using MSVC 2019.
1.08 v1.08
2019-06-07 20:35:38 -07:00
Arseny Kapoulkine 00001426de Fix webgl CMakeLists.txt setup
It looks like #7 didn't update CMakeLists.txt properly - defines
specified with -D have to be added as compile definitions.

Additionally, -O3 must be specified redundantly as a compile option and
as a link option - compile option makes .wasm bits small & fast, and
link option enables JS minifier.

After this fix CMake build results in minimal js/wasm files as well.
2019-06-02 20:46:47 -07:00
Rich Geldreich 06019e73ad Updating examples 2019-06-01 15:24:47 -07:00
Rich Geldreich bc5864c17d Updating forward compat section 2019-06-01 15:23:30 -07:00
Rich Geldreich 78f1aa3c22 Updating -level section 2019-06-01 15:21:07 -07:00
Rich Geldreich cffae80451 Updating -level section 2019-06-01 15:19:51 -07:00
Rich Geldreich 72f1cfe514 Updating -level section 2019-06-01 15:18:16 -07:00
Rich Geldreich 1ea4a92893 Fixing graph's axis label 2019-05-31 15:49:07 -07:00
Rich Geldreich 13197a1c30 Update README.md 2019-05-31 15:47:55 -07:00
Rich Geldreich ad308cc26c Adding encoder level vs. perf/quality graph. 2019-05-31 15:42:12 -07:00
Rich Geldreich f631b29a7e Frontend optimizations: Adding multiple compression levels to the encoder's frontend. Level 2 and 4 are equivalent to the initial release (default or -slower). Level 1 is now the new default, and is on average 21% faster than level 2. (Or more, up to 2-2.5x, on large images.) The help text documents what encoder features are used in each level. Level 0 is fine for most images, but is weak on artificial images and really large complex images. -slower now sets level 2 (not 4).
Adding -only_etc1 command line option, because sometimes during unpack you only want the ETC1 images.

Total timing and avg. Y PSNR across 59 test images, quality 128:

L Time PSNR
0 121.4	35.45
1 172.4	36.87
2 216.0	37.13
3 511.4	37.15
4 665.9	37.41
5 1483.4	37.43

Initial release:
L Time PSNR
0 216.77	37.13
1 701.84	37.41
2019-05-31 15:14:58 -07:00
Rich Geldreich 00b5c254ab Encoder frontend fix: Setting unquantized ETC1S selectors (that got stomped in the previous optimization). 2019-05-29 16:57:59 -07:00
Rich Geldreich a2144d7ff4 Update README.md 2019-05-29 12:48:42 -07:00
Rich Geldreich 3050ca4a70 Optimizing basisu_frontend::init_endpoint_training_vectors() so it doesn't go recompute the ETC1S block basecolor/inten tables again. We already do this in basisu_frontend::init_etc1_images(). This change should not change the output files in any way. 2019-05-29 12:11:48 -07:00
Rich Geldreich 21ab9bebb5 Update README.md 2019-05-28 18:07:29 -07:00
Rich Geldreich fbeb5d014c Update README.md 2019-05-28 17:18:22 -07:00
Rich Geldreich 0c2d072a29 Update README.md
Updating -mip_srgb options
2019-05-28 17:16:38 -07:00
Rich Geldreich d284b08a21 Update README.md 2019-05-28 17:14:47 -07:00
Rich Geldreich dd29d75471 Default mipmap filtering now follows the -linear option. Also updating tool help text, and bumping the version. 2019-05-28 17:11:38 -07:00
Rich Geldreich c180a087b9 Minor transcoder update: Adding support for arbitrary output texture row pitches, for usage with the Vulkan rendering API. 2019-05-28 15:41:16 -07:00