Data Structures | |
struct | vbi_network |
Network description. More... | |
struct | vbi_link |
struct | vbi_aspect_ratio |
Information about the picture aspect ratio and open subtitles. More... | |
struct | vbi_program_info |
struct | vbi_event |
Event union. More... | |
Typedefs | |
typedef unsigned int | vbi_nuid |
Unique network id (a libzvbi thing). | |
typedef void(* | vbi_event_handler )(vbi_event *event, void *user_data) |
Enumerations | |
enum | vbi_link_type { VBI_LINK_NONE = 0, VBI_LINK_MESSAGE, VBI_LINK_PAGE, VBI_LINK_SUBPAGE, VBI_LINK_HTTP, VBI_LINK_FTP, VBI_LINK_EMAIL, VBI_LINK_LID, VBI_LINK_TELEWEB } |
Link type. More... | |
enum | vbi_itv_type { VBI_WEBLINK_UNKNOWN = 0, VBI_WEBLINK_PROGRAM_RELATED, VBI_WEBLINK_NETWORK_RELATED, VBI_WEBLINK_STATION_RELATED, VBI_WEBLINK_SPONSOR_MESSAGE, VBI_WEBLINK_OPERATOR } |
ITV link type. More... | |
enum | vbi_subt { VBI_SUBT_NONE, VBI_SUBT_ACTIVE, VBI_SUBT_MATTE, VBI_SUBT_UNKNOWN } |
Open subtitle information. More... | |
enum | vbi_rating_auth { VBI_RATING_AUTH_NONE = 0, VBI_RATING_AUTH_MPAA, VBI_RATING_AUTH_TV_US, VBI_RATING_AUTH_TV_CA_EN, VBI_RATING_AUTH_TV_CA_FR } |
Program rating source. More... | |
enum | vbi_prog_classf { VBI_PROG_CLASSF_NONE = 0, VBI_PROG_CLASSF_EIA_608, VBI_PROG_CLASSF_ETS_300231 } |
Program classification schemes. More... | |
enum | vbi_audio_mode { VBI_AUDIO_MODE_NONE = 0, VBI_AUDIO_MODE_MONO, VBI_AUDIO_MODE_STEREO, VBI_AUDIO_MODE_STEREO_SURROUND, VBI_AUDIO_MODE_SIMULATED_STEREO, VBI_AUDIO_MODE_VIDEO_DESCRIPTIONS, VBI_AUDIO_MODE_NON_PROGRAM_AUDIO, VBI_AUDIO_MODE_SPECIAL_EFFECTS, VBI_AUDIO_MODE_DATA_SERVICE, VBI_AUDIO_MODE_UNKNOWN } |
Type of audio transmitted on one (mono or stereo) audio track. More... | |
Functions | |
const char * | vbi_prog_type_string (vbi_prog_classf classf, int id) |
void | vbi_reset_prog_info (vbi_program_info *pi) |
vbi_bool | vbi_event_handler_add (vbi_decoder *vbi, int event_mask, vbi_event_handler handler, void *user_data) |
void | vbi_event_handler_remove (vbi_decoder *vbi, vbi_event_handler handler) |
vbi_bool | vbi_event_handler_register (vbi_decoder *vbi, int event_mask, vbi_event_handler handler, void *user_data) |
void | vbi_event_handler_unregister (vbi_decoder *vbi, vbi_event_handler handler, void *user_data) |
const char * | vbi_rating_string (vbi_rating_auth auth, int id) |
void | vbi_resolve_link (vbi_page *pg, int column, int row, vbi_link *ld) |
void | vbi_resolve_home (vbi_page *pg, vbi_link *ld) |
Clients can register any number of handlers needed, also different handlers for the same event. They will be called in the order registered from the vbi_decode() function. Since they block decoding, they should return as soon as possible. The event structure and all data pointed to from there must be read only. The data is only valid until the handler returns.
|
Unique network id (a libzvbi thing). 0 = unknown network, bit 31 reserved for preliminary nuids. Other network codes are arbitrary. |
|
Link type.
|
|
ITV link type.
Some ITV (WebTV, ATVEF) triggers include a type id intended to filter relevant information. The names should speak for themselves. EACEM triggers always have type |
|
Open subtitle information. Open because they have been inserted into the picture, as opposed to closed subtitles (closed caption) encoded in the vbi. |
|
Program rating source. If program rating information is available (also known in the U. S. as V-Chip data), this describes which rating scheme is being used: U. S. film, U. S. TV, Canadian English or French TV. You can convert the rating code to a string with vbi_rating_string().
When the scheme is |
|
Program classification schemes. libzvbi understands two different program classification schemes, the EIA-608 based in the United States and the ETS 300 231 based one in Europe. You can convert the program type code into a string with vbi_prog_type_string(). |
|
|
|
|
|
|
|
|
|
|
Apart of adding handlers this function also enables and disables decoding of data services depending on the presence of at least one handler for the respective data. A This function can be safely called at any time, even from a handler.
|
|
Apart of removing a handler this function also disables decoding of data services when no handler is registered to consume the respective data. Removing the last This function can be safely called at any time, even from a handler removing itself or another handler, and regardless if the handler has been successfully registered. |
|
return Static pointer to the string (don't free()), or |
|
|
|
|