1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2001, 2002 VLC authors and VideoLAN
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * Eric Petit <titer@videolan.org>
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation; either version 2.1 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software Foundation,
22 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #define PES_PROGRAM_STREAM_MAP 0xbc
26 #define PES_PRIVATE_STREAM_1 0xbd
27 #define PES_PADDING 0xbe
28 #define PES_PRIVATE_STREAM_2 0xbf
31 #define PES_PROGRAM_STREAM_DIRECTORY 0xff
32 #define PES_DSMCC_STREAM 0xf2
33 #define PES_ITU_T_H222_1_TYPE_E_STREAM 0xf8
34 #define PES_EXTENDED_STREAM_ID 0xfd
36 #define PES_PAYLOAD_SIZE_MAX 65500
38 void EStoPES ( block_t **pp_pes,
39 const es_format_t *p_fmt, int i_stream_id,
40 int b_mpeg2, int b_data_alignment, int i_header_size,
41 int i_max_pes_size, mtime_t ts_offset );