mirror of
https://github.com/zoriya/libpgs-js.git
synced 2026-08-27 00:00:51 +00:00
Not for upstream: this branch only exists so a consumer can depend on the fork straight from git while the `ready` promise waits on a release.
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { WindowDefinition } from "./pgs/windowDefinitionSegment";
|
|
import { CompositionObject } from "./pgs/presentationCompositionSegment";
|
|
/**
|
|
* This class contains the compiled subtitle data for a whole frame.
|
|
*/
|
|
export declare class SubtitleData {
|
|
/**
|
|
* The total width of the presentation composition (screen).
|
|
*/
|
|
readonly width: number;
|
|
/**
|
|
* The total height of the presentation composition (screen).
|
|
*/
|
|
readonly height: number;
|
|
/**
|
|
* The pre-compiled composition elements.
|
|
*/
|
|
readonly compositionData: SubtitleCompositionData[];
|
|
constructor(width: number, height: number, compositionData: SubtitleCompositionData[]);
|
|
}
|
|
/**
|
|
* This class contains the compiled subtitle data for a single composition.
|
|
*/
|
|
export declare class SubtitleCompositionData {
|
|
/**
|
|
* The original composition object of the subtile data.
|
|
*/
|
|
readonly compositionObject: CompositionObject;
|
|
/**
|
|
* The pgs window to draw on (the on-screen position).
|
|
*/
|
|
readonly window: WindowDefinition;
|
|
/**
|
|
* The compiled pixel data of the subtitle.
|
|
*/
|
|
readonly pixelData: ImageData;
|
|
constructor(compositionObject: CompositionObject, window: WindowDefinition, pixelData: ImageData);
|
|
}
|