34 #ifndef _DVBPSI_PMT_H_
35 #define _DVBPSI_PMT_H_
124 bool dvbpsi_pmt_attach(
dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension,
159 uint8_t i_version,
bool b_current_next, uint16_t i_pcr_pid);
173 bool b_current_next, uint16_t i_pcr_pid);
210 uint8_t i_tag, uint8_t i_length,
226 uint8_t i_type, uint16_t i_pid);
244 uint8_t i_tag, uint8_t i_length,
267 #error "Multiple inclusions of pmt.h"
void dvbpsi_pmt_init(dvbpsi_pmt_t *p_pmt, uint16_t i_program_number, uint8_t i_version, bool b_current_next, uint16_t i_pcr_pid)
Initialize a user-allocated dvbpsi_pmt_t structure.
dvbpsi_descriptor_t * dvbpsi_pmt_descriptor_add(dvbpsi_pmt_t *p_pmt, uint8_t i_tag, uint8_t i_length, uint8_t *p_data)
Add a descriptor in the PMT.
void dvbpsi_pmt_empty(dvbpsi_pmt_t *p_pmt)
Clean a dvbpsi_pmt_t structure.
struct dvbpsi_pmt_es_s dvbpsi_pmt_es_t
dvbpsi_pmt_es_t type definition.
dvbpsi_pmt_es_t * dvbpsi_pmt_es_add(dvbpsi_pmt_t *p_pmt, uint8_t i_type, uint16_t i_pid)
Add an ES in the PMT.
void(* dvbpsi_pmt_callback)(void *p_priv, dvbpsi_pmt_t *p_new_pmt)
Callback type definition.
Definition: pmt.h:103
void dvbpsi_pmt_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Destroy a PMT decoder.
struct dvbpsi_pmt_s dvbpsi_pmt_t
dvbpsi_pmt_t type definition.
dvbpsi_descriptor_t * dvbpsi_pmt_es_descriptor_add(dvbpsi_pmt_es_t *p_es, uint8_t i_tag, uint8_t i_length, uint8_t *p_data)
Add a descriptor in the PMT ES.
dvbpsi_pmt_t * dvbpsi_pmt_new(uint16_t i_program_number, uint8_t i_version, bool b_current_next, uint16_t i_pcr_pid)
Allocate and initialize a new dvbpsi_pmt_t structure.
void dvbpsi_pmt_delete(dvbpsi_pmt_t *p_pmt)
Clean and free a dvbpsi_pmt_t structure.
Descriptor structure.
Definition: descriptor.h:83
PMT ES structure.
Definition: pmt.h:56
dvbpsi_descriptor_t * p_first_descriptor
Definition: pmt.h:60
uint8_t i_type
Definition: pmt.h:57
struct dvbpsi_pmt_es_s * p_next
Definition: pmt.h:62
uint16_t i_pid
Definition: pmt.h:58
PMT structure.
Definition: pmt.h:82
uint8_t i_version
Definition: pmt.h:84
dvbpsi_descriptor_t * p_first_descriptor
Definition: pmt.h:89
dvbpsi_pmt_es_t * p_first_es
Definition: pmt.h:91
bool b_current_next
Definition: pmt.h:85
uint16_t i_program_number
Definition: pmt.h:83
uint16_t i_pcr_pid
Definition: pmt.h:87
PSI section structure.
Definition: psi.h:69
DVBPSI handle structure.
Definition: dvbpsi.h:143