Subtable demutiplexor.
More...
Go to the source code of this file.
|
bool | dvbpsi_AttachDemux (dvbpsi_t *p_dvbpsi, dvbpsi_demux_new_cb_t pf_new_cb, void *p_new_cb_data) |
| Attaches a new demux structure on dvbpsi_t* handle. More...
|
|
void | dvbpsi_DetachDemux (dvbpsi_t *p_dvbpsi) |
| Destroys a demux structure. More...
|
|
dvbpsi_demux_subdec_t * | dvbpsi_demuxGetSubDec (dvbpsi_demux_t *p_demux, uint8_t i_table_id, uint16_t i_extension) |
| Looks for a subtable decoder, given the subtable ID. More...
|
|
void | dvbpsi_Demux (dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t *p_section) |
| Sends the PSI sections to the right subtable decoder according to their table ID and extension. More...
|
|
dvbpsi_demux_subdec_t * | dvbpsi_NewDemuxSubDecoder (const uint8_t i_table_id, const uint16_t i_extension, dvbpsi_demux_detach_cb_t pf_detach, dvbpsi_demux_gather_cb_t pf_gather, dvbpsi_decoder_t *p_decoder) |
| Allocates a new demux sub table decoder and initializes it. More...
|
|
void | dvbpsi_DeleteDemuxSubDecoder (dvbpsi_demux_subdec_t *p_subdec) |
| Releases memory allocated with. More...
|
|
void | dvbpsi_AttachDemuxSubDecoder (dvbpsi_demux_t *p_demux, dvbpsi_demux_subdec_t *p_subdec) |
| Attach a subtable decoder to the given demux handle. More...
|
|
void | dvbpsi_DetachDemuxSubDecoder (dvbpsi_demux_t *p_demux, dvbpsi_demux_subdec_t *p_subdec) |
| Detach a subtable decoder from the given demux pointer. More...
|
|
Subtable demutiplexor.
- Author
- Johan Bilien jobi@.nosp@m.via..nosp@m.ecp.f.nosp@m.r Subtable demultiplexor structure
Callback used for detaching subtable decoder from demuxer.
table extention to detach
Callback used for gathering psi sections on behalf of subtable decoders.
pointer to psi section
Callback used in case of a new subtable detected.
pointer to callback data
Attaches a new demux structure on dvbpsi_t* handle.
- Parameters
-
p_dvbpsi | pointer to dvbpsi_t handle |
pf_new_cb | A callcack called when a new type of subtable is found. |
p_new_cb_data | Data given to the previous callback. |
- Returns
- true on success, false on failure
Attach a subtable decoder to the given demux handle.
- Parameters
-
p_demux | pointer to dvbpsi_demux_t |
p_subdec | pointer to dvbpsi_demux_subdec_t |
- Returns
- nothing
Releases memory allocated with.
- See also
- dvbpsi_NewDemuxSubDecoder. It will also release p_cb_data pointer.
- Parameters
-
p_subdec | pointer to demux subtable decoder. |
- Returns
- nothing.
Sends the PSI sections to the right subtable decoder according to their table ID and extension.
- Parameters
-
p_dvbpsi | PSI decoder handle. |
p_section | PSI section. |
Looks for a subtable decoder, given the subtable ID.
- Parameters
-
p_demux | Pointer to the demux structure. |
i_table_id | Table ID of the wanted subtable. |
i_extension | Table ID extension of the wanted subtable. |
- Returns
- a pointer to the found subdecoder, or NULL.
void dvbpsi_DetachDemux |
( |
dvbpsi_t * |
p_dvbpsi | ) |
|
Destroys a demux structure.
- Parameters
-
p_dvbpsi | The handle of the demux to be destroyed. |
- Returns
- nothing
Detach a subtable decoder from the given demux pointer.
- Parameters
-
p_demux | pointer to dvbpsi_demux_t |
p_subdec | pointer to dvbpsi_demux_subdec_t |
- Returns
- nothing
Allocates a new demux sub table decoder and initializes it.
- Parameters
-
i_table_id | table id to create subtable decoder for |
i_extension | table extension to create subtable decoder for |
pf_detach | pointer to detach function for subtable decoder. |
pf_gather | pointer to gather function for subtable decoder. |
p_decoder | pointer to private decoder. |
- Returns
- pointer to demux subtable decoder.