Application interface for the CAT decoder and the CAT generator.
More...
Go to the source code of this file.
Application interface for the CAT decoder and the CAT generator.
- Author
- Arnaud de Bossoreille de Ribou bozo@.nosp@m.via..nosp@m.ecp.f.nosp@m.r Application interface for the CAT decoder and the CAT generator. New decoded CAT tables are sent by callback to the application.
Creation and initialization of a CAT decoder. It will be attached to p_dvbpsi.
- Parameters
-
p_dvbpsi | is a pointer to dvbpsi_t which holds a pointer to the decoder |
pf_callback | function to call back on new CAT |
p_cb_data | private data given in argument to the callback |
- Returns
- true on success, false on failure
Clean and free a dvbpsi_cat_t structure.
- Parameters
-
p_cat | pointer to the CAT structure |
- Returns
- nothing.
Add a descriptor in the CAT.
- Parameters
-
p_cat | pointer to the CAT structure |
i_tag | descriptor's tag |
i_length | descriptor's length |
p_data | descriptor's data |
- Returns
- a pointer to the added descriptor.
void dvbpsi_cat_detach |
( |
dvbpsi_t * |
p_dvbpsi | ) |
|
Destroy a CAT decoder.
- Parameters
-
p_dvbpsi | handle to dvbpsi with attached decoder |
p_dvbpsi | handle holds the decoder pointer |
- Returns
- nothing.
The handle isn't valid any more.
Clean a dvbpsi_cat_t structure.
- Parameters
-
p_cat | pointer to the CAT structure |
- Returns
- nothing.
void dvbpsi_cat_init |
( |
dvbpsi_cat_t * |
p_cat, |
|
|
uint8_t |
i_version, |
|
|
bool |
b_current_next |
|
) |
| |
Initialize a user-allocated dvbpsi_cat_t structure.
- Parameters
-
p_cat | pointer to the CAT structure |
i_version | CAT version |
b_current_next | current next indicator |
- Returns
- nothing.
dvbpsi_cat_t * dvbpsi_cat_new |
( |
uint8_t |
i_version, |
|
|
bool |
b_current_next |
|
) |
| |
Allocate and initialize a new dvbpsi_cat_t structure.
- Parameters
-
i_version | CAT version |
b_current_next | current next indicator |
- Returns
- p_cat pointer to the CAT structure
CAT generator.
- Parameters
-
p_dvbpsi | handle to dvbpsi with attached decoder |
p_cat | CAT structure |
- Returns
- a pointer to the list of generated PSI sections.
Generate CAT sections based on the dvbpsi_cat_t structure.