mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
Update to newer memory management model
This commit is contained in:
committed by
Ingvar Stepanyan
parent
83d5357ac0
commit
bb6893e025
5
codecs/wp2/enc/wp2_enc.d.ts
vendored
5
codecs/wp2/enc/wp2_enc.d.ts
vendored
@@ -1,8 +1,7 @@
|
||||
import { EncodeOptions } from '../../src/codecs/wp2/encoder-meta';
|
||||
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;
|
||||
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array | null;
|
||||
}
|
||||
|
||||
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WP2Module>;
|
||||
|
||||
Reference in New Issue
Block a user