Mercurial > mplayer.hg
annotate Gui/mplayer/play.h @ 3813:41635de06d98
updated
author | gabucino |
---|---|
date | Thu, 27 Dec 2001 23:37:23 +0000 |
parents | d9d2ee82a243 |
children | b013d01d9968 |
rev | line source |
---|---|
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; |
3751
d9d2ee82a243
subtitle_t + audio_stream_t -> stream_language_t (cleanup)
arpi
parents:
3618
diff
changeset
|
47 stream_language_t audio_streams[32]; |
3054 | 48 int nr_of_subtitles; |
3751
d9d2ee82a243
subtitle_t + audio_stream_t -> stream_language_t (cleanup)
arpi
parents:
3618
diff
changeset
|
49 stream_language_t subtitles[32]; |
3054 | 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; | |
3618 | 61 int DVDChanged; |
3054 | 62 #endif |
1693 | 63 |
64 int Playing; | |
1847 | 65 float Position; |
66 | |
1693 | 67 float Volume; |
1847 | 68 int VolumeChanged; |
1693 | 69 float Balance; |
1847 | 70 int Mute; |
71 | |
1693 | 72 int Track; |
73 int AudioType; | |
74 int StreamType; | |
75 int TimeSec; | |
76 int LengthInSec; | |
1823 | 77 int FrameDrop; |
1813 | 78 |
1743 | 79 char Filename[4096]; |
1813 | 80 int FilenameChanged; |
1802 | 81 |
3499 | 82 char Subtitlename[4096]; |
83 int SubtitleChanged; | |
84 | |
1802 | 85 int SkinChange; |
1693 | 86 } mplCommStruct; |
87 | |
88 extern mplCommStruct * mplShMem; | |
89 extern char * Filename; | |
90 | |
91 extern int mplParent; | |
92 | |
1765 | 93 extern int moviex; |
94 extern int moviey; | |
95 extern int moviewidth; | |
96 extern int movieheight; | |
1693 | 97 |
98 extern mplCommStruct * mplShMem; | |
99 | |
100 extern void mplMPlayerInit( int argc,char* argv[], char *envp[] ); | |
101 | |
102 extern void mplStop(); | |
103 extern void mplFullScreen( void ); | |
104 extern void mplPlay( void ); | |
105 extern void mplPause( void ); | |
106 extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height ); | |
1952 | 107 extern void mplResizeToMovieSize( unsigned int width,unsigned int height ); |
1693 | 108 |
109 extern void mplIncAudioBufDelay( void ); | |
110 extern void mplDecAudioBufDelay( void ); | |
111 | |
112 extern void mplRelSeek( float s ); | |
113 extern void mplAbsSeek( float s ); | |
114 extern float mplGetPosition( void ); | |
115 | |
116 extern void mplPlayFork( void ); | |
117 extern void mplSigHandler( int s ); | |
118 extern void mplPlayerThread( void ); | |
119 | |
1801 | 120 extern void ChangeSkin( void ); |
1802 | 121 extern void EventHandling( void ); |
1801 | 122 |
2854 | 123 extern void mplSetFileName( char * fname ); |
124 | |
1801 | 125 #endif |