Common PSI tools.
More...
Go to the source code of this file.
Detailed Description
Common PSI tools.
>
- Author:
- Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> PSI section structure and its Manipulation tools.
Function Documentation
Build a valid section based on the information in the structure.
- Parameters:
-
p_dvbpsi | dvbpsi handle |
p_section | pointer to the PSI section structure |
- Returns:
- nothing.
Calculate the CRC32 field accourding to ISO/IEC 13818-1, ITU-T Rec H.222.0 or ETSI EN 300 468 v1.13.1.
- Parameters:
-
p_section | pointer to PSI section, make sure p_payload_end does not include the CRC32 field. |
- Returns:
- nothing.
Check if PSI section has the expected table_id. Call this function only for PSI sections that have a CRC32 (.
- See also:
- dvbpsi_has_CRC32() function)
- Parameters:
-
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. |
- Returns:
- boolean value (false if the section did not pass the tests).
Destruction of a dvbpsi_psi_section_t structure.
- Parameters:
-
p_section | pointer to the first PSI section structure |
- Returns:
- nothing.
Creation of a new dvbpsi_psi_section_t structure.
- Parameters:
-
i_max_size | max size in bytes of the section |
- Returns:
- a pointer to the new PSI section structure.
Validity check of a PSI section, make sure to call this function on tables that have a CRC32 (.
- See also:
- dvbpsi_has_CRC32() function)
- Parameters:
-
p_section | pointer to the PSI section structure |
- Returns:
- boolean value (false if the section is not valid).
Check the CRC_32 if the section has b_syntax_indicator set.