Functions | |
vbi_decoder * | vbi_decoder_new (void) |
Allocate a new data service decoder instance. | |
void | vbi_decoder_delete (vbi_decoder *vbi) |
Delete a data service decoder instance. | |
void | vbi_decode (vbi_decoder *vbi, vbi_sliced *sliced, int lines, double timestamp) |
Main function of the data service decoder. | |
void | vbi_channel_switched (vbi_decoder *vbi, vbi_nuid nuid) |
vbi_page_type | vbi_classify_page (vbi_decoder *vbi, vbi_pgno pgno, vbi_subno *subno, char **language) |
void | vbi_version (unsigned int *major, unsigned int *minor, unsigned int *micro) |
void | vbi_set_log_fn (vbi_log_mask mask, vbi_log_fn *log_fn, void *user_data) |
|
Allocate a new data service decoder instance.
|
|
Delete a data service decoder instance.
|
|
Main function of the data service decoder.
Decodes zero or more lines of sliced VBI data from the same video frame, updates the decoder state and calls event handlers. timestamp shall advance by 1/30 to 1/25 seconds whenever calling this function. Failure to do so will be interpreted as frame dropping, which starts a resynchronization cycle, eventually a channel switch may be assumed which resets even more decoder state. So even if a frame did not contain any useful data this function must be called, with lines set to zero.
|
|
The decoder attempts to detect channel switches automatically, but this is not 100 reliable, especially without receiving and decoding Teletext or VPS which frequently transmit network identifiers. Note the reset is not executed until the next frame is about to be decoded, so you may still receive "old" events after calling this. You may also receive blank events (e. g. unknown network, unknown aspect ratio) revoking a previously sent event, until new information becomes available. |
|
For Closed Caption pages (pgno 1 ... 8) subno will always be zero, language set or For Teletext pages (pgno 0x100 ... 0x8FF) subno returns the highest subpage number used. Note this number can be larger (but not smaller) than the number of subpages actually received and cached. Still there is no guarantee the advertised subpages will ever appear or stay in cache.
language currently returns the language of subtitle pages, Other page types are:
|
|
|
|
|