libdvbpsi 1.3.2
|
Application interface for the SDT decoder and the SDT generator. More...
Go to the source code of this file.
Data Structures | |
struct | dvbpsi_sdt_service_s |
SDT service description structure. More... | |
struct | dvbpsi_sdt_s |
SDT structure. More... |
Typedefs | |
typedef struct dvbpsi_sdt_service_s | dvbpsi_sdt_service_t |
dvbpsi_sdt_service_t type definition. | |
typedef struct dvbpsi_sdt_s | dvbpsi_sdt_t |
dvbpsi_sdt_t type definition. | |
typedef void(* | dvbpsi_sdt_callback) (void *p_cb_data, dvbpsi_sdt_t *p_new_sdt) |
Callback type definition. |
Functions | |
bool | dvbpsi_sdt_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_sdt_callback pf_callback, void *p_cb_data) |
Creation and initialization of a SDT decoder. It is attached to p_dvbpsi. | |
void | dvbpsi_sdt_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
Destroy a SDT decoder. | |
void | dvbpsi_sdt_init (dvbpsi_sdt_t *p_sdt, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint16_t i_network_id) |
Initialize a user-allocated dvbpsi_sdt_t structure. | |
dvbpsi_sdt_t * | dvbpsi_sdt_new (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next, uint16_t i_network_id) |
Allocate and initialize a new dvbpsi_sdt_t structure. | |
void | dvbpsi_sdt_empty (dvbpsi_sdt_t *p_sdt) |
Clean a dvbpsi_sdt_t structure. | |
void | dvbpsi_sdt_delete (dvbpsi_sdt_t *p_sdt) |
Clean and free a dvbpsi_sdt_t structure. | |
dvbpsi_sdt_service_t * | dvbpsi_sdt_service_add (dvbpsi_sdt_t *p_sdt, uint16_t i_service_id, bool b_eit_schedule, bool b_eit_present, uint8_t i_running_status, bool b_free_ca) |
Add a service at the end of the SDT. | |
dvbpsi_descriptor_t * | dvbpsi_sdt_service_descriptor_add (dvbpsi_sdt_service_t *p_service, uint8_t i_tag, uint8_t i_length, uint8_t *p_data) |
Add a descriptor in the SDT service. | |
dvbpsi_psi_section_t * | dvbpsi_sdt_sections_generate (dvbpsi_t *p_dvbpsi, dvbpsi_sdt_t *p_sdt) |
SDT generator. |
Application interface for the SDT decoder and the SDT generator.
>
Application interface for the SDT decoder and the SDT generator. New decoded SDT tables are sent by callback to the application.
bool dvbpsi_sdt_attach | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
dvbpsi_sdt_callback | pf_callback, | ||
void * | p_cb_data ) |
Creation and initialization of a SDT decoder. It is attached to p_dvbpsi.
p_dvbpsi | pointer to dvbpsi to hold decoder/demuxer structure |
i_table_id | Table ID, 0x42 or 0x46. |
i_extension | Table ID extension, here TS ID. |
pf_callback | function to call back on new SDT. |
p_cb_data | private data given in argument to the callback. |
References i_extension, and i_table_id.
void dvbpsi_sdt_delete | ( | dvbpsi_sdt_t * | p_sdt | ) |
Clean and free a dvbpsi_sdt_t structure.
p_sdt | pointer to the SDT structure |
void dvbpsi_sdt_detach | ( | dvbpsi_t * | p_dvbpsi, |
uint8_t | i_table_id, | ||
uint16_t | i_extension ) |
Destroy a SDT decoder.
p_dvbpsi | pointer holding decoder/demuxer structure |
i_table_id | Table ID, 0x42 or 0x46. |
i_extension | Table ID extension, here TS ID. |
References i_extension, and i_table_id.
void dvbpsi_sdt_empty | ( | dvbpsi_sdt_t * | p_sdt | ) |
void dvbpsi_sdt_init | ( | dvbpsi_sdt_t * | p_sdt, |
uint8_t | i_table_id, | ||
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
bool | b_current_next, | ||
uint16_t | i_network_id ) |
Initialize a user-allocated dvbpsi_sdt_t structure.
p_sdt | pointer to the SDT structure |
i_table_id | Table ID, 0x42 or 0x46. |
i_extension | Table ID extension, here TS ID. |
i_version | SDT version |
b_current_next | current next indicator |
i_network_id | original network id |
References b_current_next, i_extension, i_table_id, and i_version.
dvbpsi_sdt_t * dvbpsi_sdt_new | ( | uint8_t | i_table_id, |
uint16_t | i_extension, | ||
uint8_t | i_version, | ||
bool | b_current_next, | ||
uint16_t | i_network_id ) |
Allocate and initialize a new dvbpsi_sdt_t structure.
i_table_id | Table ID, 0x42 or 0x46. |
i_extension | Table ID extension, here TS ID. |
i_version | SDT version |
b_current_next | current next indicator |
i_network_id | original network id |
References b_current_next, i_extension, i_table_id, and i_version.
dvbpsi_psi_section_t * dvbpsi_sdt_sections_generate | ( | dvbpsi_t * | p_dvbpsi, |
dvbpsi_sdt_t * | p_sdt ) |
SDT generator.
p_dvbpsi | handle to dvbpsi with attached decoder |
p_sdt | SDT structure |
Generate SDT sections based on the dvbpsi_sdt_t structure.
dvbpsi_sdt_service_t * dvbpsi_sdt_service_add | ( | dvbpsi_sdt_t * | p_sdt, |
uint16_t | i_service_id, | ||
bool | b_eit_schedule, | ||
bool | b_eit_present, | ||
uint8_t | i_running_status, | ||
bool | b_free_ca ) |
Add a service at the end of the SDT.
p_sdt | pointer to the SDT structure |
i_service_id | Service ID |
b_eit_schedule | EIT Schedule flag |
b_eit_present | EIT Present/Following flag |
i_running_status | Running status |
b_free_ca | Free CA flag |
dvbpsi_descriptor_t * dvbpsi_sdt_service_descriptor_add | ( | dvbpsi_sdt_service_t * | p_service, |
uint8_t | i_tag, | ||
uint8_t | i_length, | ||
uint8_t * | p_data ) |
Add a descriptor in the SDT service.
p_service | pointer to the service structure |
i_tag | descriptor's tag |
i_length | descriptor's length |
p_data | descriptor's data |