Cea608Parser
Constructor Summary
| Public Constructor | ||
| public |  | |
Member Summary
| Public Members | ||
| public |  | |
| public | cmdHistory: * | |
| public | currentChannel: Channels | |
| public | logger: * | |
Method Summary
| Public Methods | ||
| public | Add data for time t in forms of list of bytes (unsigned ints). | |
| public | cueSplitAtTime(t: number) Trigger the generation of a cue, and the start of a new one if displayScreens are not empty. | |
| public | getHandler(channel: number): * | |
| public | interpretPAC(row: number, byte: number): PACData Interpret the second byte of the pac, and return the information. | |
| public | parseBackgroundAttributes(a: number, b: number): boolean Parse extended background attributes as well as new foreground color black. | |
| public | parseChars(a: number, b: number): * Parse characters. | |
| public | Parse Command. | |
| public | parseMidrow(a: number, b: number): boolean Parse midrow styling command | |
| public | Parse Preable Access Codes (Table 53). | |
| public | reset() Reset state of parser and its channels. | |
| public | setHandler(channel: number, newHandler: OutputFilter) | |
Public Constructors
public constructor() source
Public Members
public cmdHistory: * source
public currentChannel: Channels source
public logger: * source
Public Methods
public addData(time: undefined, byteList: undefined) source
Add data for time t in forms of list of bytes (unsigned ints). The bytes are treated as pairs.
public cueSplitAtTime(t: number) source
Trigger the generation of a cue, and the start of a new one if displayScreens are not empty.
Params:
| Name | Type | Attribute | Description | 
| t | number | 
public getHandler(channel: number): * source
Params:
| Name | Type | Attribute | Description | 
| channel | number | 
Return:
| * | 
public interpretPAC(row: number, byte: number): PACData source
Interpret the second byte of the pac, and return the information.
Return:
| PACData | 
public parseBackgroundAttributes(a: number, b: number): boolean source
Parse extended background attributes as well as new foreground color black.
public setHandler(channel: number, newHandler: OutputFilter) source
Params:
| Name | Type | Attribute | Description | 
| channel | number | ||
| newHandler | OutputFilter | 
 
    
  