Mercurial > mplayer.hg
annotate libmpdemux/parse_es.h @ 24912:384aa7179c9c
in video_read_frame() set the keyframe flag in demuxer->video when dealing with
VIDEO_MPEG12 and picture_coding_type==I_FRAME; fixes seeking in avi streams
with MPEG1/2 video
author | nicodvb |
---|---|
date | Fri, 02 Nov 2007 23:05:51 +0000 |
parents | 9e059416eea6 |
children | 6ac1ece1f9fe |
rev | line source |
---|---|
1376
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
1 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
2 #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
|
3 #define VIDEOBUFFER_SIZE 0x100000 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
4 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
5 extern unsigned char* videobuffer; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
6 extern int videobuf_len; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
7 extern unsigned char videobuf_code[4]; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
8 extern int videobuf_code_len; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
9 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
10 // 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
|
11 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
|
12 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
13 // return: packet length |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
14 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
|
15 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
16 // return: next packet code |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
17 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
|
18 |