mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-16 18:49:50 +00:00
31 lines
644 B
TypeScript
31 lines
644 B
TypeScript
export interface EncodeOptions {
|
|
minQuantizer: number;
|
|
maxQuantizer: number;
|
|
minQuantizerAlpha: number;
|
|
maxQuantizerAlpha: number;
|
|
tileRowsLog2: number;
|
|
tileColsLog2: number;
|
|
speed: number;
|
|
subsample: number;
|
|
}
|
|
|
|
export const type = 'avif';
|
|
export const label = 'AVIF';
|
|
export const mimeType = 'image/avif';
|
|
export const extension = 'avif';
|
|
export const defaultOptions: EncodeOptions = {
|
|
minQuantizer: 33,
|
|
maxQuantizer: 63,
|
|
minQuantizerAlpha: 33,
|
|
maxQuantizerAlpha: 63,
|
|
tileColsLog2: 0,
|
|
tileRowsLog2: 0,
|
|
speed: 8,
|
|
subsample: 1,
|
|
};
|
|
|
|
export interface EncoderState {
|
|
type: typeof type;
|
|
options: EncodeOptions;
|
|
}
|