cat.h File Reference
Application interface for the CAT decoder and the CAT generator.
More...
Go to the source code of this file.
Detailed Description
Application interface for the CAT decoder and the CAT generator.
>
- Author:
- Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr> Application interface for the CAT decoder and the CAT generator. New decoded CAT tables are sent by callback to the application. If a table wasn't active (b_current_next == 0) and the next is the same but active (b_current_next == 1) then the two lists are empty and should be caught from the previous structure.
Define Documentation
#define dvbpsi_DeleteCAT |
( |
p_cat |
|
) |
|
Value:
Clean and free a dvbpsi_cat_t structure.
- Parameters:
-
| p_cat | pointer to the CAT structure |
- Returns:
- nothing.
#define dvbpsi_NewCAT |
( |
p_cat, |
|
|
i_version, |
|
|
b_current_next |
|
) |
|
Value:
Allocate and initialize a new dvbpsi_cat_t structure.
- Parameters:
-
| p_cat | pointer to the CAT structure |
| i_version | CAT version |
| b_current_next | current next indicator |
- Returns:
- nothing.
Function Documentation
Creation and initialization of a CAT decoder.
- Parameters:
-
| pf_callback | function to call back on new CAT |
| p_cb_data | private data given in argument to the callback |
- Returns:
- a pointer to the decoder for future calls.
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.
Destroy a CAT decoder.
- Parameters:
-
| h_dvbpsi | handle to the decoder |
- 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.
CAT generator.
- Parameters:
-
- Returns:
- a pointer to the list of generated PSI sections.
Generate CAT sections based on the dvbpsi_cat_t structure.
void dvbpsi_InitCAT |
( |
dvbpsi_cat_t * |
p_cat, |
|
|
uint8_t |
i_version, |
|
|
int |
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.