comparison libmpdemux/mpeg_packetizer.h @ 19141:6e6ca469073b

moved mpeg_packetizer helpers to libmpdemux
author ben
date Wed, 19 Jul 2006 22:13:50 +0000
parents
children 3b839a8d297a
comparison
equal deleted inserted replaced
19140:c6c3ad8a5475 19141:6e6ca469073b
1 /*
2 * Copyright (C) 2006 Benjamin Zores
3 * Set of helper routines for building MPEG 1/2 PS/PES packets.
4 *
5 * Based on various code bororwed from vo_mpegpes/vo_dxr2 :
6 * (C) 2000 Ralph Metzler <ralph@convergence.de>
7 * Marcus Metzler <marcus@convergence.de>
8 * Gerard Lantau
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
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 General Public License for more details.
19 *
20 * You should have received a copy of the GNU 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 */
24
25 #ifndef _MPEG_PACKETIZER_H_
26 #define _MPEG_PACKETIZER_H_
27
28 /* Send MPEG 1 PES packet */
29 int send_mpeg1_pes_packet (unsigned char *data, int len, int id, uint64_t pts,
30 int my_write (unsigned char *data, int len));
31
32 /* Send MPEG 1 PS packet */
33 int send_mpeg1_ps_packet (unsigned char *data, int len, int id, uint64_t pts,
34 int my_write (unsigned char *data, int len));
35 /* Send MPEG 2 PES packet */
36 int send_mpeg2_pes_packet (unsigned char *data, int len, int id, uint64_t pts,
37 int my_write (unsigned char *data, int len));
38
39 /* Send MPEG 2 PS packet */
40 int send_mpeg2_ps_packet (unsigned char *data, int len, int id, uint64_t pts,
41 int my_write (unsigned char *data, int len));
42
43 /* Send MPEG LPCM packet */
44 int send_mpeg_lpcm_packet (unsigned char *data, int len,
45 int id, uint64_t pts, int freq_id,
46 int my_write (unsigned char *data, int len));
47
48 #endif /* _MPEG_PACKETIZER_H_ */