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.
|
void | dvbpsi_DetachDemux (dvbpsi_t *p_dvbpsi) |
| Destroys a demux structure.
|
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.
|
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.
|
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.
|
void | dvbpsi_DeleteDemuxSubDecoder (dvbpsi_demux_subdec_t *p_subdec) |
| Releases memory allocated with.
|
void | dvbpsi_AttachDemuxSubDecoder (dvbpsi_demux_t *p_demux, dvbpsi_demux_subdec_t *p_subdec) |
| Attach a subtable decoder to the given demux handle.
|
void | dvbpsi_DetachDemuxSubDecoder (dvbpsi_demux_t *p_demux, dvbpsi_demux_subdec_t *p_subdec) |
| Detach a subtable decoder from the given demux pointer.
|
Subtable demutiplexor.
>
- Author
- Johan Bilien jobi@.nosp@m.via..nosp@m.ecp.f.nosp@m.r
Subtable demultiplexor structure
◆ dvbpsi_demux_detach_cb_t
Callback used for detaching subtable decoder from demuxer.
table extention to detach
- Parameters
-
p_dvbpsi | pointer to dvbpsi handle |
i_table_id | table id to detach |
◆ dvbpsi_demux_gather_cb_t
Callback used for gathering psi sections on behalf of subtable decoders.
pointer to psi section
- Parameters
-
p_dvbpsi | pointer to dvbpsi handle |
p_decoder | pointer to decoder |
◆ dvbpsi_demux_new_cb_t
Callback used in case of a new subtable detected.
pointer to callback data
- Parameters
-
p_dvbpsi | pointer to dvbpsi handle |
i_table_id | table id to attach |
i_extension | table extention to attach |
◆ dvbpsi_AttachDemux()
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
◆ dvbpsi_AttachDemuxSubDecoder()
Attach a subtable decoder to the given demux handle.
- Parameters
-
- Returns
- nothing
◆ dvbpsi_DeleteDemuxSubDecoder()
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.
◆ dvbpsi_Demux()
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. |
◆ dvbpsi_demuxGetSubDec()
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.
References i_extension, and i_table_id.
◆ dvbpsi_DetachDemux()
void dvbpsi_DetachDemux |
( |
dvbpsi_t * | p_dvbpsi | ) |
|
Destroys a demux structure.
- Parameters
-
p_dvbpsi | The handle of the demux to be destroyed. |
- Returns
- nothing
◆ dvbpsi_DetachDemuxSubDecoder()
Detach a subtable decoder from the given demux pointer.
- Parameters
-
- Returns
- nothing
◆ dvbpsi_NewDemuxSubDecoder()
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.
References i_extension, and i_table_id.