Mercurial > mplayer.hg
annotate libmpdemux/parse_es.h @ 35173:95ad1e516f03
mp_property_deinterlace: Signalize control() failure
Always having to do a GET after a SET to check if the state was
really changed, seems not very friendly from the perspective of
the client application that changes the property.
Return M_PROPERTY_UNAVAILABLE to signalize that the control() was
not positively consumed by the filter/vo chain.
Based on a patch by Vicente Sendra >visenri yahoo.es<
author | al |
---|---|
date | Thu, 25 Oct 2012 18:26:45 +0000 |
parents | b9c9e72a37b2 |
children |
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 | 19 #ifndef MPLAYER_PARSE_ES_H |
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 |
31850
b9c9e72a37b2
Move mp_a52_framesize from demux_ts.c to parse_es.c.
diego
parents:
29238
diff
changeset
|
22 #include <stdint.h> |
b9c9e72a37b2
Move mp_a52_framesize from demux_ts.c to parse_es.c.
diego
parents:
29238
diff
changeset
|
23 |
26143
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
24 #include "demuxer.h" |
268ecf0e1ba4
Add missing header #includes to fix 'make checkheaders'.
diego
parents:
26029
diff
changeset
|
25 |
1376
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
26 #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
|
27 #define VIDEOBUFFER_SIZE 0x100000 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
28 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
29 extern unsigned char* videobuffer; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
30 extern int videobuf_len; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
31 extern unsigned char videobuf_code[4]; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
32 extern int videobuf_code_len; |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
33 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
34 // 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
|
35 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
|
36 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
37 // return: packet length |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
38 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
|
39 |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
40 // return: next packet code |
d1fb303707d3
parse_es moved out from mplayer.c (it was included as .c file)
arpi
parents:
diff
changeset
|
41 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
|
42 |
31850
b9c9e72a37b2
Move mp_a52_framesize from demux_ts.c to parse_es.c.
diego
parents:
29238
diff
changeset
|
43 int mp_a52_framesize(uint8_t *buf, int *srate); |
b9c9e72a37b2
Move mp_a52_framesize from demux_ts.c to parse_es.c.
diego
parents:
29238
diff
changeset
|
44 |
26029 | 45 #endif /* MPLAYER_PARSE_ES_H */ |