Commit ad90fcf4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

TOT: refactor dvbpsi_GatherTOTSections

parent 146d2414
This diff is collapsed.
......@@ -57,6 +57,10 @@ extern "C" {
*/
typedef struct dvbpsi_tot_s
{
uint16_t i_ts_id; /*!< transport_stream_id */
uint8_t i_version; /*!< version_number */
bool b_current_next; /*!< current_next_indicator */
uint64_t i_utc_time; /*!< UTC_time */
dvbpsi_descriptor_t * p_first_descriptor; /*!< descriptor list */
......@@ -113,18 +117,26 @@ void dvbpsi_DetachTOT(dvbpsi_t* p_dvbpsi, uint8_t i_table_id,
* \fn void dvbpsi_InitTOT(dvbpsi_tot_t* p_tot, uint64_t i_utc_time)
* \brief Initialize a user-allocated dvbpsi_tot_t structure.
* \param p_tot pointer to the TDT/TOT structure
* \param i_ts_id transport stream ID
* \param i_version SDT version
* \param b_current_next current next indicator
* \param i_utc_time the time in UTC
* \return nothing.
*/
void dvbpsi_InitTOT(dvbpsi_tot_t* p_tot, uint64_t i_utc_time);
void dvbpsi_InitTOT(dvbpsi_tot_t* p_tot, uint16_t i_ts_id, uint8_t i_version,
bool b_current_next, uint64_t i_utc_time);
/*!
* \fn dvbpsi_tot_t *dvbpsi_NewTOT(uint64_t i_utc_time)
* \brief Allocate and initialize a new dvbpsi_tot_t structure.
* \param i_ts_id transport stream ID
* \param i_version SDT version
* \param b_current_next current next indicator
* \param i_utc_time the time in UTC
* \return p_tot pointer to the TDT/TOT structure
*/
dvbpsi_tot_t *dvbpsi_NewTOT(uint64_t i_utc_time);
dvbpsi_tot_t *dvbpsi_NewTOT(uint16_t i_ts_id, uint8_t i_version,
bool b_current_next, uint64_t i_utc_time);
/*****************************************************************************
* dvbpsi_EmptyTOT/dvbpsi_DeleteTOT
......
......@@ -42,6 +42,13 @@ typedef struct dvbpsi_tot_decoder_s
dvbpsi_tot_callback pf_tot_callback;
void * p_cb_data;
/* */
dvbpsi_tot_t current_tot;
dvbpsi_tot_t *p_building_tot;
bool b_current_valid;
uint8_t i_last_section_number;
dvbpsi_psi_section_t * ap_sections [256];
} dvbpsi_tot_decoder_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment