libdvbpsi  1.2.0
Data Structures | Typedefs | Functions
atsc_eit.h File Reference

Decode PSIP Event Information Table (ATSC EIT). More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_atsc_eit_event_s
 ATSC EIT Event structure. More...
struct  dvbpsi_atsc_eit_s
 ATSC EIT structure. More...

Typedefs

typedef struct
dvbpsi_atsc_eit_event_s 
dvbpsi_atsc_eit_event_t
 dvbpsi_atsc_eit_event_t type definition.
typedef struct dvbpsi_atsc_eit_s dvbpsi_atsc_eit_t
 dvbpsi_atsc_eit_t type definition.
typedef void(* dvbpsi_atsc_eit_callback )(void *p_cb_data, dvbpsi_atsc_eit_t *p_new_eit)
 Callback type definition.

Functions

bool dvbpsi_atsc_AttachEIT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_eit_callback pf_callback, void *p_cb_data)
 Creation and initialization of a EIT decoder.
void dvbpsi_atsc_DetachEIT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a EIT decoder.
void dvbpsi_atsc_InitEIT (dvbpsi_atsc_eit_t *p_eit, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
 Initialize a user-allocated dvbpsi_atsc_eit_t structure.
dvbpsi_atsc_eit_tdvbpsi_atsc_NewEIT (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
 Allocate and initialize a new dvbpsi_eit_t structure. Use ObjectRefDec to delete it.
void dvbpsi_atsc_EmptyEIT (dvbpsi_atsc_eit_t *p_eit)
 Clean a dvbpsi_eit_t structure.
void dvbpsi_atsc_DeleteEIT (dvbpsi_atsc_eit_t *p_eit)
 Clean and free a dvbpsi_eit_t structure.

Detailed Description

Decode PSIP Event Information Table (ATSC EIT).

Author
Adam Charrett

Function Documentation

bool dvbpsi_atsc_AttachEIT ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension,
dvbpsi_atsc_eit_callback  pf_callback,
void *  p_cb_data 
)

Creation and initialization of a EIT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
pf_callbackfunction to call back on new EIT.
p_cb_dataprivate data given in argument to the callback.
Returns
true if everything went ok, false otherwise
void dvbpsi_atsc_DeleteEIT ( dvbpsi_atsc_eit_t p_eit)

Clean and free a dvbpsi_eit_t structure.

Parameters
p_eitpointer to the EIT structure
Returns
nothing.
void dvbpsi_atsc_DetachEIT ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension 
)

Destroy a EIT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
Returns
nothing.
void dvbpsi_atsc_EmptyEIT ( dvbpsi_atsc_eit_t p_eit)

Clean a dvbpsi_eit_t structure.

Parameters
p_eitpointer to the EIT structure
Returns
nothing.
void dvbpsi_atsc_InitEIT ( dvbpsi_atsc_eit_t p_eit,
uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint16_t  i_source_id,
bool  b_current_next 
)

Initialize a user-allocated dvbpsi_atsc_eit_t structure.

Parameters
p_eitpointer to the EIT structure
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
nothing.
dvbpsi_atsc_eit_t * dvbpsi_atsc_NewEIT ( uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint16_t  i_source_id,
bool  b_current_next 
)

Allocate and initialize a new dvbpsi_eit_t structure. Use ObjectRefDec to delete it.

Parameters
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
p_eit pointer to the EIT structure or NULL on error