Files
squoosh/codecs/avif_dec/avif_dec.d.ts
Ingvar Stepanyan 2edb8cbd7e Upgrade AVIF decoding code
- Update to newer APIs.
 - Avoid manual pixel-by-pixel copy in favour of decoding directly to desired format & bit depth.
 - Avoid use-after-free by cloning the Uint8Array Wasm memory view into a JS-owned Uint8Array right away.
2020-08-05 14:38:56 +01:00

13 lines
248 B
TypeScript

interface RawImage {
buffer: Uint8Array;
width: number;
height: number;
}
interface AVIFModule extends EmscriptenWasm.Module {
decode(data: BufferSource): RawImage;
}
export default function(opts: EmscriptenWasm.ModuleOpts): AVIFModule;