Application interface for the PAT decoder and the PAT generator.
More...
Go to the source code of this file.
Application interface for the PAT decoder and the PAT generator.
- Author
- Arnaud de Bossoreille de Ribou bozo@.nosp@m.via..nosp@m.ecp.f.nosp@m.r Application interface for the PAT decoder and the PAT generator. New decoded PAT tables are sent by callback to the application.
| #define dvbpsi_DeletePAT |
( |
|
p_pat | ) |
|
Value:
free(p_pat); \
} while(0);
void dvbpsi_EmptyPAT(dvbpsi_pat_t *p_pat)
Clean a dvbpsi_pat_t structure.
Clean and free a dvbpsi_pat_t structure.
- Parameters
-
| p_pat | pointer to the PAT structure |
- Returns
- nothing.
| #define dvbpsi_NewPAT |
( |
|
p_pat, |
|
|
|
i_ts_id, |
|
|
|
i_version, |
|
|
|
b_current_next |
|
) |
| |
Value:do { \
} while(0);
PAT structure.
Definition: pat.h:80
void dvbpsi_InitPAT(dvbpsi_pat_t *p_pat, uint16_t i_ts_id, uint8_t i_version, int b_current_next)
Initialize a user-allocated dvbpsi_pat_t structure.
Allocate and initialize a new dvbpsi_pat_t structure.
- Parameters
-
| p_pat | pointer to the PAT structure |
| i_ts_id | transport stream ID |
| i_version | PAT version |
| b_current_next | current next indicator |
- Returns
- nothing.
Creation and initialization of a PAT decoder.
- Parameters
-
| pf_callback | function to call back on new PAT |
| p_cb_data | private data given in argument to the callback |
- Returns
- a pointer to the decoder for future calls.
| void dvbpsi_DetachPAT |
( |
dvbpsi_handle |
h_dvbpsi | ) |
|
Destroy a PAT decoder.
- Parameters
-
| h_dvbpsi | handle to the decoder |
- Returns
- nothing.
The handle isn't valid any more.
Clean a dvbpsi_pat_t structure.
- Parameters
-
| p_pat | pointer to the PAT structure |
- Returns
- nothing.
PAT generator.
- Parameters
-
| p_pat | pointer to the PAT structure |
| i_max_pps | limitation of the number of program in each section (max: 253). |
- Returns
- a pointer to the list of generated PSI sections.
Generate PAT sections based on the dvbpsi_pat_t structure.
| void dvbpsi_InitPAT |
( |
dvbpsi_pat_t * |
p_pat, |
|
|
uint16_t |
i_ts_id, |
|
|
uint8_t |
i_version, |
|
|
int |
b_current_next |
|
) |
| |
Initialize a user-allocated dvbpsi_pat_t structure.
- Parameters
-
| p_pat | pointer to the PAT structure |
| i_ts_id | transport stream ID |
| i_version | PAT version |
| b_current_next | current next indicator |
- Returns
- nothing.
Add a program at the end of the PAT.
- Parameters
-
| p_pat | pointer to the PAT structure |
| i_number | program number |
| i_pid | PID of the NIT/PMT |
- Returns
- a pointer to the added program.