libdvbpsi
1.3.0
|
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. More... | |
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. More... | |
void | dvbpsi_atsc_DetachETT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
Destroy a ETT decoder. More... | |
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. More... | |
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. More... | |
void | dvbpsi_atsc_EmptyETT (dvbpsi_atsc_ett_t *p_ett) |
Clean a dvbpsi_atsc_ett_t structure. More... | |
void | dvbpsi_atsc_DeleteETT (dvbpsi_atsc_ett_t *p_ett) |
Clean and free a dvbpsi_atsc_ett_t structure. More... | |
Decode PSIP Extented Text Table (ATSC ETT).
dvbpsi_atsc_ett_t type definition.
This structure is used to store a decoded ETT. (ATSC document A/56-2009, section 6.6.)
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.
p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached |
i_table_id | Table ID, 0xCC. |
i_extension | Table ID extension, normally 0x0000. |
pf_callback | function to call back on new ETT. |
p_cb_data | private data given in argument to the callback. |
void dvbpsi_atsc_DeleteETT | ( | dvbpsi_atsc_ett_t * | p_ett | ) |
Clean and free a dvbpsi_atsc_ett_t structure.
p_ett | pointer to the ETT structure |
void dvbpsi_atsc_DetachETT | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension | ||
) |
Destroy a ETT decoder.
p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached |
i_table_id | Table ID, 0xCD. |
i_extension | Table ID extension, normally 0x0000. |
void dvbpsi_atsc_EmptyETT | ( | dvbpsi_atsc_ett_t * | p_ett | ) |
Clean a dvbpsi_atsc_ett_t structure.
p_ett | pointer to the ETT structure |
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.
p_ett | pointer to the ETT structure |
i_table_id | Table ID, 0xCC. |
i_extension | Table ID extension, normally 0x0000. |
i_version | version |
i_protocol | PSIP Protocol version. |
i_etm_id | ETM Identifier. |
b_current_next | current next indicator |
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.
i_table_id | Table ID, 0xCC. |
i_extension | Table ID extension, normally 0x0000. |
i_version | version |
i_protocol | PSIP Protocol version. |
i_etm_id | ETM Identifier. |
b_current_next | current next indicator |