mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
* wip * doh, whitespace * Updating emscripten, restoring export name * Updating oxipng * Build wasm * Fix oxipng; upgrade Rust * More v2-codec integration * AVIF now working * Non-working JXL * Build hqx with Rust 1.40; refactor build-rust*.sh * Set web target * wp2 wip * wp2 decode options * Better logo height when loading the logo into squoosh * Build oxi * JAKE IS AN IDIOT * wip oxipng * Fixing case sensitive imports * adding log * another log * Abort tasks when compress component removed * Adding progressive option to JXL * Fix bug going to & from original image * Exposing epf in jxl * logs * Bypass initial CSS plugin * Revert "logs" * Adding root * Fix for finding TSC on Windows * Use spawn again * Converting to module paths * Remove spawnP * silly * oops * logs * Fixing glob paths in CSS plugin * Path normalising * Normalise paths for CSS plugin * Normalise again * Use correct func * Adding lossless mode and near lossless (but hidden in UI) * Removing useless comments * Some logging * Update JXL to v0.1. (#846) * Rebuild JXL * Adding slight loss option Co-authored-by: Ingvar Stepanyan <rreverser@google.com> Co-authored-by: Luca Versari <veluca93@gmail.com>
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* @param {Uint8Array} data
|
|
* @param {number} level
|
|
* @returns {Uint8Array}
|
|
*/
|
|
export function optimise(data: Uint8Array, level: number): Uint8Array;
|
|
/**
|
|
* @param {number} num
|
|
* @returns {any}
|
|
*/
|
|
export function worker_initializer(num: number): any;
|
|
/**
|
|
*/
|
|
export function start_main_thread(): void;
|
|
/**
|
|
*/
|
|
export function start_worker_thread(): void;
|
|
|
|
export type InitInput =
|
|
| RequestInfo
|
|
| URL
|
|
| Response
|
|
| BufferSource
|
|
| WebAssembly.Module;
|
|
|
|
export interface InitOutput {
|
|
readonly optimise: (a: number, b: number, c: number, d: number) => void;
|
|
readonly malloc: (a: number) => number;
|
|
readonly free: (a: number) => void;
|
|
readonly worker_initializer: (a: number) => number;
|
|
readonly start_main_thread: () => void;
|
|
readonly start_worker_thread: () => void;
|
|
readonly __wbindgen_export_0: WebAssembly.Memory;
|
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
readonly __wbindgen_start: () => void;
|
|
}
|
|
|
|
/**
|
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
*
|
|
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
* @param {WebAssembly.Memory} maybe_memory
|
|
*
|
|
* @returns {Promise<InitOutput>}
|
|
*/
|
|
export default function init(
|
|
module_or_path?: InitInput | Promise<InitInput>,
|
|
maybe_memory?: WebAssembly.Memory,
|
|
): Promise<InitOutput>;
|