libdvbpsi 1.3.2
|
Decode PSIP Master Guide Table (ATSC MGT). More...
Go to the source code of this file.
Data Structures | |
struct | dvbpsi_atsc_mgt_table_s |
MGT table structure. More... | |
struct | dvbpsi_atsc_mgt_s |
MGT structure. More... |
Typedefs | |
typedef struct dvbpsi_atsc_mgt_table_s | dvbpsi_atsc_mgt_table_t |
dvbpsi_atsc_mgt_table_t type definition. | |
typedef struct dvbpsi_atsc_mgt_s | dvbpsi_atsc_mgt_t |
dvbpsi_atsc_mgt_t type definition. | |
typedef void(* | dvbpsi_atsc_mgt_callback) (void *p_cb_data, dvbpsi_atsc_mgt_t *p_new_mgt) |
Callback type definition. |
Functions | |
bool | dvbpsi_atsc_AttachMGT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_mgt_callback pf_callback, void *p_cb_data) |
Creation and initialization of a MGT decoder. | |
void | dvbpsi_atsc_DetachMGT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
Destroy a MGT decoder. | |
void | dvbpsi_atsc_InitMGT (dvbpsi_atsc_mgt_t *p_mgt, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, bool b_current_next) |
Initialize a user-allocated dvbpsi_atsc_mgt_t structure. | |
dvbpsi_atsc_mgt_t * | dvbpsi_atsc_NewMGT (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, bool b_current_next) |
Allocate and initialize a new dvbpsi_mgt_t structure. | |
void | dvbpsi_atsc_EmptyMGT (dvbpsi_atsc_mgt_t *p_mgt) |
Clean a dvbpsi_mgt_t structure. | |
void | dvbpsi_atsc_DeleteMGT (dvbpsi_atsc_mgt_t *p_mgt) |
Clean and free a dvbpsi_mgt_t structure. |
Decode PSIP Master Guide Table (ATSC MGT).
bool dvbpsi_atsc_AttachMGT | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
dvbpsi_atsc_mgt_callback | pf_callback, | ||
void * | p_cb_data ) |
Creation and initialization of a MGT decoder.
p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached |
i_table_id | Table ID, 0xC7. |
i_extension | Table ID extension, here 0x0000. |
pf_callback | function to call back on new MGT. |
p_cb_data | private data given in argument to the callback. |
References i_extension, and i_table_id.
void dvbpsi_atsc_DeleteMGT | ( | dvbpsi_atsc_mgt_t * | p_mgt | ) |
Clean and free a dvbpsi_mgt_t structure.
p_mgt | pointer to the MGT structure |
void dvbpsi_atsc_DetachMGT | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension ) |
Destroy a MGT decoder.
p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached |
i_table_id | Table ID, 0xC7. |
i_extension | Table ID extension, here 0x0000. |
References i_extension, and i_table_id.
void dvbpsi_atsc_EmptyMGT | ( | dvbpsi_atsc_mgt_t * | p_mgt | ) |
Clean a dvbpsi_mgt_t structure.
p_mgt | pointer to the MGT structure |
void dvbpsi_atsc_InitMGT | ( | dvbpsi_atsc_mgt_t * | p_mgt, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
uint8_t | i_protocol, | ||
bool | b_current_next ) |
Initialize a user-allocated dvbpsi_atsc_mgt_t structure.
p_mgt | pointer to the MGT structure |
i_table_id | Table ID, 0xC7. |
i_extension | Table ID extension, here 0x0000. |
i_version | MGT version |
i_protocol | PSIP Protocol version. |
b_current_next | current next indicator |
References b_current_next, i_extension, i_table_id, and i_version.
dvbpsi_atsc_mgt_t * dvbpsi_atsc_NewMGT | ( | uint8_t | i_table_id, |
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
uint8_t | i_protocol, | ||
bool | b_current_next ) |
Allocate and initialize a new dvbpsi_mgt_t structure.
i_table_id | Table ID, 0xC7. |
i_extension | Table ID extension, here 0x0000. |
i_version | MGT version |
i_protocol | PSIP Protocol version. |
b_current_next | current next indicator |
References b_current_next, i_extension, i_table_id, and i_version.