Mercurial > mplayer.hg
annotate libmpdemux/mpeg_packetizer.h @ 27034:c38bbb487b49
update comments, whitespace cosmetics
author | diego |
---|---|
date | Sun, 15 Jun 2008 12:37:30 +0000 |
parents | 0c1db5fd3f79 |
children | 0f1b5b68af32 |
rev | line source |
---|---|
19141 | 1 /* |
26742
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
2 * helper routines for building MPEG 1/2 PS/PES packets |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
3 * |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
4 * Copyright (C) 2006 Benjamin Zores |
19141 | 5 * |
26742
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
6 * based on code borrowed from vo_mpegpes/vo_dxr2: |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
7 * (C) 2000 Ralph Metzler <ralph@convergence.de> |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
8 * Marcus Metzler <marcus@convergence.de> |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
9 * Gerard Lantau |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
10 * |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
11 * This file is part of MPlayer. |
19141 | 12 * |
26742
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
13 * MPlayer is free software; you can redistribute it and/or modify |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
14 * it under the terms of the GNU General Public License as published by |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
15 * the Free Software Foundation; either version 2 of the License, or |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
16 * (at your option) any later version. |
19141 | 17 * |
26742
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
18 * MPlayer is distributed in the hope that it will be useful, |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
21 * GNU General Public License for more details. |
19141 | 22 * |
26742
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
23 * You should have received a copy of the GNU General Public License along |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
24 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
0c1db5fd3f79
Use standard license headers with standard formatting.
diego
parents:
26143
diff
changeset
|
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19141 | 26 */ |
27 | |
26029 | 28 #ifndef MPLAYER_MPEG_PACKETIZER_H |
29 #define MPLAYER_MPEG_PACKETIZER_H | |
19141 | 30 |
26143
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
31 #include <stdint.h> |
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
32 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
33 /* Send MPEG <type> PES packet */ |
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
34 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
|
35 int type, int my_write (const unsigned char *data, int len)); |
19141 | 36 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
37 /* Send MPEG <type> PS packet */ |
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
38 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
|
39 int type,int my_write (const unsigned char *data, int len)); |
19141 | 40 |
19149
73d8ea32ebb8
cosmetics: comments and reindentation asked by gxben
nicodvb
parents:
19148
diff
changeset
|
41 /* Send MPEG 2 LPCM packet */ |
19141 | 42 int send_mpeg_lpcm_packet (unsigned char *data, int len, |
43 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
|
44 int my_write (const unsigned char *data, int len)); |
19141 | 45 |
26029 | 46 #endif /* MPLAYER_MPEG_PACKETIZER_H */ |