zstd/contrib/single_file_decoder/examples
Carl Woffenden 88975e8c25 Minor: documented sizes smaller 2019-09-02 18:15:31 +02:00
..
README.md Correctness and tidy 2019-09-02 18:02:50 +02:00
emscripten.c Correctness and tidy 2019-09-02 18:02:50 +02:00
shell.html changed contrib project name for clarity 2019-08-27 15:50:47 -07:00
simple.c Minor: documented sizes smaller 2019-09-02 18:15:31 +02:00
testcard.png Correctness and tidy 2019-09-02 18:02:50 +02:00

README.md

Single File ZStandard Examples

The examples #include the generated zstddeclib.c directly but work equally as well when including zstd.h and compiling the amalgamated source separately.

simple.c is the most basic example of decompressing content and verifying the result.

emscripten.c is a bare-bones Emscripten compiled WebGL demo using Zstd to further compress a DXT1 texture (see the original PNG image). The 256x256 texture would normally be 32kB, but even when bundled with the Zstd decompressor the resulting WebAssembly weighs in at 41kB (shell.html is a support file to run the Wasm).

The example files in this directory are released under a Creative Commons Zero license.