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

Decode PSIP Extented Text Table (ATSC ETT). More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_atsc_ett_s
 ATSC ETT structure. More...

Typedefs

typedef struct dvbpsi_atsc_ett_s dvbpsi_atsc_ett_t
 dvbpsi_atsc_ett_t type definition.
typedef void(* dvbpsi_atsc_ett_callback )(void *p_cb_data, dvbpsi_atsc_ett_t *p_new_ett)
 Callback type definition.

Functions

bool dvbpsi_atsc_AttachETT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_ett_callback pf_callback, void *p_cb_data)
 Creation and initialization of a ETT decoder.
void dvbpsi_atsc_DetachETT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a ETT decoder.
void dvbpsi_atsc_InitETT (dvbpsi_atsc_ett_t *p_ett, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint32_t i_etm_id, bool b_current_next)
 Initialize a user-allocated dvbpsi_atsc_ett_t structure.
dvbpsi_atsc_ett_tdvbpsi_atsc_NewETT (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint32_t i_etm_id, bool b_current_next)
 Allocate and initialize a new dvbpsi_atsc_ett_t structure. Use ObjectRefDec to delete it.
void dvbpsi_atsc_EmptyETT (dvbpsi_atsc_ett_t *p_ett)
 Clean a dvbpsi_atsc_ett_t structure.
void dvbpsi_atsc_DeleteETT (dvbpsi_atsc_ett_t *p_ett)
 Clean and free a dvbpsi_atsc_ett_t structure.

Detailed Description

Decode PSIP Extented Text Table (ATSC ETT).

Author
Adam Charrett

Typedef Documentation

dvbpsi_atsc_ett_t type definition.

This structure is used to store a decoded ETT. (ATSC document A/56-2009, section 6.6.)

Function Documentation

bool dvbpsi_atsc_AttachETT ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension,
dvbpsi_atsc_ett_callback  pf_callback,
void *  p_cb_data 
)

Creation and initialization of a ETT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
pf_callbackfunction to call back on new ETT.
p_cb_dataprivate data given in argument to the callback.
Returns
true if everything went ok, else it returns false.
void dvbpsi_atsc_DeleteETT ( dvbpsi_atsc_ett_t p_ett)

Clean and free a dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
Returns
nothing.
void dvbpsi_atsc_DetachETT ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension 
)

Destroy a ETT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCD.
i_extensionTable ID extension, normally 0x0000.
Returns
nothing.
void dvbpsi_atsc_EmptyETT ( dvbpsi_atsc_ett_t p_ett)

Clean a dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
Returns
nothing.
void dvbpsi_atsc_InitETT ( dvbpsi_atsc_ett_t p_ett,
uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint32_t  i_etm_id,
bool  b_current_next 
)

Initialize a user-allocated dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
nothing.
dvbpsi_atsc_ett_t * dvbpsi_atsc_NewETT ( uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint32_t  i_etm_id,
bool  b_current_next 
)

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

Parameters
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
p_ett pointer to the ETT structure, NULL otherwise