]> git.sesse.net Git - vlc/blob - modules/mux/mpeg/tables.h
require libdvbpsi >= 1.0.0
[vlc] / modules / mux / mpeg / tables.h
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 block_t * WritePSISection( dvbpsi_psi_section_t* p_section );
37
38 void BuildPAT( dvbpsi_t *p_dvbpsi,
39                void *p_opaque, PEStoTSCallback pf_callback,
40                int i_tsid, int i_pat_version_number,
41                ts_stream_t *p_pat,
42                unsigned i_programs, ts_stream_t *p_pmt, const int *pi_programs_number );
43
44 typedef struct
45 {
46     const pes_stream_t *pes;
47     const ts_stream_t  *ts;
48     const es_format_t  *fmt;
49     int i_mapped_prog;
50 } pes_mapped_stream_t;
51
52 void BuildPMT( dvbpsi_t *p_dvbpsi, vlc_object_t *p_object,
53                void *p_opaque, PEStoTSCallback pf_callback,
54                int i_tsid, int i_pmt_version_number,
55                int i_pcr_pid,
56                sdt_psi_t *p_sdt,
57                unsigned i_programs, ts_stream_t *p_pmt, const int *pi_programs_number,
58                unsigned i_mapped_streams, const pes_mapped_stream_t *p_mapped_streams );
59
60 #endif