annotate libmpdemux/parse_es.h @ 30378:8339bca8e4b4

Move the resync-related code into more consistent places instead of having it scattered all over the place with half of it forgotten in some places.
author reimar
date Sun, 24 Jan 2010 15:16:39 +0000
parents d643e4643313
children b9c9e72a37b2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29238
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
1 /*
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
2 * This file is part of MPlayer.
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
3 *
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
5 * it under the terms of the GNU General Public License as published by
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
7 * (at your option) any later version.
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
8 *
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
12 * GNU General Public License for more details.
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
13 *
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
14 * You should have received a copy of the GNU General Public License along
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
17 */
d643e4643313 Add standard license header to all files in libmpdemux.
diego
parents: 26143
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
19 #ifndef MPLAYER_PARSE_ES_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
20 #define MPLAYER_PARSE_ES_H
1376
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
21
26143
268ecf0e1ba4 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
22 #include "demuxer.h"
268ecf0e1ba4 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
23
1376
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
24 #define MAX_VIDEO_PACKET_SIZE (224*1024+4)
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
25 #define VIDEOBUFFER_SIZE 0x100000
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
26
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
27 extern unsigned char* videobuffer;
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
28 extern int videobuf_len;
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
29 extern unsigned char videobuf_code[4];
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
30 extern int videobuf_code_len;
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
31
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
32 // sync video stream, and returns next packet code
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
33 int sync_video_packet(demux_stream_t *ds);
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
34
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
35 // return: packet length
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
36 int read_video_packet(demux_stream_t *ds);
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
37
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
38 // return: next packet code
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
39 int skip_video_packet(demux_stream_t *ds);
d1fb303707d3 parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff changeset
40
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25553
diff changeset
41 #endif /* MPLAYER_PARSE_ES_H */