Add WebP2 support

This commit is contained in:
Surma
2020-10-30 16:56:52 +00:00
committed by Ingvar Stepanyan
parent e60ffddfd7
commit 18b2bd1135
24 changed files with 726 additions and 2 deletions

13
codecs/wp2/dec/wp2_dec.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
interface RawImage {
buffer: Uint8Array;
width: number;
height: number;
}
interface WP2Module extends EmscriptenWasm.Module {
decode(data: BufferSource): RawImage;
free_result(): void;
}
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WP2Module>;