1693
|
1
|
|
2 #ifndef __GUI_PLAY_H
|
|
3 #define __GUI_PLAY_H
|
|
4
|
3054
|
5 #include "../../config.h"
|
|
6
|
1693
|
7 #include "./psignal.h"
|
1795
|
8 #include "./mplayer.h"
|
1693
|
9
|
3054
|
10 #ifdef USE_DVDREAD
|
|
11 #include "../../libmpdemux/stream.h"
|
|
12 #endif
|
|
13
|
1693
|
14 typedef struct
|
|
15 {
|
|
16 int x;
|
|
17 int y;
|
|
18 int width;
|
|
19 int height;
|
|
20 } mplResizeStruct;
|
|
21
|
|
22 typedef struct
|
|
23 {
|
|
24 int signal;
|
|
25 char module[512];
|
|
26 } mplUnknowErrorStruct;
|
|
27
|
|
28 typedef struct
|
|
29 {
|
|
30 int seek;
|
|
31 int format;
|
|
32 int width;
|
|
33 int height;
|
|
34 char codecdll[128];
|
|
35 } mplVideoStruct;
|
|
36
|
3054
|
37 #ifdef USE_DVDREAD
|
|
38 typedef struct
|
|
39 {
|
|
40 int titles;
|
|
41 int chapters;
|
|
42 int angles;
|
|
43 int current_chapter;
|
|
44 int current_title;
|
3597
|
45 int current_angle;
|
3054
|
46 int nr_of_audio_channels;
|
|
47 audio_stream_t audio_streams[8];
|
|
48 int nr_of_subtitles;
|
|
49 subtitle_t subtitles[32];
|
|
50 } mplDVDStruct;
|
|
51 #endif
|
|
52
|
1693
|
53 typedef struct
|
|
54 {
|
|
55 int message;
|
|
56 mplResizeStruct resize;
|
|
57 mplVideoStruct videodata;
|
|
58 mplUnknowErrorStruct error;
|
3054
|
59 #ifdef USE_DVDREAD
|
|
60 mplDVDStruct DVD;
|
|
61 #endif
|
1693
|
62
|
|
63 int Playing;
|
1847
|
64 float Position;
|
|
65
|
1693
|
66 float Volume;
|
1847
|
67 int VolumeChanged;
|
1693
|
68 float Balance;
|
1847
|
69 int Mute;
|
|
70
|
1693
|
71 int Track;
|
|
72 int AudioType;
|
|
73 int StreamType;
|
|
74 int TimeSec;
|
|
75 int LengthInSec;
|
1823
|
76 int FrameDrop;
|
1813
|
77
|
1743
|
78 char Filename[4096];
|
1813
|
79 int FilenameChanged;
|
1802
|
80
|
3499
|
81 char Subtitlename[4096];
|
|
82 int SubtitleChanged;
|
|
83
|
1802
|
84 int SkinChange;
|
1693
|
85 } mplCommStruct;
|
|
86
|
|
87 extern mplCommStruct * mplShMem;
|
|
88 extern char * Filename;
|
|
89
|
|
90 extern int mplParent;
|
|
91
|
1765
|
92 extern int moviex;
|
|
93 extern int moviey;
|
|
94 extern int moviewidth;
|
|
95 extern int movieheight;
|
1693
|
96
|
|
97 extern mplCommStruct * mplShMem;
|
|
98
|
|
99 extern void mplMPlayerInit( int argc,char* argv[], char *envp[] );
|
|
100
|
|
101 extern void mplStop();
|
|
102 extern void mplFullScreen( void );
|
|
103 extern void mplPlay( void );
|
|
104 extern void mplPause( void );
|
|
105 extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
|
1952
|
106 extern void mplResizeToMovieSize( unsigned int width,unsigned int height );
|
1693
|
107
|
|
108 extern void mplIncAudioBufDelay( void );
|
|
109 extern void mplDecAudioBufDelay( void );
|
|
110
|
|
111 extern void mplRelSeek( float s );
|
|
112 extern void mplAbsSeek( float s );
|
|
113 extern float mplGetPosition( void );
|
|
114
|
|
115 extern void mplPlayFork( void );
|
|
116 extern void mplSigHandler( int s );
|
|
117 extern void mplPlayerThread( void );
|
|
118
|
1801
|
119 extern void ChangeSkin( void );
|
1802
|
120 extern void EventHandling( void );
|
1801
|
121
|
2854
|
122 extern void mplSetFileName( char * fname );
|
|
123
|
1801
|
124 #endif
|