1693
|
1
|
|
2 #ifndef __GUI_PLAY_H
|
|
3 #define __GUI_PLAY_H
|
|
4
|
|
5 #include "./psignal.h"
|
1795
|
6 #include "./mplayer.h"
|
1755
|
7 #include "../wm/ws.h"
|
|
8 #include "../app.h"
|
1693
|
9
|
|
10 typedef struct
|
|
11 {
|
|
12 int x;
|
|
13 int y;
|
|
14 int width;
|
|
15 int height;
|
|
16 } mplResizeStruct;
|
|
17
|
|
18 typedef struct
|
|
19 {
|
|
20 int signal;
|
|
21 char module[512];
|
|
22 } mplUnknowErrorStruct;
|
|
23
|
|
24 typedef struct
|
|
25 {
|
|
26 int seek;
|
|
27 int format;
|
|
28 int width;
|
|
29 int height;
|
|
30 char codecdll[128];
|
|
31 } mplVideoStruct;
|
|
32
|
|
33 typedef struct
|
|
34 {
|
|
35 int message;
|
|
36 mplResizeStruct resize;
|
|
37 mplVideoStruct videodata;
|
|
38 mplUnknowErrorStruct error;
|
|
39
|
|
40 int Playing;
|
|
41 float Volume;
|
|
42 float Position;
|
|
43 float Balance;
|
|
44 int Track;
|
|
45 int AudioType;
|
|
46 int StreamType;
|
|
47 int TimeSec;
|
|
48 int LengthInSec;
|
1743
|
49 char Filename[4096];
|
1693
|
50 } mplCommStruct;
|
|
51
|
|
52 extern mplCommStruct * mplShMem;
|
|
53 extern char * Filename;
|
|
54
|
|
55 extern int mplParent;
|
|
56
|
1765
|
57 extern int moviex;
|
|
58 extern int moviey;
|
|
59 extern int moviewidth;
|
|
60 extern int movieheight;
|
1693
|
61
|
|
62 extern mplCommStruct * mplShMem;
|
|
63
|
|
64 extern void mplMPlayerInit( int argc,char* argv[], char *envp[] );
|
|
65
|
|
66 extern void mplStop();
|
|
67 extern void mplFullScreen( void );
|
|
68 extern void mplPlay( void );
|
|
69 extern void mplPause( void );
|
|
70 extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
|
|
71
|
|
72 extern void mplIncAudioBufDelay( void );
|
|
73 extern void mplDecAudioBufDelay( void );
|
|
74
|
|
75 extern void mplRelSeek( float s );
|
|
76 extern void mplAbsSeek( float s );
|
|
77 extern float mplGetPosition( void );
|
|
78
|
|
79 extern void mplPlayFork( void );
|
|
80 extern void mplSigHandler( int s );
|
|
81 extern void mplSendMessage( int msg );
|
|
82 extern void mplPlayerThread( void );
|
|
83
|
1801
|
84 extern void ChangeSkin( void );
|
|
85
|
|
86 #endif
|