Updating AVIF, and 'auto' SSIM option (#1008)

This commit is contained in:
Jake Archibald
2021-05-10 18:56:33 +01:00
committed by GitHub
parent 912c1fac08
commit ff9dea465f
9 changed files with 29 additions and 20 deletions

View File

@@ -1,3 +1,9 @@
export const enum AVIFTune {
auto,
psnr,
ssim,
}
export interface EncodeOptions {
cqLevel: number;
denoiseLevel: number;
@@ -8,7 +14,7 @@ export interface EncodeOptions {
subsample: number;
chromaDeltaQ: boolean;
sharpness: number;
targetSsim: boolean;
tune: AVIFTune;
}
export interface AVIFModule extends EmscriptenWasm.Module {