UNPKG

jassub

Version:

The Fastest JavaScript SSA/ASS Subtitle Renderer For Browsers

10 lines (9 loc) • 592 B
export type WebMatrixCoefficients = VideoMatrixCoefficients | 'bt2020-ncl'; type Levels = 'TV' | 'PC'; type VideoMatrix = 'BT.601' | 'BT.709' | 'BT.2020'; export type ColorSpace = `${VideoMatrix | 'SMPTE240M' | 'FCC'} ${Levels}`; export declare const LIBASS_YCBCR_MATRIX: ReadonlyArray<ColorSpace | undefined>; export declare const WEB_MATRIX_COEFFICIENTS: Record<Exclude<WebMatrixCoefficients, 'rgb'>, VideoMatrix>; export declare const IDENTITY_MATRIX: Float32Array<ArrayBuffer>; export declare const COLOR_CONVERSIONS: Record<ColorSpace, Partial<Record<ColorSpace, number[]>>>; export {};