Files
squoosh/codecs
Jamie 5f72c2ed74 Fix single threaded avif encoding (#1409)
* Fix single threaded encoding by compiling a separate copy of libsharpyuv
- This version will have threads turned off

* Add the fixed compilations of avif_enc.js and the wasm file

* ensure that ST and MT builds run sequentially

* update OUT_ENC_JS to be an order-only dependency

* use WEBP_BUILD_WEBP_JS=ON flag instead

* update compiled ST files

* refactor to use -DWEBP_USE_THREAD=OFF
2024-08-13 11:11:17 +01:00
..
2021-06-02 17:03:14 +01:00
2021-06-08 10:43:33 -04:00
2024-03-16 19:05:59 +13:00
2020-11-19 11:00:23 +00:00
2021-07-20 19:14:23 +01:00
2021-06-08 11:02:43 -04:00
2021-06-08 11:07:32 -04:00
2020-12-01 14:36:30 +00:00
2024-01-24 08:04:33 +00:00
2018-09-04 16:49:45 +01:00
2018-05-15 17:14:29 +01:00
2018-06-13 23:40:24 +01:00
2018-11-15 22:02:11 +01:00
2024-03-16 17:35:50 +13:00

Codecs

This folder contains a self-contained sub-project for each encoder and decoder that squoosh supplies.

Build

Each subproject can be built using Docker the following commands:

$ npm install
$ npm run build

This will build two files: <codec name>_<enc or dec>.js and <codec name>_<enc or dec>.wasm. It will most likely be necessary to set Module["locateFile"] to successfully load the .wasm file. When the .js file is loaded, a global <codec name>_<enc or dec> is created with the same API as an Emscripten Module.

Each codec will document its API in its README.