Skip to content

Commit b80338e

Browse files
committed
mux: ts: Split ts tables
Also removes duplicate members
1 parent d2224eb commit b80338e

File tree

4 files changed

+328
-254
lines changed

4 files changed

+328
-254
lines changed

modules/mux/Modules.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ mux_LTLIBRARIES += libmux_ps_plugin.la
2424
libmux_ts_plugin_la_SOURCES = \
2525
mpeg/pes.c mpeg/pes.h \
2626
mpeg/csa.c mpeg/csa.h \
27+
mpeg/streams.h \
28+
mpeg/tables.h \
2729
mpeg/tsutil.c mpeg/tsutil.h \
2830
mpeg/ts.c mpeg/bits.h mpeg/dvbpsi_compat.h
2931
libmux_ts_plugin_la_CFLAGS = $(AM_CFLAGS) $(DVBPSI_CFLAGS)

modules/mux/mpeg/streams.h

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*****************************************************************************
2+
* streams.h
3+
*****************************************************************************
4+
* Copyright (C) 2001-2005, 2015 VLC authors and VideoLAN
5+
*
6+
* This program is free software; you can redistribute it and/or modify it
7+
* under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation; either version 2.1 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19+
*****************************************************************************/
20+
#ifndef _STREAMS_H
21+
#define _STREAMS_H 1
22+
23+
typedef struct
24+
{
25+
int i_pid;
26+
27+
int i_continuity_counter;
28+
bool b_discontinuity;
29+
30+
} ts_stream_t;
31+
32+
typedef struct
33+
{
34+
vlc_fourcc_t i_codec;
35+
36+
int i_stream_type;
37+
int i_stream_id;
38+
39+
/* to be used for carriege of DIV3 */
40+
vlc_fourcc_t i_bih_codec;
41+
int i_bih_width, i_bih_height;
42+
43+
/* Specific to mpeg4 in mpeg2ts */
44+
int i_es_id;
45+
46+
int i_extra;
47+
uint8_t *p_extra;
48+
49+
/* language is iso639-2T */
50+
int i_langs;
51+
uint8_t *lang;
52+
} pes_stream_t;
53+
54+
#endif

modules/mux/mpeg/tables.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*****************************************************************************
2+
* tables.h
3+
*****************************************************************************
4+
* Copyright (C) 2001-2005, 2015 VLC authors and VideoLAN
5+
*
6+
* This program is free software; you can redistribute it and/or modify it
7+
* under the terms of the GNU Lesser General Public License as published by
8+
* the Free Software Foundation; either version 2.1 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19+
*****************************************************************************/
20+
#ifndef _TABLES_H
21+
#define _TABLES_H 1
22+
23+
#define MAX_SDT_DESC 64
24+
25+
typedef struct
26+
{
27+
ts_stream_t ts;
28+
int i_netid;
29+
struct
30+
{
31+
char *psz_provider;
32+
char *psz_service_name; /* name of program */
33+
} desc[MAX_SDT_DESC];
34+
} sdt_psi_t;
35+
36+
#endif

0 commit comments

Comments
 (0)