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