Files
squoosh/codecs
Jake Archibald 13631f1cfc Extra Wp2 Options (#853)
* wip

* wip

* Add extra options

* Even more options!

* Update src/features/encoders/wp2/client/index.tsx

Co-authored-by: Surma <surma@surma.dev>

Co-authored-by: Surma <surma@surma.dev>
2020-11-20 16:12:38 +00:00
..
2020-11-19 11:12:29 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +00:00
2020-11-20 16:12:38 +00:00
2020-08-04 13:35:58 +01:00
2020-11-19 11:00:23 +00:00
2020-11-19 11:00:23 +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
2020-11-19 11:00:23 +00: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.