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

Decode PSIP Extented Text Table (ATSC ETT). More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_atsc_ett_s
 ATSC ETT structure. More...
 

Typedefs

typedef struct dvbpsi_atsc_ett_s dvbpsi_atsc_ett_t
 dvbpsi_atsc_ett_t type definition. More...
 
typedef void(* dvbpsi_atsc_ett_callback) (void *p_priv, dvbpsi_atsc_ett_t *p_new_ett)
 Callback type definition.
 

Functions

bool dvbpsi_atsc_ett_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_ett_callback pf_callback, void *p_priv)
 
 __attribute__ ((deprecated, unused)) inline bool dvbpsi_atsc_AttachETT(dvbpsi_t *p_dvbpsi
 dvbpsi_atsc_AttachETT is deprecated use More...
 
void dvbpsi_atsc_ett_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a ETT decoder. More...
 
void dvbpsi_atsc_ett_init (dvbpsi_atsc_ett_t *p_ett, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint32_t i_etm_id, bool b_current_next)
 Initialize a user-allocated dvbpsi_atsc_ett_t structure. More...
 
dvbpsi_atsc_ett_tdvbpsi_atsc_ett_new (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint32_t i_etm_id, bool b_current_next)
 Allocate and initialize a new dvbpsi_atsc_ett_t structure. Use ObjectRefDec to delete it. More...
 
void dvbpsi_atsc_ett_empty (dvbpsi_atsc_ett_t *p_ett)
 Clean a dvbpsi_atsc_ett_t structure. More...
 
void dvbpsi_atsc_ett_delete (dvbpsi_atsc_ett_t *p_ett)
 Clean and free a dvbpsi_atsc_ett_t structure. More...
 

Variables

uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
uint8_t uint16_t dvbpsi_atsc_ett_callback pf_callback
 
uint8_t uint16_t dvbpsi_atsc_ett_callback void * p_priv
 
uint8_t uint16_t uint8_t i_version
 
uint8_t uint16_t uint8_t uint8_t i_protocol
 
uint8_t uint16_t uint8_t uint8_t uint32_t i_etm_id
 
uint8_t uint16_t uint8_t uint8_t uint32_t bool b_current_next
 

Detailed Description

Decode PSIP Extented Text Table (ATSC ETT).

Author
Adam Charrett

Typedef Documentation

◆ dvbpsi_atsc_ett_t

dvbpsi_atsc_ett_t type definition.

This structure is used to store a decoded ETT. (ATSC document A/56-2009, section 6.6.)

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated, unused)  )

dvbpsi_atsc_AttachETT is deprecated use

dvbpsi_atsc_DetachEIT is deprecated use

dvbpsi_atsc_DeleteETT is deprecated use

dvbpsi_atsc_EmptyETT is deprecated use

dvbpsi_atsc_NewETT is deprecated use

dvbpsi_atsc_InitETT is deprecated use

dvbpsi_atsc_DetachETT is deprecated use

See also
dvbpsi_atsc_ett_attach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
pf_callbackfunction to call back on new ETT.
p_privprivate data given in argument to the callback.
Returns
true if everything went ok, else it returns false.
See also
dvbpsi_atsc_ett_detach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCD.
i_extensionTable ID extension, normally 0x0000.
Returns
nothing.
See also
dvbpsi_atsc_ett_init() instead.
Parameters
p_ettpointer to the ETT structure
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
nothing.
See also
dvbpsi_atsc_ett_new() instead.
Parameters
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
p_ett pointer to the ETT structure, NULL otherwise
See also
dvbpsi_atsc_ett_empty() instead.
Parameters
p_ettpointer to the ETT structure
Returns
nothing.
See also
dvbpsi_atsc_ett_delete() instead.
Parameters
p_ettpointer to the ETT structure
Returns
nothing.

References dvbpsi_atsc_ett_empty().

◆ dvbpsi_atsc_ett_delete()

void dvbpsi_atsc_ett_delete ( dvbpsi_atsc_ett_t p_ett)

Clean and free a dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
Returns
nothing.

◆ dvbpsi_atsc_ett_detach()

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

Destroy a ETT decoder.

Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCD.
i_extensionTable ID extension, normally 0x0000.
Returns
nothing.

◆ dvbpsi_atsc_ett_empty()

void dvbpsi_atsc_ett_empty ( dvbpsi_atsc_ett_t p_ett)

Clean a dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
Returns
nothing.

Referenced by __attribute__().

◆ dvbpsi_atsc_ett_init()

void dvbpsi_atsc_ett_init ( dvbpsi_atsc_ett_t p_ett,
uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint32_t  i_etm_id,
bool  b_current_next 
)

Initialize a user-allocated dvbpsi_atsc_ett_t structure.

Parameters
p_ettpointer to the ETT structure
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
nothing.

◆ dvbpsi_atsc_ett_new()

dvbpsi_atsc_ett_t * dvbpsi_atsc_ett_new ( uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint32_t  i_etm_id,
bool  b_current_next 
)

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

Parameters
i_table_idTable ID, 0xCC.
i_extensionTable ID extension, normally 0x0000.
i_versionversion
i_protocolPSIP Protocol version.
i_etm_idETM Identifier.
b_current_nextcurrent next indicator
Returns
p_ett pointer to the ETT structure, NULL otherwise

Variable Documentation

◆ b_current_next

uint16_t uint8_t uint8_t uint32_t bool b_current_next
Initial value:
{
dvbpsi_atsc_ett_init(p_ett, i_table_id, i_extension, i_version, i_protocol,
i_etm_id, b_current_next)
void dvbpsi_atsc_ett_init(dvbpsi_atsc_ett_t *p_ett, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint32_t i_etm_id, bool b_current_next)
Initialize a user-allocated dvbpsi_atsc_ett_t structure.

◆ i_extension

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

◆ p_priv

uint8_t uint16_t dvbpsi_atsc_ett_callback void* p_priv
Initial value:
{
return dvbpsi_atsc_ett_attach(p_dvbpsi, i_table_id, i_extension,
pf_callback, p_priv)