Application interface for the BAT decoder.
More...
Go to the source code of this file.
Application interface for the BAT decoder.
- Author
- Zhu zhenglu zhuzl.nosp@m.u@gm.nosp@m.ail.c.nosp@m.om Application interface for the BAT decoder. New decoded BAT 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 service description list is empty and should be caught from the previous structure. This is a simulation to sdt.h
| #define dvbpsi_DeleteBAT |
( |
|
p_bat | ) |
|
Value:
free(p_bat); \
} while(0);
void dvbpsi_EmptyBAT(dvbpsi_bat_t *p_bat)
Clean a dvbpsi_bat_t structure.
Clean and free a dvbpsi_bat_t structure.
- Parameters
-
| p_bat | pointer to the BAT structure |
- Returns
- nothing.
| #define dvbpsi_NewBAT |
( |
|
p_bat, |
|
|
|
i_bouquet_id, |
|
|
|
i_version, |
|
|
|
b_current_next |
|
) |
| |
Value:do { \
} while(0);
BAT structure.
Definition: bat.h:89
void dvbpsi_InitBAT(dvbpsi_bat_t *p_bat, uint16_t i_bouquet_id, uint8_t i_version, int b_current_next)
Initialize a user-allocated dvbpsi_bat_t structure.
Allocate and initialize a new dvbpsi_bat_t structure.
- Parameters
-
| p_bat | pointer to the BAT structure |
| i_bouquet_id | bouquet ID |
| i_version | BAT version |
| b_current_next | current next indicator |
| i_network_id | original network id |
- Returns
- nothing.
| void dvbpsi_DetachBAT |
( |
dvbpsi_demux_t * |
p_demux, |
|
|
uint8_t |
i_table_id, |
|
|
uint16_t |
i_extension |
|
) |
| |
Destroy a BAT decoder.
- Parameters
-
| p_demux | Subtable demultiplexor to which the decoder is attached. |
| i_table_id | Table ID, 0x4a. |
| i_extension | Table ID extension, here bouquet ID. |
- Returns
- nothing.
Clean a dvbpsi_bat_t structure.
- Parameters
-
| p_bat | pointer to the BAT structure |
- Returns
- nothing.
| void dvbpsi_InitBAT |
( |
dvbpsi_bat_t * |
p_bat, |
|
|
uint16_t |
i_bouquet_id, |
|
|
uint8_t |
i_version, |
|
|
int |
b_current_next |
|
) |
| |
Initialize a user-allocated dvbpsi_bat_t structure.
- Parameters
-
| p_bat | pointer to the BAT structure |
| i_bouquet_id | bouquet ID |
| i_version | BAT version |
| b_current_next | current next indicator |
| i_network_id | original network id |
- Returns
- nothing.