atsc_vct.h File Reference
Decode PSIP Virtual Channel Table. (ATSC VCT).
More...
Go to the source code of this file.
Data Structures |
struct | dvbpsi_atsc_vct_channel_s |
| VCT channel structure. More...
|
struct | dvbpsi_atsc_vct_s |
| VCT structure. More...
|
Typedefs |
typedef struct
dvbpsi_atsc_vct_channel_s | dvbpsi_atsc_vct_channel_t |
| dvbpsi_atsc_vct_channel_t type definition.
|
typedef struct dvbpsi_atsc_vct_s | dvbpsi_atsc_vct_t |
| dvbpsi_atsc_vct_t type definition.
|
typedef void(* | dvbpsi_atsc_vct_callback )(void *p_cb_data, dvbpsi_atsc_vct_t *p_new_vct) |
| Callback type definition.
|
Functions |
bool | dvbpsi_atsc_AttachVCT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_vct_callback pf_vct_callback, void *p_cb_data) |
| Creation and initialization of a VCT decoder.
|
void | dvbpsi_atsc_DetachVCT (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension) |
| Destroy a VCT decoder.
|
void | dvbpsi_atsc_InitVCT (dvbpsi_atsc_vct_t *p_vct, uint8_t i_table_id, uint16_t i_extension, uint8_t i_protocol, bool b_cable_vct, uint8_t i_version, bool b_current_next) |
| Initialize a user-allocated dvbpsi_atsc_vct_t structure.
|
dvbpsi_atsc_vct_t * | dvbpsi_atsc_NewVCT (uint8_t i_table_id, uint16_t i_extension, uint8_t i_protocol, bool b_cable_vct, uint8_t i_version, bool b_current_next) |
| Allocate and initialize a new dvbpsi_vct_t structure.
|
void | dvbpsi_atsc_EmptyVCT (dvbpsi_atsc_vct_t *p_vct) |
| Clean a dvbpsi_vct_t structure.
|
void | dvbpsi_atsc_DeleteVCT (dvbpsi_atsc_vct_t *p_vct) |
| Clean and free a dvbpsi_vct_t structure.
|
Detailed Description
Decode PSIP Virtual Channel Table. (ATSC VCT).
- Author:
- Adam Charrett
Function Documentation
Creation and initialization of a VCT decoder.
- Parameters:
-
| p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached. |
| i_table_id | Table ID, 0xC8 or 0xC9. |
| i_extension | Table ID extension, here TS ID. |
| pf_vct_callback | function to call back on new VCT. |
| p_cb_data | private data given in argument to the callback. |
- Returns:
- true if everything went ok, else false.
Clean and free a dvbpsi_vct_t structure.
- Parameters:
-
| p_vct | pointer to the VCT structure |
- Returns:
- nothing.
void dvbpsi_atsc_DetachVCT |
( |
dvbpsi_t * |
p_dvbpsi, |
|
|
uint8_t |
i_table_id, |
|
|
uint16_t |
i_extension | |
|
) |
| | |
Destroy a VCT decoder.
- Parameters:
-
| p_dvbpsi | dvbpsi handle to Subtable demultiplexor to which the decoder is attached. |
| i_table_id | Table ID, 0xC8 or 0xC9. |
| i_extension | Table ID extension, here TS ID. |
- Returns:
- nothing.
Clean a dvbpsi_vct_t structure.
- Parameters:
-
| p_vct | pointer to the VCT structure |
- Returns:
- nothing.
void dvbpsi_atsc_InitVCT |
( |
dvbpsi_atsc_vct_t * |
p_vct, |
|
|
uint8_t |
i_table_id, |
|
|
uint16_t |
i_extension, |
|
|
uint8_t |
i_protocol, |
|
|
bool |
b_cable_vct, |
|
|
uint8_t |
i_version, |
|
|
bool |
b_current_next | |
|
) |
| | |
Initialize a user-allocated dvbpsi_atsc_vct_t structure.
- Parameters:
-
| p_vct | pointer to the VCT structure |
| i_table_id | Table ID, 0xC8 or 0xC9. |
| i_extension | Table ID extension, here TS ID. |
| i_protocol | PSIP Protocol version. |
| b_cable_vct | Whether this is CVCT or a TVCT. |
| i_version | VCT version |
| b_current_next | current next indicator |
- Returns:
- nothing.
dvbpsi_atsc_vct_t * dvbpsi_atsc_NewVCT |
( |
uint8_t |
i_table_id, |
|
|
uint16_t |
i_extension, |
|
|
uint8_t |
i_protocol, |
|
|
bool |
b_cable_vct, |
|
|
uint8_t |
i_version, |
|
|
bool |
b_current_next | |
|
) |
| | |
Allocate and initialize a new dvbpsi_vct_t structure.
- Parameters:
-
| i_table_id | Table ID, 0xC8 or 0xC9. |
| i_extension | Table ID extension, here TS ID. |
| i_protocol | PSIP Protocol version. |
| b_cable_vct | Whether this is CVCT or a TVCT. |
| i_version | VCT version |
| b_current_next | current next indicator |
- Returns:
- p_vct pointer to the VCT structure