Files
squoosh/codecs
Ingvar Stepanyan d1cff7d84e Consolidate C++ builds
Use a shared base image with fixed Emscripten version, autotools and optimisation flags for all C++ codecs.

Additionally, move build commands for codecs themselves to Makefile - they're already platform-specific, and Make allows for better caching and parallelisation that custom ad-hoc scripts.

This is essentially same as #777 but for C++.
2020-07-28 18:05:09 +01:00
..
2020-07-24 14:25:55 +01:00
2020-07-28 18:05:09 +01:00
2020-07-28 18:05:09 +01:00
2020-07-24 14:25:55 +01:00
2020-07-24 14:52:24 +01:00
2020-07-14 17:23:31 +01:00
2020-07-28 18:05:09 +01:00
2020-07-24 14:25:55 +01:00
2020-07-28 18:05:09 +01:00
2020-07-24 14:52:24 +01:00
2020-07-28 18:05:09 +01: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

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.