libdvbpsi
2.0.0-git
MPEG Transport Stream PSI table parser
|
Common PSI tools. More...
Go to the source code of this file.
Data Structures | |
struct | dvbpsi_psi_section_s |
PSI section structure. More... | |
Functions | |
dvbpsi_psi_section_t * | dvbpsi_NewPSISection (int i_max_size) |
Creation of a new dvbpsi_psi_section_t structure. More... | |
void | dvbpsi_DeletePSISections (dvbpsi_psi_section_t *p_section) |
Destruction of a dvbpsi_psi_section_t structure. More... | |
bool | dvbpsi_CheckPSISection (dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t *p_section, const uint8_t table_id, const char *psz_table_name) |
Check if PSI section has the expected table_id. Call this function only for PSI sections that have a CRC32 (. More... | |
bool | dvbpsi_ValidPSISection (dvbpsi_psi_section_t *p_section) |
Validity check of a PSI section, make sure to call this function on tables that have a CRC32 (. More... | |
void | dvbpsi_BuildPSISection (dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t *p_section) |
void | dvbpsi_CalculateCRC32 (dvbpsi_psi_section_t *p_section) |
Calculate the CRC32 field accourding to ISO/IEC 13818-1, ITU-T Rec H.222.0 or ETSI EN 300 468 v1.13.1. More... | |
Common PSI tools.
>
PSI section structure and its Manipulation tools.
void dvbpsi_CalculateCRC32 | ( | dvbpsi_psi_section_t * | p_section | ) |
Calculate the CRC32 field accourding to ISO/IEC 13818-1, ITU-T Rec H.222.0 or ETSI EN 300 468 v1.13.1.
p_section | pointer to PSI section, make sure p_payload_end does not include the CRC32 field. |
bool dvbpsi_CheckPSISection | ( | dvbpsi_t * | p_dvbpsi, |
dvbpsi_psi_section_t * | p_section, | ||
const uint8_t | table_id, | ||
const char * | psz_table_name | ||
) |
Check if PSI section has the expected table_id. Call this function only for PSI sections that have a CRC32 (.
p_dvbpsi | pointer to dvbpsi library handle |
p_section | pointer to the PSI section structure |
table_id | expected table id |
psz_table_name | table name to use when reporting errors. |
void dvbpsi_DeletePSISections | ( | dvbpsi_psi_section_t * | p_section | ) |
Destruction of a dvbpsi_psi_section_t structure.
p_section | pointer to the first PSI section structure |
dvbpsi_psi_section_t * dvbpsi_NewPSISection | ( | int | i_max_size | ) |
Creation of a new dvbpsi_psi_section_t structure.
i_max_size | max size in bytes of the section |
bool dvbpsi_ValidPSISection | ( | dvbpsi_psi_section_t * | p_section | ) |
Validity check of a PSI section, make sure to call this function on tables that have a CRC32 (.
p_section | pointer to the PSI section structure |
Check the CRC_32 if the section has b_syntax_indicator set.