Add AVIF encoder

This commit is contained in:
Surma
2020-02-05 17:45:48 -08:00
committed by Ingvar Stepanyan
parent 409df481db
commit e1ab43b76f
9 changed files with 1353 additions and 0 deletions

9
codecs/avif_enc/avif_enc.d.ts vendored Normal file
View File

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