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