annotate Gui/mplayer/play.h @ 3616:6a4155dce92c

nesze LGB beleirtalak igy ;)
author pontscho
date Wed, 19 Dec 2001 16:53:34 +0000
parents fe1283137353
children 772729dd7b40
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 #ifndef __GUI_PLAY_H
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #define __GUI_PLAY_H
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
3054
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
5 #include "../../config.h"
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
6
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #include "./psignal.h"
1795
4dde03edb55e add mplayer.h
pontscho
parents: 1765
diff changeset
8 #include "./mplayer.h"
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
3054
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
10 #ifdef USE_DVDREAD
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
11 #include "../../libmpdemux/stream.h"
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
12 #endif
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
13
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 int x;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 int y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 int width;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19 int height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 } mplResizeStruct;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 int signal;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 char module[512];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 } mplUnknowErrorStruct;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 int seek;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 int format;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 int width;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 int height;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34 char codecdll[128];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35 } mplVideoStruct;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36
3054
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
37 #ifdef USE_DVDREAD
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
38 typedef struct
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
39 {
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
40 int titles;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
41 int chapters;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
42 int angles;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
43 int current_chapter;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
44 int current_title;
3597
fe1283137353 init title change basz.
pontscho
parents: 3499
diff changeset
45 int current_angle;
3054
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
46 int nr_of_audio_channels;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
47 audio_stream_t audio_streams[8];
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
48 int nr_of_subtitles;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
49 subtitle_t subtitles[32];
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
50 } mplDVDStruct;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
51 #endif
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
52
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 int message;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 mplResizeStruct resize;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 mplVideoStruct videodata;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58 mplUnknowErrorStruct error;
3054
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
59 #ifdef USE_DVDREAD
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
60 mplDVDStruct DVD;
9507f90d8254 add half dvd support for gui
pontscho
parents: 2854
diff changeset
61 #endif
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 int Playing;
1847
773ae4ba43f5 add voluechanged
pontscho
parents: 1823
diff changeset
64 float Position;
773ae4ba43f5 add voluechanged
pontscho
parents: 1823
diff changeset
65
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 float Volume;
1847
773ae4ba43f5 add voluechanged
pontscho
parents: 1823
diff changeset
67 int VolumeChanged;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 float Balance;
1847
773ae4ba43f5 add voluechanged
pontscho
parents: 1823
diff changeset
69 int Mute;
773ae4ba43f5 add voluechanged
pontscho
parents: 1823
diff changeset
70
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
71 int Track;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 int AudioType;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73 int StreamType;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 int TimeSec;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 int LengthInSec;
1823
a6c67352ccac fix some bug.
pontscho
parents: 1813
diff changeset
76 int FrameDrop;
1813
c68e82514f56 add filenamechanged
pontscho
parents: 1802
diff changeset
77
1743
b266f763cad3 fix playing
pontscho
parents: 1693
diff changeset
78 char Filename[4096];
1813
c68e82514f56 add filenamechanged
pontscho
parents: 1802
diff changeset
79 int FilenameChanged;
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1801
diff changeset
80
3499
93351eec9f1f Add subtitle loader for gui
pontscho
parents: 3054
diff changeset
81 char Subtitlename[4096];
93351eec9f1f Add subtitle loader for gui
pontscho
parents: 3054
diff changeset
82 int SubtitleChanged;
93351eec9f1f Add subtitle loader for gui
pontscho
parents: 3054
diff changeset
83
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1801
diff changeset
84 int SkinChange;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 } mplCommStruct;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 extern mplCommStruct * mplShMem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88 extern char * Filename;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
89
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 extern int mplParent;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
91
1765
29913c011d50 normal size
pontscho
parents: 1755
diff changeset
92 extern int moviex;
29913c011d50 normal size
pontscho
parents: 1755
diff changeset
93 extern int moviey;
29913c011d50 normal size
pontscho
parents: 1755
diff changeset
94 extern int moviewidth;
29913c011d50 normal size
pontscho
parents: 1755
diff changeset
95 extern int movieheight;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
96
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
97 extern mplCommStruct * mplShMem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
98
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
99 extern void mplMPlayerInit( int argc,char* argv[], char *envp[] );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
100
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
101 extern void mplStop();
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
102 extern void mplFullScreen( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
103 extern void mplPlay( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
104 extern void mplPause( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
105 extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
1952
b55163894e30 compile bug fixed.
pontscho
parents: 1858
diff changeset
106 extern void mplResizeToMovieSize( unsigned int width,unsigned int height );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
107
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 extern void mplIncAudioBufDelay( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109 extern void mplDecAudioBufDelay( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 extern void mplRelSeek( float s );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
112 extern void mplAbsSeek( float s );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 extern float mplGetPosition( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 extern void mplPlayFork( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 extern void mplSigHandler( int s );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
117 extern void mplPlayerThread( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118
1801
e16646a140fd fix skin change
pontscho
parents: 1795
diff changeset
119 extern void ChangeSkin( void );
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1801
diff changeset
120 extern void EventHandling( void );
1801
e16646a140fd fix skin change
pontscho
parents: 1795
diff changeset
121
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 1952
diff changeset
122 extern void mplSetFileName( char * fname );
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 1952
diff changeset
123
1801
e16646a140fd fix skin change
pontscho
parents: 1795
diff changeset
124 #endif