2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
#ifndef __GUI_PLAY_H
|
|
|
|
#define __GUI_PLAY_H
|
|
|
|
|
2001-11-21 17:43:57 +00:00
|
|
|
#include "../../config.h"
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
#include "./psignal.h"
|
2001-08-31 10:08:03 +00:00
|
|
|
#include "./mplayer.h"
|
2001-08-25 21:04:29 +00:00
|
|
|
|
2001-11-21 17:43:57 +00:00
|
|
|
#ifdef USE_DVDREAD
|
|
|
|
#include "../../libmpdemux/stream.h"
|
|
|
|
#endif
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
} mplResizeStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int signal;
|
|
|
|
char module[512];
|
|
|
|
} mplUnknowErrorStruct;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int seek;
|
|
|
|
int format;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
char codecdll[128];
|
|
|
|
} mplVideoStruct;
|
|
|
|
|
2001-11-21 17:43:57 +00:00
|
|
|
#ifdef USE_DVDREAD
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int titles;
|
|
|
|
int chapters;
|
|
|
|
int angles;
|
|
|
|
int current_chapter;
|
|
|
|
int current_title;
|
|
|
|
int nr_of_audio_channels;
|
|
|
|
audio_stream_t audio_streams[8];
|
|
|
|
int nr_of_subtitles;
|
|
|
|
subtitle_t subtitles[32];
|
|
|
|
} mplDVDStruct;
|
|
|
|
#endif
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int message;
|
|
|
|
mplResizeStruct resize;
|
|
|
|
mplVideoStruct videodata;
|
|
|
|
mplUnknowErrorStruct error;
|
2001-11-21 17:43:57 +00:00
|
|
|
#ifdef USE_DVDREAD
|
|
|
|
mplDVDStruct DVD;
|
|
|
|
#endif
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
int Playing;
|
|
|
|
float Position;
|
2001-09-02 21:26:51 +00:00
|
|
|
|
|
|
|
float Volume;
|
|
|
|
int VolumeChanged;
|
2001-08-25 21:04:29 +00:00
|
|
|
float Balance;
|
2001-09-02 21:26:51 +00:00
|
|
|
int Mute;
|
|
|
|
|
2001-08-25 21:04:29 +00:00
|
|
|
int Track;
|
|
|
|
int AudioType;
|
|
|
|
int StreamType;
|
|
|
|
int TimeSec;
|
|
|
|
int LengthInSec;
|
2001-09-01 17:53:07 +00:00
|
|
|
int FrameDrop;
|
2001-08-31 21:23:55 +00:00
|
|
|
|
2001-08-29 15:07:40 +00:00
|
|
|
char Filename[4096];
|
2001-08-31 21:23:55 +00:00
|
|
|
int FilenameChanged;
|
2001-08-31 14:16:28 +00:00
|
|
|
|
2001-12-15 15:36:07 +00:00
|
|
|
char Subtitlename[4096];
|
|
|
|
int SubtitleChanged;
|
|
|
|
|
2001-08-31 14:16:28 +00:00
|
|
|
int SkinChange;
|
2001-08-25 21:04:29 +00:00
|
|
|
} mplCommStruct;
|
|
|
|
|
|
|
|
extern mplCommStruct * mplShMem;
|
|
|
|
extern char * Filename;
|
|
|
|
|
|
|
|
extern int mplParent;
|
|
|
|
|
2001-08-30 10:55:17 +00:00
|
|
|
extern int moviex;
|
|
|
|
extern int moviey;
|
|
|
|
extern int moviewidth;
|
|
|
|
extern int movieheight;
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
extern mplCommStruct * mplShMem;
|
|
|
|
|
|
|
|
extern void mplMPlayerInit( int argc,char* argv[], char *envp[] );
|
|
|
|
|
|
|
|
extern void mplStop();
|
|
|
|
extern void mplFullScreen( void );
|
|
|
|
extern void mplPlay( void );
|
|
|
|
extern void mplPause( void );
|
|
|
|
extern void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height );
|
2001-09-25 14:00:19 +00:00
|
|
|
extern void mplResizeToMovieSize( unsigned int width,unsigned int height );
|
2001-08-25 21:04:29 +00:00
|
|
|
|
|
|
|
extern void mplIncAudioBufDelay( void );
|
|
|
|
extern void mplDecAudioBufDelay( void );
|
|
|
|
|
|
|
|
extern void mplRelSeek( float s );
|
|
|
|
extern void mplAbsSeek( float s );
|
|
|
|
extern float mplGetPosition( void );
|
|
|
|
|
|
|
|
extern void mplPlayFork( void );
|
|
|
|
extern void mplSigHandler( int s );
|
|
|
|
extern void mplPlayerThread( void );
|
|
|
|
|
2001-08-31 13:05:37 +00:00
|
|
|
extern void ChangeSkin( void );
|
2001-08-31 14:16:28 +00:00
|
|
|
extern void EventHandling( void );
|
2001-08-31 13:05:37 +00:00
|
|
|
|
2001-11-12 15:16:13 +00:00
|
|
|
extern void mplSetFileName( char * fname );
|
|
|
|
|
2001-08-31 13:05:37 +00:00
|
|
|
#endif
|