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

Decode PSIP Event Information Table (ATSC EIT). More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_atsc_eit_event_s
 ATSC EIT Event structure. More...
 
struct  dvbpsi_atsc_eit_s
 ATSC EIT structure. More...
 

Typedefs

typedef struct dvbpsi_atsc_eit_event_s dvbpsi_atsc_eit_event_t
 dvbpsi_atsc_eit_event_t type definition.
 
typedef struct dvbpsi_atsc_eit_s dvbpsi_atsc_eit_t
 dvbpsi_atsc_eit_t type definition.
 
typedef void(* dvbpsi_atsc_eit_callback) (void *p_priv, dvbpsi_atsc_eit_t *p_new_eit)
 Callback type definition.
 

Functions

bool dvbpsi_atsc_eit_attach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_eit_callback pf_callback, void *p_priv)
 
 __attribute__ ((deprecated, unused)) inline bool dvbpsi_atsc_AttachEIT(dvbpsi_t *p_dvbpsi
 dvbpsi_atsc_AttachEIT is deprecated use More...
 
void dvbpsi_atsc_eit_detach (dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Destroy a EIT decoder. More...
 
void dvbpsi_atsc_eit_init (dvbpsi_atsc_eit_t *p_eit, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
 Initialize a user-allocated dvbpsi_atsc_eit_t structure. More...
 
dvbpsi_atsc_eit_tdvbpsi_atsc_eit_new (uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
 Allocate and initialize a new dvbpsi_eit_t structure. Use ObjectRefDec to delete it. More...
 
void dvbpsi_atsc_eit_empty (dvbpsi_atsc_eit_t *p_eit)
 Clean a dvbpsi_eit_t structure. More...
 
void dvbpsi_atsc_eit_delete (dvbpsi_atsc_eit_t *p_eit)
 Clean and free a dvbpsi_eit_t structure. More...
 

Variables

uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
uint8_t uint16_t dvbpsi_atsc_eit_callback pf_callback
 
uint8_t uint16_t dvbpsi_atsc_eit_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 uint16_t i_source_id
 
uint8_t uint16_t uint8_t uint8_t uint16_t bool b_current_next
 

Detailed Description

Decode PSIP Event Information Table (ATSC EIT).

Author
Adam Charrett

Function Documentation

◆ __attribute__()

__attribute__ ( (deprecated, unused)  )

dvbpsi_atsc_AttachEIT is deprecated use

dvbpsi_atsc_DeleteEIT is deprecated use

dvbpsi_atsc_EmptyEIT is deprecated use

dvbpsi_atsc_NewEIT is deprecated use

dvbpsi_atsc_InitEIT is deprecated use

dvbpsi_atsc_DetachEIT is deprecated use

See also
dvbpsi_atsc_eit_attach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
pf_callbackfunction to call back on new EIT.
p_privprivate data given in argument to the callback.
Returns
true if everything went ok, false otherwise
See also
dvbpsi_atsc_eit_detach() instead.
Parameters
p_dvbpsidvbpsi handle to Subtable demultiplexor to which the decoder is attached.
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
Returns
nothing.
See also
dvbpsi_atsc_eit_init() instead.
Parameters
p_eitpointer to the EIT structure
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
nothing.
See also
dvbpsi_atsc_eit_new() instead.
Parameters
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
p_eit pointer to the EIT structure or NULL on error
See also
dvbpsi_atsc_eit_empty() instead.
Parameters
p_eitpointer to the EIT structure
See also
dvbpsi_atsc_eit_delete() instead.
Parameters
p_eitpointer to the EIT structure

◆ dvbpsi_atsc_eit_delete()

void dvbpsi_atsc_eit_delete ( dvbpsi_atsc_eit_t p_eit)

Clean and free a dvbpsi_eit_t structure.

Parameters
p_eitpointer to the EIT structure
Returns
nothing.

◆ dvbpsi_atsc_eit_detach()

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

Destroy a EIT decoder.

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

◆ dvbpsi_atsc_eit_empty()

void dvbpsi_atsc_eit_empty ( dvbpsi_atsc_eit_t p_eit)

Clean a dvbpsi_eit_t structure.

Parameters
p_eitpointer to the EIT structure
Returns
nothing.

Referenced by __attribute__().

◆ dvbpsi_atsc_eit_init()

void dvbpsi_atsc_eit_init ( dvbpsi_atsc_eit_t p_eit,
uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint16_t  i_source_id,
bool  b_current_next 
)

Initialize a user-allocated dvbpsi_atsc_eit_t structure.

Parameters
p_eitpointer to the EIT structure
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
nothing.

◆ dvbpsi_atsc_eit_new()

dvbpsi_atsc_eit_t * dvbpsi_atsc_eit_new ( uint8_t  i_table_id,
uint16_t  i_extension,
uint8_t  i_version,
uint8_t  i_protocol,
uint16_t  i_source_id,
bool  b_current_next 
)

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

Parameters
i_table_idTable ID, 0xCB.
i_extensionTable ID extension, here TS ID.
i_versionEIT version
i_protocolPSIP Protocol version.
i_source_idSource id.
b_current_nextcurrent next indicator
Returns
p_eit pointer to the EIT structure or NULL on error

Variable Documentation

◆ b_current_next

uint16_t uint8_t bool uint8_t bool b_current_next
Initial value:
{
dvbpsi_atsc_eit_init(p_eit, i_table_id, i_extension, i_version,
i_protocol, i_source_id, b_current_next)
void dvbpsi_atsc_eit_init(dvbpsi_atsc_eit_t *p_eit, uint8_t i_table_id, uint16_t i_extension, uint8_t i_version, uint8_t i_protocol, uint16_t i_source_id, bool b_current_next)
Initialize a user-allocated dvbpsi_atsc_eit_t structure.

◆ i_extension

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

◆ p_priv

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