Mercurial > mplayer.hg
annotate gui/interface.h @ 32987:046b8e18127e
Merge the configure CrystalHD dummy detection with
the proper detection from the patch by
Philip Langdale - mplayer.philipl at overt.org.
The option remains disabled by default.
author | iive |
---|---|
date | Fri, 11 Mar 2011 16:06:43 +0000 |
parents | eb831a979df7 |
children | 63beda39479c |
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" |
30533
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
23 #include "m_config.h" |
e3e329bc727a
Avoid forward declarations for import_initial_playtree_into_gui() and
diego
parents:
29263
diff
changeset
|
24 #include "playtree.h" |
29149 | 25 #include "stream/stream.h" |
23077 | 26 |
32984 | 27 // these are in support of the non-GUI files that interact with |
28 // the GUI and that only need to include interface.h for this | |
29 #include "cfg.h" | |
30 #include "mplayer/play.h" | |
23077 | 31 |
32984 | 32 #define guiXEvent 0 |
33 #define guiCEvent 1 | |
34 #define guiIEvent 2 | |
35 #define guiSetDVD 3 | |
36 #define guiSetFileName 4 | |
37 #define guiSetState 5 | |
38 #define guiSetAudioOnly 6 | |
39 #define guiReDrawSubWindow 7 | |
40 #define guiSetShVideo 8 | |
41 #define guiSetStream 9 | |
42 #define guiReDraw 10 | |
43 #define guiSetVolume 11 | |
44 #define guiSetDefaults 12 | |
45 #define guiSetValues 13 | |
46 #define guiSetFileFormat 14 | |
47 #define guiSetDemuxer 15 | |
48 #define guiSetParameters 16 | |
49 #define guiSetAfilter 17 | |
50 #define guiSetContext 18 | |
23077 | 51 |
52 #define guiSetStop 0 | |
53 #define guiSetPlay 1 | |
54 #define guiSetPause 2 | |
55 | |
32984 | 56 #define guiDVD 1 |
57 #define guiVCD 2 | |
58 #define guiFilenames 4 | |
59 #define guiALL 0xffffffff | |
23077 | 60 |
32984 | 61 #define gtkSetContrast 0 |
62 #define gtkSetBrightness 1 | |
63 #define gtkSetHue 2 | |
64 #define gtkSetSaturation 3 | |
65 #define gtkSetEqualizer 4 | |
66 #define gtkAddPlItem 5 | |
67 #define gtkGetNextPlItem 6 | |
68 #define gtkGetPrevPlItem 7 | |
69 #define gtkGetCurrPlItem 8 | |
70 #define gtkDelPl 9 | |
23077 | 71 #define gtkSetExtraStereo 10 |
72 #define gtkSetPanscan 11 | |
73 #define gtkSetFontFactor 12 | |
74 #define gtkSetAutoq 13 | |
75 #define gtkClearStruct 14 | |
76 #define gtkAddURLItem 15 | |
77 #define gtkSetFontOutLine 16 | |
78 #define gtkSetFontBlur 17 | |
79 #define gtkSetFontTextScale 18 | |
80 #define gtkSetFontOSDScale 19 | |
81 #define gtkSetFontEncoding 20 | |
82 #define gtkSetFontAutoScale 21 | |
83 #define gtkSetSubEncoding 22 | |
84 #define gtkDelCurrPlItem 23 | |
85 #define gtkInsertPlItem 24 | |
86 #define gtkSetCurrPlItem 25 | |
87 | |
32984 | 88 #define fsPersistant_MaxPos 5 |
89 | |
90 #define guiSetFilename(s, n) \ | |
91 { \ | |
92 gfree((void **)&s); \ | |
93 s = gstrdup(n); \ | |
94 } | |
95 | |
96 #define guiSetDF(s, d, n) \ | |
97 { \ | |
98 gfree((void **)&s); \ | |
99 s = malloc(strlen(d) + strlen(n) + 5); \ | |
100 sprintf(s, "%s/%s", d, n); \ | |
101 } | |
102 | |
103 typedef struct { | |
104 int x; | |
105 int y; | |
106 int width; | |
107 int height; | |
108 } guiResizeStruct; | |
109 | |
110 typedef struct { | |
111 int signal; | |
112 char module[512]; | |
113 } guiUnknownErrorStruct; | |
114 | |
115 typedef struct { | |
116 int seek; | |
117 int format; | |
118 int width; | |
119 int height; | |
120 char codecdll[128]; | |
121 } guiVideoStruct; | |
122 | |
123 #ifdef CONFIG_DVDREAD | |
124 typedef struct { | |
125 int titles; | |
126 int chapters; | |
127 int angles; | |
128 int current_chapter; | |
129 int current_title; | |
130 int current_angle; | |
131 int nr_of_audio_channels; | |
132 stream_language_t audio_streams[32]; | |
133 int nr_of_subtitles; | |
134 stream_language_t subtitles[32]; | |
135 } guiDVDStruct; | |
136 #endif | |
137 | |
138 typedef struct { | |
139 int message; | |
140 guiResizeStruct resize; | |
141 guiVideoStruct videodata; | |
142 guiUnknownErrorStruct error; | |
143 | |
144 struct MPContext *mpcontext; | |
145 void *sh_video; | |
146 void *afilter; | |
147 void *demuxer; | |
148 void *event_struct; | |
149 | |
150 int DiskChanged; | |
151 int NewPlay; | |
152 | |
153 #ifdef CONFIG_DVDREAD | |
154 guiDVDStruct DVD; | |
155 int Title; | |
156 int Angle; | |
157 int Chapter; | |
158 #endif | |
159 | |
160 #ifdef CONFIG_VCD | |
161 int VCDTracks; | |
162 #endif | |
163 | |
164 int Playing; | |
165 float Position; | |
166 | |
167 int MovieWidth; | |
168 int MovieHeight; | |
169 int NoWindow; | |
170 | |
171 float Volume; | |
172 float Balance; | |
173 | |
174 int Track; | |
175 int AudioType; | |
176 int StreamType; | |
177 int AudioOnly; | |
178 int TimeSec; | |
179 int LengthInSec; | |
180 int FrameDrop; | |
181 int FileFormat; | |
182 float FPS; | |
183 | |
184 char *Filename; | |
185 int FilenameChanged; | |
186 | |
187 char *Subtitlename; | |
188 int SubtitleChanged; | |
189 | |
190 char *Othername; | |
191 int OtherChanged; | |
192 | |
193 char *AudioFile; | |
194 int AudioFileChanged; | |
195 | |
196 int SkinChange; | |
197 } guiInterface_t; | |
198 | |
199 typedef struct plItem { | |
200 struct plItem *prev, *next; | |
201 int played; | |
202 char *path; | |
203 char *name; | |
204 } plItem; | |
205 | |
206 typedef struct urlItem { | |
207 struct urlItem *next; | |
208 char *url; | |
209 } URLItem; | |
210 | |
211 extern guiInterface_t guiIntfStruct; | |
212 | |
213 extern int use_gui; // this is defined in mplayer.c | |
214 extern int guiWinID; | |
215 | |
216 extern char *skinName; | |
217 extern char *skinDirInHome; | |
218 extern char *skinMPlayerDir; | |
219 | |
220 extern plItem *plList; | |
221 extern plItem *plCurrent; | |
222 extern plItem *plLastPlayed; | |
223 | |
224 extern URLItem *URLList; | |
225 | |
226 extern char *fsHistory[fsPersistant_MaxPos]; | |
227 | |
23077 | 228 extern float gtkEquChannels[6][10]; |
229 | |
32984 | 230 void gaddlist(char ***list, const char *entry); |
231 void gfree(void **p); | |
232 char *gstrchr(char *str, int c); | |
233 int gstrcmp(const char *a, const char *b); | |
234 char *gstrdup(const char *str); | |
235 void *gtkSet(int cmd, float fparam, void *vparam); | |
236 void guiDone(void); | |
237 void guiEventHandling(void); | |
238 int guiGetEvent(int type, void *arg); | |
239 void guiInit(void); | |
240 void guiLoadFont(void); | |
241 void guiLoadSubtitle(char *name); | |
242 int import_initial_playtree_into_gui(play_tree_t *my_playtree, m_config_t *config, int enqueue); | |
243 int import_playtree_playlist_into_gui(play_tree_t *my_playtree, m_config_t *config); | |
23077 | 244 |
26029 | 245 #endif /* MPLAYER_GUI_INTERFACE_H */ |