UNPKG

@jsquash/avif

Version:

Wasm AVIF encoder and decoder supporting the browser. Repackaged from Squoosh App.

15 lines (8 loc) 285 B
# AVIF decoder - Source: <https://github.com/AOMediaCodec/libavif> - Version: v1.0.1 ## Example See `example.html` ## API ### `RawImage decode(std::string buffer)` Decodes the given avif buffer into raw RGBA. `RawImage` is a class with 3 fields: `buffer`, `width`, and `height`.