2 #ifndef GUI_INTERFACE_H
3 #define GUI_INTERFACE_H
6 #include "mplayer/play.h"
7 #include "libvo/font_load.h"
11 #include "stream/stream.h"
26 } guiUnknownErrorStruct
;
46 int nr_of_audio_channels
;
47 stream_language_t audio_streams
[32];
49 stream_language_t subtitles
[32];
56 guiResizeStruct resize
;
57 guiVideoStruct videodata
;
58 guiUnknownErrorStruct error
;
60 struct MPContext
* mpcontext
;
110 int AudioFileChanged
;
115 extern guiInterface_t guiIntfStruct
;
121 #define guiSetFileName 4
122 #define guiSetState 5
123 #define guiSetAudioOnly 6
124 #define guiReDrawSubWindow 7
125 #define guiSetShVideo 8
126 #define guiSetStream 9
128 #define guiSetVolume 11
129 #define guiSetDefaults 12
130 #define guiSetValues 13
131 #define guiSetFileFormat 14
132 #define guiSetDemuxer 15
133 #define guiSetParameters 16
134 #define guiSetAfilter 17
135 #define guiSetContext 18
139 #define guiSetPause 2
143 #define guiFilenames 4
144 #define guiALL 0xffffffff
148 extern void guiInit( void );
149 extern void guiDone( void );
150 extern int guiGetEvent( int type
,char * arg
);
151 extern void guiEventHandling( void );
152 extern void guiLoadFont( void );
153 extern void guiLoadSubtitle( char * name
);
154 extern void guiMessageBox(int level
, char * str
);
156 typedef struct _plItem
158 struct _plItem
* prev
,* next
;
164 typedef struct _urlItem
166 struct _urlItem
*next
;
170 extern plItem
* plList
;
171 extern plItem
* plCurrent
;
172 extern plItem
* plLastPlayed
;
174 extern URLItem
* URLList
;
176 #define fsPersistant_MaxPath 512
177 #define fsPersistant_MaxPos 5
178 extern char * fsHistory
[fsPersistant_MaxPos
];
180 #define gtkSetContrast 0
181 #define gtkSetBrightness 1
183 #define gtkSetSaturation 3
184 #define gtkSetEqualizer 4
185 #define gtkAddPlItem 5
186 #define gtkGetNextPlItem 6
187 #define gtkGetPrevPlItem 7
188 #define gtkGetCurrPlItem 8
190 #define gtkSetExtraStereo 10
191 #define gtkSetPanscan 11
192 #define gtkSetFontFactor 12
193 #define gtkSetAutoq 13
194 #define gtkClearStruct 14
195 #define gtkAddURLItem 15
196 #define gtkSetFontOutLine 16
197 #define gtkSetFontBlur 17
198 #define gtkSetFontTextScale 18
199 #define gtkSetFontOSDScale 19
200 #define gtkSetFontEncoding 20
201 #define gtkSetFontAutoScale 21
202 #define gtkSetSubEncoding 22
203 #define gtkDelCurrPlItem 23
204 #define gtkInsertPlItem 24
205 #define gtkSetCurrPlItem 25
207 extern float gtkEquChannels
[6][10];
209 extern void * gtkSet( int cmd
,float param
, void * vparam
);
211 extern char * gstrdup( const char * str
);
212 extern int gstrcmp( const char * a
,const char * b
);
213 extern void gfree( void ** p
);
214 extern void gaddlist( char *** list
,const char * entry
);
215 extern char * gstrchr( char * str
,int c
);
217 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
219 #define guiSetDF( s,d,n ) \
221 gfree( (void **)&s ); \
222 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
223 sprintf( s,"%s/%s",d,n ); \