libdvbpsi
2.0.0-git
MPEG Transport Stream PSI table parser
|
Application interface for the PAT decoder and the PAT generator. More...
Go to the source code of this file.
Data Structures | |
struct | dvbpsi_pat_program_s |
PAT program structure. More... | |
struct | dvbpsi_pat_s |
PAT structure. More... | |
Typedefs | |
typedef struct dvbpsi_pat_program_s | dvbpsi_pat_program_t |
dvbpsi_pat_program_t type definition. | |
typedef struct dvbpsi_pat_s | dvbpsi_pat_t |
dvbpsi_pat_t type definition. | |
typedef void(* | dvbpsi_pat_callback) (void *p_priv, dvbpsi_pat_t *p_new_pat) |
Callback type definition. | |
Functions | |
bool | dvbpsi_pat_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_pat_callback pf_callback, void *p_priv) |
void | dvbpsi_pat_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
Destroy a PAT decoder. More... | |
void | dvbpsi_pat_init (dvbpsi_pat_t *p_pat, uint16_t i_ts_id, uint8_t i_version, bool b_current_next) |
Initialize a user-allocated dvbpsi_pat_t structure. More... | |
dvbpsi_pat_t * | dvbpsi_pat_new (uint16_t i_ts_id, uint8_t i_version, bool b_current_next) |
Allocate and initialize a new dvbpsi_pat_t structure. More... | |
void | dvbpsi_pat_empty (dvbpsi_pat_t *p_pat) |
Clean a dvbpsi_pat_t structure. More... | |
void | dvbpsi_pat_delete (dvbpsi_pat_t *p_pat) |
Clean and free a dvbpsi_pat_t structure. More... | |
dvbpsi_pat_program_t * | dvbpsi_pat_program_add (dvbpsi_pat_t *p_pat, uint16_t i_number, uint16_t i_pid) |
Add a program at the end of the PAT. More... | |
dvbpsi_psi_section_t * | dvbpsi_pat_sections_generate (dvbpsi_t *p_dvbpsi, dvbpsi_pat_t *p_pat, int i_max_pps) |
Application interface for the PAT decoder and the PAT generator.
>
Application interface for the PAT decoder and the PAT generator. New decoded PAT tables are sent by callback to the application.
void dvbpsi_pat_delete | ( | dvbpsi_pat_t * | p_pat | ) |
Clean and free a dvbpsi_pat_t structure.
p_pat | pointer to the PAT structure |
void dvbpsi_pat_detach | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension | ||
) |
Destroy a PAT decoder.
p_dvbpsi | pointer to dvbpsi_t handle |
i_table_id | Table ID |
i_extension | Table ID extension |
The handle isn't valid any more.
void dvbpsi_pat_empty | ( | dvbpsi_pat_t * | p_pat | ) |
Clean a dvbpsi_pat_t structure.
p_pat | pointer to the PAT structure |
void dvbpsi_pat_init | ( | dvbpsi_pat_t * | p_pat, |
uint16_t | i_ts_id, | ||
uint8_t | i_version, | ||
bool | b_current_next | ||
) |
Initialize a user-allocated dvbpsi_pat_t structure.
p_pat | pointer to the PAT structure |
i_ts_id | transport stream ID |
i_version | PAT version |
b_current_next | current next indicator |
dvbpsi_pat_t * dvbpsi_pat_new | ( | uint16_t | i_ts_id, |
uint8_t | i_version, | ||
bool | b_current_next | ||
) |
Allocate and initialize a new dvbpsi_pat_t structure.
i_ts_id | transport stream ID |
i_version | PAT version |
b_current_next | current next indicator |
dvbpsi_pat_program_t * dvbpsi_pat_program_add | ( | dvbpsi_pat_t * | p_pat, |
uint16_t | i_number, | ||
uint16_t | i_pid | ||
) |
Add a program at the end of the PAT.
p_pat | pointer to the PAT structure |
i_number | program number |
i_pid | PID of the NIT/PMT |