
* Refactoring codecs * Plugging in new processor * Fixing decorator * MozJPEG free issue * Better worker aborting, and terminate workers that aren't used for 10 seconds * Better comment * Ooops, half-typed comment * Uncommenting problematic line * Surma fixed it! * Abstracting WASM initialisation * Better comment * Don't need this. * Adding ticket * noInitalRun * Reverting MozJPEG issue demo * Making a const for worker timeout * Inline docs * Bail early rather than nesting * Addressing nits
9 lines
324 B
TypeScript
9 lines
324 B
TypeScript
import { EncodeOptions } from '../../src/codecs/mozjpeg/encoder-meta';
|
|
|
|
interface MozJPEGModule extends EmscriptenWasm.Module {
|
|
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array;
|
|
free_result(): void;
|
|
}
|
|
|
|
export default function(opts: EmscriptenWasm.ModuleOpts): MozJPEGModule;
|