mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
Update to newer memory management model
This commit is contained in:
committed by
Ingvar Stepanyan
parent
83d5357ac0
commit
bb6893e025
10
codecs/wp2/dec/wp2_dec.d.ts
vendored
10
codecs/wp2/dec/wp2_dec.d.ts
vendored
@@ -1,13 +1,5 @@
|
||||
interface RawImage {
|
||||
buffer: Uint8Array;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
|
||||
interface WP2Module extends EmscriptenWasm.Module {
|
||||
decode(data: BufferSource): RawImage;
|
||||
free_result(): void;
|
||||
decode(data: BufferSource): ImageData | null;
|
||||
}
|
||||
|
||||
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WP2Module>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user