libdvbpsi  2.0.0-git
MPEG Transport Stream PSI table parser
Data Structures | Typedefs | Functions | Variables
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_priv, dvbpsi_atsc_vct_t *p_new_vct)
 Callback type definition.
 

Functions

bool dvbpsi_atsc_vct_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_vct_callback pf_vct_callback, void *p_priv)
 
 __attribute__ ((deprecated, unused)) inline bool dvbpsi_atsc_AttachVCT(dvbpsi_t *p_dvbpsi
 dvbpsi_atsc_AttachVCT is deprecated use More...
 
void dvbpsi_atsc_vct_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a VCT decoder. More...
 
void dvbpsi_atsc_vct_init (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. More...
 
dvbpsi_atsc_vct_tdvbpsi_atsc_vct_new (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. More...
 
void dvbpsi_atsc_vct_empty (dvbpsi_atsc_vct_t *p_vct)
 Clean a dvbpsi_vct_t structure. More...
 
void dvbpsi_atsc_vct_delete (dvbpsi_atsc_vct_t *p_vct)
 Clean and free a dvbpsi_vct_t structure. More...
 

Variables

uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
uint8_t uint16_t dvbpsi_atsc_vct_callback pf_vct_callback
 
uint8_t uint16_t dvbpsi_atsc_vct_callback void * p_priv
 
uint8_t uint16_t uint8_t i_protocol
 
uint8_t uint16_t uint8_t bool b_cable_vct
 
uint8_t uint16_t uint8_t bool uint8_t i_version
 
uint8_t uint16_t uint8_t bool uint8_t bool b_current_next
 

Detailed Description

Decode PSIP Virtual Channel Table. (ATSC VCT).

Author
Adam Charrett

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated, unused)  )

dvbpsi_atsc_AttachVCT is deprecated use

dvbpsi_atsc_DetachEIT is deprecated use

dvbpsi_atsc_DeleteVCT is deprecated use

dvbpsi_atsc_EmptyVCT is deprecated use

dvbpsi_atsc_NewVCT is deprecated use

dvbpsi_atsc_InitVCT is deprecated use

dvbpsi_atsc_DetachVCT is deprecated use

See also
dvbpsi_atsc_vct_attach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
pf_vct_callbackfunction to call back on new VCT.
p_privprivate data given in argument to the callback.
Returns
true if everything went ok, else false.
See also
dvbpsi_atsc_vct_detach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
Returns
nothing.
See also
dvbpsi_atsc_vct_init() instead.
Parameters
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
i_protocolPSIP Protocol version.
b_cable_vctWhether this is CVCT or a TVCT.
i_versionVCT version
b_current_nextcurrent next indicator
Returns
nothing.
See also
dvbpsi_atsc_vct_new() instead.
Parameters
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
i_protocolPSIP Protocol version.
b_cable_vctWhether this is CVCT or a TVCT.
i_versionVCT version
b_current_nextcurrent next indicator
Returns
p_vct pointer to the VCT structure
See also
dvbpsi_atsc_vct_empty() instead.

Clean a dvbpsi_vct_t structure.

Parameters
p_vctpointer to the VCT structure
Returns
nothing.
See also
dvbpsi_atsc_vct_delete() instead.

Clean a dvbpsi_vct_t structure.

Parameters
p_vctpointer to the VCT structure
Returns
nothing.

References dvbpsi_atsc_vct_empty().

◆ dvbpsi_atsc_vct_delete()

void dvbpsi_atsc_vct_delete ( dvbpsi_atsc_vct_t p_vct)

Clean and free a dvbpsi_vct_t structure.

Parameters
p_vctpointer to the VCT structure
Returns
nothing.

◆ dvbpsi_atsc_vct_detach()

void dvbpsi_atsc_vct_detach ( dvbpsi_t p_dvbpsi,
uint8_t  i_table_id,
uint16_t  i_extension 
)

Destroy a VCT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
Returns
nothing.

◆ dvbpsi_atsc_vct_empty()

void dvbpsi_atsc_vct_empty ( dvbpsi_atsc_vct_t p_vct)

Clean a dvbpsi_vct_t structure.

Parameters
p_vctpointer to the VCT structure
Returns
nothing.

Referenced by __attribute__().

◆ dvbpsi_atsc_vct_init()

void dvbpsi_atsc_vct_init ( 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_vctpointer to the VCT structure
i_table_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
i_protocolPSIP Protocol version.
b_cable_vctWhether this is CVCT or a TVCT.
i_versionVCT version
b_current_nextcurrent next indicator
Returns
nothing.

◆ dvbpsi_atsc_vct_new()

dvbpsi_atsc_vct_t * dvbpsi_atsc_vct_new ( 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_idTable ID, 0xC8 or 0xC9.
i_extensionTable ID extension, here TS ID.
i_protocolPSIP Protocol version.
b_cable_vctWhether this is CVCT or a TVCT.
i_versionVCT version
b_current_nextcurrent next indicator
Returns
p_vct pointer to the VCT structure

Variable Documentation

◆ b_current_next

uint16_t uint8_t bool uint8_t bool b_current_next
Initial value:
{
dvbpsi_atsc_vct_init(p_vct, i_table_id, i_extension, i_protocol, b_cable_vct,
i_version, b_current_next)
void dvbpsi_atsc_vct_init(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.

◆ i_extension

uint16_t i_extension
Initial value:
{
dvbpsi_atsc_vct_detach(p_dvbpsi, i_table_id, i_extension)
void dvbpsi_atsc_vct_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
Destroy a VCT decoder.

◆ p_priv

uint8_t uint16_t dvbpsi_atsc_vct_callback void* p_priv
Initial value:
{
return dvbpsi_atsc_vct_attach(p_dvbpsi, i_table_id, i_extension,
pf_vct_callback, p_priv)