mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
8d3a427378
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1824 b3059339-0415-0410-9bf9-f77b7e298cf2
93 lines
1.7 KiB
C
93 lines
1.7 KiB
C
|
|
#ifndef __GUI_PLAY_H
|
|
#define __GUI_PLAY_H
|
|
|
|
#include "./psignal.h"
|
|
#include "./mplayer.h"
|
|
#include "../wm/ws.h"
|
|
#include "../app.h"
|
|
|
|
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;
|
|
|
|
typedef struct
|
|
{
|
|
int message;
|
|
mplResizeStruct resize;
|
|
mplVideoStruct videodata;
|
|
mplUnknowErrorStruct error;
|
|
|
|
int Playing;
|
|
float Volume;
|
|
float Position;
|
|
float Balance;
|
|
int Track;
|
|
int AudioType;
|
|
int StreamType;
|
|
int TimeSec;
|
|
int LengthInSec;
|
|
int FrameDrop;
|
|
|
|
char Filename[4096];
|
|
int FilenameChanged;
|
|
|
|
int SkinChange;
|
|
} mplCommStruct;
|
|
|
|
extern mplCommStruct * mplShMem;
|
|
extern char * Filename;
|
|
|
|
extern int mplParent;
|
|
|
|
extern int moviex;
|
|
extern int moviey;
|
|
extern int moviewidth;
|
|
extern int movieheight;
|
|
|
|
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 );
|
|
|
|
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 mplSendMessage( int msg );
|
|
extern void mplPlayerThread( void );
|
|
|
|
extern void ChangeSkin( void );
|
|
extern void EventHandling( void );
|
|
|
|
#endif
|