Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
2158cf90
Commit
2158cf90
authored
Jan 28, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: ts: make PMT/PAT generation reusable
parent
b80338e6
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
540 additions
and
431 deletions
+540
-431
modules/mux/Modules.am
modules/mux/Modules.am
+1
-1
modules/mux/mpeg/tables.c
modules/mux/mpeg/tables.c
+488
-0
modules/mux/mpeg/tables.h
modules/mux/mpeg/tables.h
+30
-0
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+21
-430
No files found.
modules/mux/Modules.am
View file @
2158cf90
...
@@ -25,7 +25,7 @@ libmux_ts_plugin_la_SOURCES = \
...
@@ -25,7 +25,7 @@ libmux_ts_plugin_la_SOURCES = \
mpeg/pes.c mpeg/pes.h \
mpeg/pes.c mpeg/pes.h \
mpeg/csa.c mpeg/csa.h \
mpeg/csa.c mpeg/csa.h \
mpeg/streams.h \
mpeg/streams.h \
mpeg/tables.h \
mpeg/tables.
c mpeg/tables.
h \
mpeg/tsutil.c mpeg/tsutil.h \
mpeg/tsutil.c mpeg/tsutil.h \
mpeg/ts.c mpeg/bits.h mpeg/dvbpsi_compat.h
mpeg/ts.c mpeg/bits.h mpeg/dvbpsi_compat.h
libmux_ts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
libmux_ts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)
...
...
modules/mux/mpeg/tables.c
0 → 100644
View file @
2158cf90
This diff is collapsed.
Click to expand it.
modules/mux/mpeg/tables.h
View file @
2158cf90
...
@@ -20,6 +20,12 @@
...
@@ -20,6 +20,12 @@
#ifndef _TABLES_H
#ifndef _TABLES_H
#define _TABLES_H 1
#define _TABLES_H 1
#if (DVBPSI_VERSION_INT >= DVBPSI_VERSION_WANTED(1,0,0))
#define DVBPSI_HANDLE_PARAM(a) a,
#else
#define DVBPSI_HANDLE_PARAM(a)
#endif
#define MAX_SDT_DESC 64
#define MAX_SDT_DESC 64
typedef
struct
typedef
struct
...
@@ -33,4 +39,28 @@ typedef struct
...
@@ -33,4 +39,28 @@ typedef struct
}
desc
[
MAX_SDT_DESC
];
}
desc
[
MAX_SDT_DESC
];
}
sdt_psi_t
;
}
sdt_psi_t
;
block_t
*
WritePSISection
(
dvbpsi_psi_section_t
*
p_section
);
void
BuildPAT
(
DVBPSI_HANDLE_PARAM
(
dvbpsi_t
*
p_dvbpsi
)
void
*
p_opaque
,
PEStoTSCallback
pf_callback
,
int
i_tsid
,
int
i_pat_version_number
,
ts_stream_t
*
p_pat
,
unsigned
i_programs
,
ts_stream_t
*
p_pmt
,
const
int
*
pi_programs_number
);
typedef
struct
{
const
pes_stream_t
*
pes
;
const
ts_stream_t
*
ts
;
const
es_format_t
*
fmt
;
int
i_mapped_prog
;
}
pes_mapped_stream_t
;
void
BuildPMT
(
DVBPSI_HANDLE_PARAM
(
dvbpsi_t
*
p_dvbpsi
)
vlc_object_t
*
p_object
,
void
*
p_opaque
,
PEStoTSCallback
pf_callback
,
int
i_tsid
,
int
i_pmt_version_number
,
int
i_pcr_pid
,
sdt_psi_t
*
p_sdt
,
unsigned
i_programs
,
ts_stream_t
*
p_pmt
,
const
int
*
pi_programs_number
,
unsigned
i_mapped_streams
,
const
pes_mapped_stream_t
*
p_mapped_streams
);
#endif
#endif
modules/mux/mpeg/ts.c
View file @
2158cf90
This diff is collapsed.
Click to expand it.
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