libdvbpsi  2.0.0-git
Data Structures | Typedefs | Functions | Variables
demux.h File Reference

Subtable demutiplexor. More...

Go to the source code of this file.

Data Structures

struct  dvbpsi_demux_subdec_s
 Subtable decoder structure. More...
 
struct  dvbpsi_demux_s
 subtable demultiplexor structure More...
 

Typedefs

typedef void(* dvbpsi_demux_new_cb_t )(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, void *p_cb_data)
 Callback used in case of a new subtable detected. More...
 
typedef void(* dvbpsi_demux_gather_cb_t )(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_decoder, dvbpsi_psi_section_t *p_section)
 Callback used for gathering psi sections on behalf of subtable decoders. More...
 
typedef void(* dvbpsi_demux_detach_cb_t )(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)
 Callback used for detaching subtable decoder from demuxer. More...
 
typedef struct
dvbpsi_demux_subdec_s 
dvbpsi_demux_subdec_t
 dvbpsi_demux_subdec_t type definition.
 
typedef struct dvbpsi_demux_s dvbpsi_demux_t
 dvbpsi_demux_t type definition.
 

Functions

 __attribute__ ((deprecated)) bool dvbpsi_AttachDemux(dvbpsi_t *p_dvbpsi
 Attaches a new demux structure on dvbpsi_t* handle. More...
 

Variables

dvbpsi_demux_new_cb_t pf_new_cb
 
dvbpsi_demux_new_cb_t void * p_new_cb_data
 
uint8_t i_table_id
 
uint8_t uint16_t i_extension
 
dvbpsi_psi_section_tp_section
 
const uint16_t
dvbpsi_demux_detach_cb_t 
pf_detach
 
const uint16_t
dvbpsi_demux_detach_cb_t
dvbpsi_demux_gather_cb_t 
pf_gather
 
const uint16_t
dvbpsi_demux_detach_cb_t
dvbpsi_demux_gather_cb_t
dvbpsi_decoder_t
p_decoder
 
dvbpsi_demux_subdec_tp_subdec
 

Detailed Description

Subtable demutiplexor.

Author
Johan Bilien jobi@.nosp@m.via..nosp@m.ecp.f.nosp@m.r Subtable demultiplexor structure
Note
deprecated

Typedef Documentation

void(* dvbpsi_demux_detach_cb_t)(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension)

Callback used for detaching subtable decoder from demuxer.

table extention to detach

void(* dvbpsi_demux_gather_cb_t)(dvbpsi_t *p_dvbpsi, void *p_cb_data, dvbpsi_psi_section_t *p_section)

Callback used for gathering psi sections on behalf of subtable decoders.

pointer to psi section

void(* dvbpsi_demux_new_cb_t)(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, void *p_cb_data)

Callback used in case of a new subtable detected.

pointer to callback data

Function Documentation

__attribute__ ( (deprecated)  )

Attaches a new demux structure on dvbpsi_t* handle.

Detach a subtable decoder from the given demux pointer.

Attach a subtable decoder to the given demux handle.

Releases memory allocated with.

Allocates a new demux sub table decoder and initializes it.

Sends the PSI sections to the right subtable decoder according to their table ID and extension.

Destroys a demux structure.

Parameters
p_dvbpsipointer to dvbpsi_t handle
pf_new_cbA callcack called when a new type of subtable is found.
p_new_cb_dataData given to the previous callback.
Returns
true on success, false on failure
Parameters
p_dvbpsiThe handle of the demux to be destroyed.
Returns
nothing
Parameters
p_dvbpsiPSI decoder handle.
p_sectionPSI section.
i_table_idtable id to create subtable decoder for
i_extensiontable extension to create subtable decoder for
pf_detachpointer to detach function for subtable decoder.
pf_gatherpointer to gather function for subtable decoder.
p_decoderpointer to private decoder.
Returns
pointer to demux subtable decoder.
See also
dvbpsi_NewDemuxSubDecoder. It will also release p_cb_data pointer.
Parameters
p_subdecpointer to demux subtable decoder.
Returns
nothing.
Parameters
p_demuxpointer to dvbpsi_demux_t
p_subdecpointer to dvbpsi_demux_subdec_t
Returns
nothing