AVIF in worker

This commit is contained in:
Jake Archibald
2020-09-16 11:48:13 +01:00
parent 2583d689b9
commit 7776134bc2
9 changed files with 171 additions and 42 deletions

View File

@@ -1,6 +1,7 @@
interface AVIFModule extends EmscriptenWasm.Module {
export interface AVIFModule extends EmscriptenWasm.Module {
decode(data: BufferSource): ImageData | null;
}
export default function(opts: EmscriptenWasm.ModuleOpts): AVIFModule;
declare var moduleFactory: EmscriptenWasm.ModuleFactory<AVIFModule>;
export default moduleFactory;