6 #include "mplayer/play.h"
7 #include "../mplayer.h"
8 #include "../libvo/font_load.h"
12 #include "../libmpdemux/stream.h"
27 } guiUnknownErrorStruct
;
47 int nr_of_audio_channels
;
48 stream_language_t audio_streams
[32];
50 stream_language_t subtitles
[32];
57 guiResizeStruct resize
;
58 guiVideoStruct videodata
;
59 guiUnknownErrorStruct error
;
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
138 #define guiSetPause 2
142 #define guiFilenames 4
143 #define guiALL 0xffffffff
145 extern char *get_path(char *filename
);
147 extern void guiInit( void );
148 extern void guiDone( void );
149 extern int guiGetEvent( int type
,char * arg
);
150 extern void guiEventHandling( void );
151 extern void guiLoadFont( void );
152 extern void guiLoadSubtitle( char * name
);
154 typedef struct _plItem
156 struct _plItem
* prev
,* next
;
162 typedef struct _urlItem
164 struct _urlItem
*next
;
168 extern plItem
* plList
;
169 extern plItem
* plCurrent
;
170 extern plItem
* plLastPlayed
;
172 extern URLItem
* URLList
;
174 #define fsPersistant_MaxPath 512
175 #define fsPersistant_MaxPos 5
176 extern char * fsHistory
[fsPersistant_MaxPos
];
178 #define gtkSetContrast 0
179 #define gtkSetBrightness 1
181 #define gtkSetSaturation 3
182 #define gtkSetEqualizer 4
183 #define gtkAddPlItem 5
184 #define gtkGetNextPlItem 6
185 #define gtkGetPrevPlItem 7
186 #define gtkGetCurrPlItem 8
188 #define gtkSetExtraStereo 10
189 #define gtkSetPanscan 11
190 #define gtkSetFontFactor 12
191 #define gtkSetAutoq 13
192 #define gtkClearStruct 14
193 #define gtkAddURLItem 15
194 #define gtkSetFontOutLine 16
195 #define gtkSetFontBlur 17
196 #define gtkSetFontTextScale 18
197 #define gtkSetFontOSDScale 19
198 #define gtkSetFontEncoding 20
199 #define gtkSetFontAutoScale 21
200 #define gtkSetSubEncoding 22
201 #define gtkDelCurrPlItem 23
202 #define gtkInsertPlItem 24
203 #define gtkSetCurrPlItem 25
205 extern float gtkEquChannels
[6][10];
207 extern void * gtkSet( int cmd
,float param
, void * vparam
);
209 extern char * gconvert_uri_to_filename( char * str
);
210 extern char * gstrdup( char * str
);
211 extern int gstrcmp( char * a
,char * b
);
212 extern void gfree( void ** p
);
213 extern void gaddlist( char *** list
,char * entry
);
214 extern char * gstrchr( char * str
,int c
);
216 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
218 #define guiSetDF( s,d,n ) \
220 gfree( (void **)&s ); \
221 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
222 sprintf( s,"%s/%s",d,n ); \