Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
ad90fcf4
Commit
ad90fcf4
authored
Jun 13, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TOT: refactor dvbpsi_GatherTOTSections
parent
146d2414
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
234 additions
and
28 deletions
+234
-28
src/tables/tot.c
src/tables/tot.c
+210
-23
src/tables/tot.h
src/tables/tot.h
+17
-5
src/tables/tot_private.h
src/tables/tot_private.h
+7
-0
No files found.
src/tables/tot.c
View file @
ad90fcf4
This diff is collapsed.
Click to expand it.
src/tables/tot.h
View file @
ad90fcf4
...
...
@@ -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
...
...
src/tables/tot_private.h
View file @
ad90fcf4
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment