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
;
109 int AudioFileChanged
;
114 extern guiInterface_t guiIntfStruct
;
120 #define guiSetFileName 4
121 #define guiSetState 5
122 #define guiSetAudioOnly 6
123 #define guiReDrawSubWindow 7
124 #define guiSetShVideo 8
125 #define guiSetStream 9
127 #define guiSetVolume 11
128 #define guiSetDefaults 12
129 #define guiSetValues 13
130 #define guiSetFileFormat 14
131 #define guiSetDemuxer 15
132 #define guiSetParameters 16
136 #define guiSetPause 2
140 #define guiFilenames 4
141 #define guiALL 0xffffffff
143 extern char *get_path(char *filename
);
145 extern void guiInit( void );
146 extern void guiDone( void );
147 extern int guiGetEvent( int type
,char * arg
);
148 extern void guiEventHandling( void );
149 extern void guiLoadFont( void );
150 extern void guiLoadSubtitle( char * name
);
152 typedef struct _plItem
154 struct _plItem
* prev
,* next
;
160 typedef struct _urlItem
162 struct _urlItem
*next
;
166 extern plItem
* plList
;
167 extern plItem
* plCurrent
;
168 extern plItem
* plLastPlayed
;
170 extern URLItem
* URLList
;
172 #define fsPersistant_MaxPath 512
173 #define fsPersistant_MaxPos 5
174 extern char * fsHistory
[fsPersistant_MaxPos
];
176 #define gtkSetContrast 0
177 #define gtkSetBrightness 1
179 #define gtkSetSaturation 3
180 #define gtkSetEqualizer 4
181 #define gtkAddPlItem 5
182 #define gtkGetNextPlItem 6
183 #define gtkGetPrevPlItem 7
184 #define gtkGetCurrPlItem 8
186 #define gtkSetExtraStereo 10
187 #define gtkSetPanscan 11
188 #define gtkSetFontFactor 12
189 #define gtkSetAutoq 13
190 #define gtkClearStruct 14
191 #define gtkAddURLItem 15
192 #define gtkSetFontOutLine 16
193 #define gtkSetFontBlur 17
194 #define gtkSetFontTextScale 18
195 #define gtkSetFontOSDScale 19
196 #define gtkSetFontEncoding 20
197 #define gtkSetFontAutoScale 21
198 #define gtkSetSubEncoding 22
199 #define gtkDelCurrPlItem 23
200 #define gtkInsertPlItem 24
201 #define gtkSetCurrPlItem 25
203 extern float gtkEquChannels
[6][10];
205 extern void * gtkSet( int cmd
,float param
, void * vparam
);
207 extern char * gconvert_uri_to_filename( char * str
);
208 extern char * gstrdup( char * str
);
209 extern int gstrcmp( char * a
,char * b
);
210 extern void gfree( void ** p
);
211 extern void gaddlist( char *** list
,char * entry
);
212 extern char * gstrchr( char * str
,int c
);
214 #define guiSetFilename( s,n ) { gfree( (void **)&s ); s=gstrdup( n ); }
216 #define guiSetDF( s,d,n ) \
218 gfree( (void **)&s ); \
219 s=malloc( strlen( d ) + strlen( n ) + 5 ); \
220 sprintf( s,"%s/%s",d,n ); \