Mercurial > mplayer.hg
annotate gui/interface.h @ 34150:05c4e9ce128f
Support some H.264 444P samples.
author | cehoyos |
---|---|
date | Sun, 23 Oct 2011 10:43:08 +0000 |
parents | 6a0bda5e63ac |
children | f05c75392897 |
rev | line source |
---|---|
26458 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
26029 | 19 #ifndef MPLAYER_GUI_INTERFACE_H |
20 #define MPLAYER_GUI_INTERFACE_H | |
23077 | 21 |
26382
b2f4abcf20ed
Make include paths consistent; do not use ../ in them.
diego
parents:
26029
diff
changeset
|
22 #include "config.h" |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
23 #include "libaf/af.h" |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
24 #include "libmpdemux/stheader.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
25 #include "m_config.h" |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
26 #include "mp_core.h" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
27 #include "playtree.h" |
29149 | 28 #include "stream/stream.h" |
23077 | 29 |
33021 | 30 // These are in support of the non-GUI files that interact with |
31 // the GUI and that only need to include interface.h for this. | |
32 // ------------------------------------------------------------ | |
32984 | 33 #include "cfg.h" |
23077 | 34 |
33021 | 35 extern int use_gui; // this is defined in mplayer.c |
36 // ------------------------------------------------------------ | |
37 | |
33466 | 38 #define GMPlayer "gmplayer" |
39 | |
33980 | 40 /// gui() instructions |
33767 | 41 enum { |
42 GUI_END_FILE, | |
43 GUI_HANDLE_EVENTS, | |
44 GUI_HANDLE_X_EVENT, | |
45 GUI_PREPARE, | |
46 GUI_REDRAW, | |
47 GUI_RUN_COMMAND, | |
48 GUI_SETUP_VIDEO_WINDOW, | |
49 GUI_SET_AFILTER, | |
50 GUI_SET_AUDIO, | |
51 GUI_SET_CONTEXT, | |
52 GUI_SET_MIXER, | |
53 GUI_SET_STATE, | |
54 GUI_SET_STREAM, | |
55 GUI_SET_VIDEO | |
56 }; | |
23077 | 57 |
33980 | 58 //@{ |
59 /// Playing state | |
33614 | 60 #define GUI_STOP 0 |
61 #define GUI_PLAY 1 | |
62 #define GUI_PAUSE 2 | |
33980 | 63 //@} |
23077 | 64 |
33980 | 65 //@{ |
66 /// NewPlay reason | |
33890 | 67 #define GUI_FILE_SAME 1 |
68 #define GUI_FILE_NEW 2 | |
33980 | 69 //@} |
33890 | 70 |
33980 | 71 /// mplayer() instructions |
33767 | 72 enum { |
33768 | 73 MPLAYER_EXIT_GUI, |
33767 | 74 MPLAYER_SET_AUTO_QUALITY, |
75 MPLAYER_SET_BRIGHTNESS, | |
76 MPLAYER_SET_CONTRAST, | |
77 MPLAYER_SET_EQUALIZER, | |
78 MPLAYER_SET_EXTRA_STEREO, | |
79 MPLAYER_SET_FONT_AUTOSCALE, | |
80 MPLAYER_SET_FONT_BLUR, | |
81 MPLAYER_SET_FONT_ENCODING, | |
82 MPLAYER_SET_FONT_FACTOR, | |
83 MPLAYER_SET_FONT_OSDSCALE, | |
84 MPLAYER_SET_FONT_OUTLINE, | |
85 MPLAYER_SET_FONT_TEXTSCALE, | |
86 MPLAYER_SET_HUE, | |
87 MPLAYER_SET_PANSCAN, | |
88 MPLAYER_SET_SATURATION, | |
89 MPLAYER_SET_SUB_ENCODING | |
90 }; | |
23077 | 91 |
32984 | 92 typedef struct { |
33774
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
93 MPContext *mpcontext; |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
94 sh_video_t *sh_video; |
474ffcdcc6e7
Change guiInterface_t void pointer member declarations.
ib
parents:
33773
diff
changeset
|
95 af_stream_t *afilter; |
32984 | 96 |
33944 | 97 int VideoWindow; |
33901 | 98 int VideoWidth; |
99 int VideoHeight; | |
32984 | 100 |
34076 | 101 int StreamType; |
33900 | 102 int AudioChannels; |
103 | |
33902 | 104 #ifdef CONFIG_DVDREAD |
105 int AudioStreams; | |
106 stream_language_t AudioStream[32]; | |
107 | |
108 int Subtitles; | |
109 stream_language_t Subtitle[32]; | |
110 #endif | |
111 | |
33900 | 112 char *Filename; // public, read access by MPlayer |
113 char *AudioFilename; | |
114 char *SubtitleFilename; | |
32984 | 115 |
33876
4789b8eed97e
Get rid of a bunch of needless or redundant guiInfo members.
ib
parents:
33791
diff
changeset
|
116 #if defined(CONFIG_VCD) || defined(CONFIG_DVDREAD) |
4789b8eed97e
Get rid of a bunch of needless or redundant guiInfo members.
ib
parents:
33791
diff
changeset
|
117 int Tracks; |
32984 | 118 #endif |
119 | |
33900 | 120 int Track; // public, read access by MPlayer |
32984 | 121 |
33900 | 122 #ifdef CONFIG_DVDREAD |
123 int Chapters; | |
124 int Chapter; // public, write access by MPlayer | |
125 int Angles; | |
126 int Angle; | |
127 #endif | |
128 | |
129 int Playing; // public, read access by MPlayer | |
130 | |
131 int RunningTime; // public, write access by MPlayer | |
132 int ElapsedTime; // public, write access by MPlayer | |
133 float Position; // public, write access by MPlayer | |
32984 | 134 |
135 float Volume; | |
136 float Balance; | |
137 | |
33900 | 138 int NewPlay; // public, read access by MPlayer |
32984 | 139 } guiInterface_t; |
140 | |
33555 | 141 extern guiInterface_t guiInfo; |
32984 | 142 |
33980 | 143 /// @name MPlayer -> GUI |
144 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
145 int gui(int what, void *data); |
32984 | 146 void guiDone(void); |
147 void guiInit(void); | |
33764 | 148 int guiPlaylistAdd(play_tree_t *my_playtree, m_config_t *config); |
33752 | 149 int guiPlaylistInitialize(play_tree_t *my_playtree, m_config_t *config, int enqueue); |
33980 | 150 //@} |
23077 | 151 |
33980 | 152 /// @name GUI -> MPlayer |
153 //@{ | |
33791
8b0c78a85a8c
Cosmetic: Change parameter names of gui() and mplayer().
ib
parents:
33790
diff
changeset
|
154 void mplayer(int what, float value, void *data); |
33763 | 155 void mplayerLoadFont(void); |
33790
ab6d06f5b98b
Add const to some string pointer arguments that will not be modified.
ib
parents:
33776
diff
changeset
|
156 void mplayerLoadSubtitle(const char *name); |
33764 | 157 void gmp_msg(int mod, int lev, const char *format, ...); |
33980 | 158 //@} |
33745 | 159 |
26029 | 160 #endif /* MPLAYER_GUI_INTERFACE_H */ |