Integrate JXL decoder

This commit is contained in:
Surma
2020-02-06 14:31:27 -08:00
committed by Ingvar Stepanyan
parent 3697635bae
commit 36d23644aa
10 changed files with 481 additions and 2 deletions

View File

@@ -4,10 +4,10 @@ interface RawImage {
height: number;
}
interface AVIFModule extends EmscriptenWasm.Module {
interface JXLModule extends EmscriptenWasm.Module {
decode(data: BufferSource): RawImage;
free_result(): void;
}
export default function(opts: EmscriptenWasm.ModuleOpts): AVIFModule;
export default function(opts: EmscriptenWasm.ModuleOpts): JXLModule;