libdvbpsi  2.0.0-git
MPEG Transport Stream PSI table parser
Data Structures | Typedefs | Functions | Variables
atsc_stt.h File Reference

Decode PSIP System Time Table (ATSC STT). More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_atsc_stt_s
 STT structure. More...
 

Typedefs

typedef struct dvbpsi_atsc_stt_s dvbpsi_atsc_stt_t
 dvbpsi_atsc_stt_t type definition.
 
typedef void(* dvbpsi_atsc_stt_callback) (void *p_priv, dvbpsi_atsc_stt_t *p_new_stt)
 Callback type definition.
 

Functions

bool dvbpsi_atsc_stt_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_stt_callback pf_stt_callback, void *p_priv)
 
 __attribute__ ((deprecated, unused)) inline bool dvbpsi_atsc_AttachSTT(dvbpsi_t *p_dvbpsi
 dvbpsi_atsc_AttachSTT is deprecated use More...
 
void dvbpsi_atsc_stt_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_externsion)
 Destroy a STT decoder. More...
 
void dvbpsi_atsc_stt_init (dvbpsi_atsc_stt_t *p_stt, uint8_t i_table_id, uint16_t i_extension, uint8_t i_protocol, bool b_current_next)
 Initialize a user-allocated dvbpsi_atsc_stt_t structure. More...
 
dvbpsi_atsc_stt_tdvbpsi_atsc_stt_new (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, bool b_current_next)
 Allocate and initialize a new dvbpsi_atsc_stt_t structure. Use ObjectRefDec to delete it. More...
 
void dvbpsi_atsc_stt_empty (dvbpsi_atsc_stt_t *p_stt)
 Clean a dvbpsi_atsc_stt_t structure. More...
 
void dvbpsi_atsc_stt_delete (dvbpsi_atsc_stt_t *p_stt)
 Clean and free a dvbpsi_atsc_stt_t structure. More...
 

Variables

uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
uint8_t uint16_t dvbpsi_atsc_stt_callback pf_stt_callback
 
uint8_t uint16_t dvbpsi_atsc_stt_callback void * p_priv
 
uint8_t uint16_t i_externsion
 
uint8_t uint16_t uint8_t i_protocol
 
uint8_t uint16_t uint8_t bool b_current_next
 
uint16_t uint8_t i_version
 

Detailed Description

Decode PSIP System Time Table (ATSC STT).

Author
Adam Charrett

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated, unused)  )

dvbpsi_atsc_AttachSTT is deprecated use

dvbpsi_atsc_DetachEIT is deprecated use

dvbpsi_atsc_DeleteSTT is deprecated use

dvbpsi_atsc_EmptySTT is deprecated use

dvbpsi_atsc_NewSTT is deprecated use

dvbpsi_atsc_InitSTT is deprecated use

dvbpsi_atsc_DetachSTT is deprecated use

See also
dvbpsi_atsc_stt_attach() instead.
Parameters
p_eitpointer to the EIT structure
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCD.
i_extensionTable ID extension, here it should be 0.
pf_stt_callbackfunction to call back on new STT.
p_privprivate data given in argument to the callback.
Returns
true if everything went ok else false
See also
dvbpsi_atsc_stt_detach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0. (Required to match prototype for demux)
Returns
nothing.
See also
dvbpsi_atsc_stt_init() instead.
Parameters
p_sttpointer to the STT structure
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0.
i_protocolPSIP Protocol version.
b_current_nextcurrent next indicator
Returns
nothing.
See also
dvbpsi_atsc_stt_new() instead.
Parameters
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0.
i_versionPSIP Protocol version.
b_current_nextcurrent next indicator
Returns
p_stt pointer to the STT structure
See also
dvbpsi_atsc_stt_empty() instead.

Clean a dvbpsi_atsc_stt_t structure.

Parameters
p_sttpointer to the STT structure
Returns
nothing.
See also
dvbpsi_atsc_stt_delete() instead.

Clean a dvbpsi_atsc_stt_t structure.

Parameters
p_sttpointer to the STT structure
Returns
nothing.

References dvbpsi_atsc_stt_empty().

◆ dvbpsi_atsc_stt_delete()

dvbpsi_atsc_stt_delete ( dvbpsi_atsc_stt_t p_stt)

Clean and free a dvbpsi_atsc_stt_t structure.

Parameters
p_sttpointer to the STT structure
Returns
nothing.

◆ dvbpsi_atsc_stt_detach()

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

Destroy a STT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0. (Required to match prototype for demux)
Returns
nothing.

◆ dvbpsi_atsc_stt_empty()

void dvbpsi_atsc_stt_empty ( dvbpsi_atsc_stt_t p_stt)

Clean a dvbpsi_atsc_stt_t structure.

Parameters
p_sttpointer to the STT structure
Returns
nothing.

Referenced by __attribute__().

◆ dvbpsi_atsc_stt_init()

void dvbpsi_atsc_stt_init ( dvbpsi_atsc_stt_t p_stt,
uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_protocol,
bool  b_current_next 
)

Initialize a user-allocated dvbpsi_atsc_stt_t structure.

Parameters
p_sttpointer to the STT structure
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0.
i_protocolPSIP Protocol version.
b_current_nextcurrent next indicator
Returns
nothing.

◆ dvbpsi_atsc_stt_new()

dvbpsi_atsc_stt_t * dvbpsi_atsc_stt_new ( uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
bool  b_current_next 
)

Allocate and initialize a new dvbpsi_atsc_stt_t structure. Use ObjectRefDec to delete it.

Parameters
i_table_idTable ID, 0xCD.
i_extensionTable extension, ignored as this should always be 0.
i_versionPSIP Protocol version.
b_current_nextcurrent next indicator
Returns
p_stt pointer to the STT structure

Variable Documentation

◆ b_current_next

uint16_t uint8_t bool b_current_next
Initial value:
{
dvbpsi_atsc_stt_init(p_stt, i_table_id, i_extension, i_protocol, b_current_next)
void dvbpsi_atsc_stt_init(dvbpsi_atsc_stt_t *p_stt, uint8_t i_table_id, uint16_t i_extension, uint8_t i_protocol, bool b_current_next)
Initialize a user-allocated dvbpsi_atsc_stt_t structure.

◆ i_externsion

uint8_t uint16_t i_externsion
Initial value:
{
dvbpsi_atsc_stt_detach(p_dvbpsi, i_table_id, i_externsion)
void dvbpsi_atsc_stt_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_externsion)
Destroy a STT decoder.

◆ p_priv

uint8_t uint16_t dvbpsi_atsc_stt_callback void* p_priv
Initial value:
{
return dvbpsi_atsc_stt_attach(p_dvbpsi, i_table_id, i_extension,
pf_stt_callback, p_priv)