mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 03:00:13 +00:00
Extra Wp2 Options (#853)
* wip * wip * Add extra options * Even more options! * Update src/features/encoders/wp2/client/index.tsx Co-authored-by: Surma <surma@surma.dev> Co-authored-by: Surma <surma@surma.dev>
This commit is contained in:
18
codecs/wp2/enc/wp2_enc.d.ts
vendored
18
codecs/wp2/enc/wp2_enc.d.ts
vendored
@@ -4,6 +4,24 @@ export interface EncodeOptions {
|
||||
speed: number;
|
||||
pass: number;
|
||||
sns: number;
|
||||
uv_mode: UVMode;
|
||||
csp_type: Csp;
|
||||
error_diffusion: number;
|
||||
use_random_matrix: boolean;
|
||||
}
|
||||
|
||||
export const enum UVMode {
|
||||
UVModeAdapt = 0, // Mix of 420 and 444 (per block)
|
||||
UVMode420, // All blocks 420
|
||||
UVMode444, // All blocks 444
|
||||
UVModeAuto, // Choose any of the above automatically
|
||||
}
|
||||
|
||||
export const enum Csp {
|
||||
kYCoCg,
|
||||
kYCbCr,
|
||||
kCustom,
|
||||
kYIQ,
|
||||
}
|
||||
|
||||
export interface WP2Module extends EmscriptenWasm.Module {
|
||||
|
||||
Reference in New Issue
Block a user