libdvbpsi
2.0.0-git
MPEG Transport Stream PSI table parser
|
Application interface for the TDT/TOT decoder and the TDT/TOT generator. More...
Go to the source code of this file.
Data Structures | |
struct | dvbpsi_tot_s |
TDT/TOT structure. More... | |
Typedefs | |
typedef void(* | dvbpsi_tot_callback) (void *p_priv, dvbpsi_tot_t *p_new_tot) |
Callback type definition. | |
Functions | |
struct dvbpsi_tot_s | __attribute__ ((packed)) dvbpsi_tot_t |
bool | dvbpsi_tot_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_tot_callback pf_callback, void *p_priv) |
Creation and initialization of a TDT/TOT decoder. More... | |
void | dvbpsi_tot_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
Destroy a TDT/TOT decoder. More... | |
void | dvbpsi_tot_init (dvbpsi_tot_t *p_tot, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint64_t i_utc_time) |
Initialize a user-allocated dvbpsi_tot_t structure. More... | |
dvbpsi_tot_t * | dvbpsi_tot_new (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint64_t i_utc_time) |
Allocate and initialize a new dvbpsi_tot_t structure. More... | |
void | dvbpsi_tot_empty (dvbpsi_tot_t *p_tot) |
Clean a dvbpsi_tot_t structure. More... | |
void | dvbpsi_tot_delete (dvbpsi_tot_t *p_tot) |
Clean and free a dvbpsi_tot_t structure. More... | |
dvbpsi_descriptor_t * | dvbpsi_tot_descriptor_add (dvbpsi_tot_t *p_tot, uint8_t i_tag, uint8_t i_length, uint8_t *p_data) |
Add a descriptor in the TOT. More... | |
dvbpsi_psi_section_t * | dvbpsi_tot_sections_generate (dvbpsi_t *p_dvbpsi, dvbpsi_tot_t *p_tot) |
Variables | |
uint8_t | i_table_id |
uint16_t | i_extension |
uint8_t | i_version |
bool | b_current_next |
uint64_t | i_utc_time |
dvbpsi_descriptor_t * | p_first_descriptor |
Application interface for the TDT/TOT decoder and the TDT/TOT generator.
>
Application interface for the TDT (Time and Date Table)/TOT (Time Offset Table) decoder and the TDT/TOT generator. New decoded TDT/TOT tables are sent by callback to the application.
bool dvbpsi_tot_attach | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
dvbpsi_tot_callback | pf_callback, | ||
void * | p_priv | ||
) |
Creation and initialization of a TDT/TOT decoder.
p_dvbpsi | dvbpsi handle pointing to Subtable demultiplexor to which the decoder is attached. |
i_table_id | Table ID, usually 0x70 |
i_extension | Table ID extension, unused in the TDT/TOT |
pf_callback | function to call back on new TDT/TOT. |
p_priv | private data given in argument to the callback. |
dvbpsi_tot_delete | ( | dvbpsi_tot_t * | p_tot | ) |
Clean and free a dvbpsi_tot_t structure.
p_tot | pointer to the TDT/TOT structure |
dvbpsi_descriptor_t * dvbpsi_tot_descriptor_add | ( | dvbpsi_tot_t * | p_tot, |
uint8_t | i_tag, | ||
uint8_t | i_length, | ||
uint8_t * | p_data | ||
) |
Add a descriptor in the TOT.
p_tot | pointer to the TOT structure |
i_tag | descriptor's tag |
i_length | descriptor's length |
p_data | descriptor's data |
int dvbpsi_tot_detach | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension | ||
) |
Destroy a TDT/TOT decoder.
p_dvbpsi | Subtable demultiplexor to which the decoder is attached. |
i_table_id | Table ID, usually 0x70 |
i_extension | Table ID extension, unused in the TDT/TOT |
void dvbpsi_tot_empty | ( | dvbpsi_tot_t * | p_tot | ) |
Clean a dvbpsi_tot_t structure.
p_tot | pointer to the TDT/TOT structure |
void dvbpsi_tot_init | ( | dvbpsi_tot_t * | p_tot, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
bool | b_current_next, | ||
uint64_t | i_utc_time | ||
) |
Initialize a user-allocated dvbpsi_tot_t structure.
p_tot | pointer to the TDT/TOT structure |
i_table_id | Table ID, usually 0x70 |
i_extension | Table ID extension, unused in the TDT/TOT |
i_version | SDT version |
b_current_next | current next indicator |
i_utc_time | the time in UTC |
dvbpsi_tot_t * dvbpsi_tot_new | ( | uint8_t | i_table_id, |
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
bool | b_current_next, | ||
uint64_t | i_utc_time | ||
) |
Allocate and initialize a new dvbpsi_tot_t structure.
i_table_id | Table ID, usually 0x70 |
i_extension | Table ID extension, unused in the TDT/TOT |
i_version | SDT version |
b_current_next | current next indicator |
i_utc_time | the time in UTC |
bool b_current_next |
current_next_indicator
uint16_t i_extension |
subtable id
uint8_t i_table_id |
table id
uint64_t i_utc_time |
UTC_time
uint8_t i_version |
version_number
dvbpsi_descriptor_t* p_first_descriptor |
descriptor list