Mercurial > mplayer.hg
annotate libmpdemux/mpeg_packetizer.h @ 26520:e9f5296505f0
Remove unnecessary -lm linker flag from test program compilation command.
author | diego |
---|---|
date | Sun, 27 Apr 2008 10:34:24 +0000 |
parents | 268ecf0e1ba4 |
children | 0c1db5fd3f79 |
rev | line source |
---|---|
19141 | 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 | |
26029 | 25 #ifndef MPLAYER_MPEG_PACKETIZER_H |
26 #define MPLAYER_MPEG_PACKETIZER_H | |
19141 | 27 |
26143
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
28 #include <stdint.h> |
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
29 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
30 /* Send MPEG <type> PES packet */ |
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
31 int send_mpeg_pes_packet (unsigned char *data, int len, int id, uint64_t pts, |
25673
d576b679747b
Write functions used by send_mpeg_*_packet may _not_ modify data
reimar
parents:
23689
diff
changeset
|
32 int type, int my_write (const unsigned char *data, int len)); |
19141 | 33 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
34 /* Send MPEG <type> PS packet */ |
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
35 int send_mpeg_ps_packet (unsigned char *data, int len, int id, uint64_t pts, |
25673
d576b679747b
Write functions used by send_mpeg_*_packet may _not_ modify data
reimar
parents:
23689
diff
changeset
|
36 int type,int my_write (const unsigned char *data, int len)); |
19141 | 37 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
38 /* Send MPEG 2 LPCM packet */ |
19141 | 39 int send_mpeg_lpcm_packet (unsigned char *data, int len, |
40 int id, uint64_t pts, int freq_id, | |
25673
d576b679747b
Write functions used by send_mpeg_*_packet may _not_ modify data
reimar
parents:
23689
diff
changeset
|
41 int my_write (const unsigned char *data, int len)); |
19141 | 42 |
26029 | 43 #endif /* MPLAYER_MPEG_PACKETIZER_H */ |