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

8
codecs/wp2/enc/wp2_enc.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import { EncodeOptions } from '../../src/codecs/wp2/encoder-meta';
interface WP2Module extends EmscriptenWasm.Module {
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array;
free_result(): void;
}
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WP2Module>;