Cea608Parser
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
bufferedData: *[] |
|
public |
|
|
public |
currChNr: * |
|
public |
dataCounters: {"padding": *, "char": *, "cmd": *, "other": *} |
|
public |
field: * |
|
public |
lastCmdA: * |
|
public |
lastCmdB: * |
|
public |
lastTime: * |
|
public |
|
|
public |
startTime: * |
Method Summary
Public Methods | ||
public |
addData(t: *, byteList: *) Add data for time t in forms of list of bytes (unsigned ints). |
|
public |
cueSplitAtTime(t: *) Trigger the generation of a cue, and the start of a new one if displayScreens are not empty. |
|
public |
getHandler(index: *): * |
|
public |
interpretPAC(row: *, byte: *): Object Interpret the second byte of the pac, and return the information. |
|
public |
parseBackgroundAttributes(a: *, b: *): boolean Parse extended background attributes as well as new foreground color black. |
|
public |
parseChars(a: *, b: *): * Parse characters. |
|
public |
Parse Command. |
|
public |
parseMidrow(a: *, b: *): Boolean Parse midrow styling command |
|
public |
Parse Preable Access Codes (Table 53). |
|
public |
reset() Reset state of parser and its channels. |
|
public |
setHandler(index: *, newHandler: *) |
Public Constructors
public constructor() source
Public Members
public bufferedData: *[] source
public currChNr: * source
public dataCounters: {"padding": *, "char": *, "cmd": *, "other": *} source
public field: * source
public lastCmdA: * source
public lastCmdB: * source
public lastTime: * source
public startTime: * source
Public Methods
public addData(t: *, byteList: *) source
Add data for time t in forms of list of bytes (unsigned ints). The bytes are treated as pairs.
Params:
Name | Type | Attribute | Description |
t | * | ||
byteList | * |
public cueSplitAtTime(t: *) 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 | * |
public interpretPAC(row: *, byte: *): Object source
Interpret the second byte of the pac, and return the information.
Params:
Name | Type | Attribute | Description |
row | * | ||
byte | * |
public parseBackgroundAttributes(a: *, b: *): boolean source
Parse extended background attributes as well as new foreground color black. @returns{Boolean} Tells if background attributes are found
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public parseChars(a: *, b: *): * source
Parse characters.
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
Return:
* | An array with 1 to 2 codes corresponding to chars, if found. null otherwise. |
public parseCmd(a: *, b: *): Boolean source
Parse Command.
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public parseMidrow(a: *, b: *): Boolean source
Parse midrow styling command
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public parsePAC(a: *, b: *): Boolean source
Parse Preable Access Codes (Table 53).
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public setHandler(index: *, newHandler: *) source
Params:
Name | Type | Attribute | Description |
index | * | ||
newHandler | * |