Files
squoosh/src_old/codecs/avif/encoder-meta.ts
Jake Archibald 7776134bc2 AVIF in worker
2020-09-16 11:48:13 +01:00

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;
}