Mercurial > mplayer.hg
view Gui/interface.h @ 6717:9d34c286f0ba
Patch by Jiri Svoboda:
-should not fail if keyboard not present
-preparation for vsync flipping
-card capabilities should be reported better at query format
author | atmos4 |
---|---|
date | Fri, 12 Jul 2002 10:27:08 +0000 |
parents | cc917a581b6e |
children | a31b9f15cbff |
line wrap: on
line source
#ifndef _INTERFACE_H #define _INTERFACE_H #include "../config.h" #include "mplayer/play.h" #include "../mplayer.h" #ifdef USE_DVDREAD #include "../libmpdemux/stream.h" #endif typedef struct { int x; int y; int width; int height; } guiResizeStruct; typedef struct { int signal; char module[512]; } guiUnknowErrorStruct; typedef struct { int seek; int format; int width; int height; char codecdll[128]; } guiVideoStruct; #ifdef USE_DVDREAD typedef struct { int titles; int chapters; int angles; int current_chapter; int current_title; int current_angle; int nr_of_audio_channels; stream_language_t audio_streams[32]; int nr_of_subtitles; stream_language_t subtitles[32]; } guiDVDStruct; #endif typedef struct { int message; guiResizeStruct resize; guiVideoStruct videodata; guiUnknowErrorStruct error; int DiskChanged; #ifdef USE_DVDREAD guiDVDStruct DVD; #endif #ifdef HAVE_VCD int VCDTracks; #endif int Playing; float Position; int MovieWidth; int MovieHeight; float Volume; float Balance; int Track; int AudioType; int StreamType; int AudioOnly; int TimeSec; int LengthInSec; int FrameDrop; char * Filename; int FilenameChanged; char * Subtitlename; int SubtitleChanged; char * Othername; int OtherChanged; char * AudioFile; int AudioFileChanged; int SkinChange; } guiInterface_t; extern guiInterface_t guiIntfStruct; #define guiXEvent 0 #define guiCEvent 1 #define guiIEvent 2 #define guiSetDVD 3 #define guiSetFileName 4 #define guiSetState 5 #define guiSetAudioOnly 6 #define guiReDrawSubWindow 7 #define guiSetShVideo 8 #define guiSetStream 9 #define guiClearStruct 10 #define guiReDraw 11 #define guiSetVolume 12 #define guiSetDefaults 13 #define guiSetStop 0 #define guiSetPlay 1 #define guiSetPause 2 #define guiDVD 1 #define guiVCD 2 #define guiALL 0xffffffff extern char *get_path(char *filename); extern void guiInit( void ); extern void guiDone( void ); extern void guiGetEvent( int type,char * arg ); extern void guiEventHandling( void ); typedef struct _plItem { struct _plItem * prev,* next; int played; char * path; char * name; } plItem; extern plItem * plList; extern plItem * plCurrent; extern plItem * plLastPlayed; #define gtkSetContrast 0 #define gtkSetBrightness 1 #define gtkSetHue 2 #define gtkSetSaturation 3 #define gtkSetEqualizer 4 #define gtkAddPlItem 5 #define gtkGetNextPlItem 6 #define gtkGetPrevPlItem 7 #define gtkGetCurrPlItem 8 #define gtkDelPl 9 extern float gtkContrast; extern float gtkBrightness; extern float gtkHue; extern float gtkSaturation; extern float gtkEquChannels[6][10]; extern void * gtkSet( int cmd,float param, void * vparam ); #define gstrdup( s,ss ) { s=malloc( strlen( ss ) + 3 ); strcpy( s,ss ); } #define guiSetFilename( s,n ) { if ( s ) free( s ); s=strdup( n ); } #define guiSetDF( s,d,n ) \ { \ if ( s ) free( s ); s=NULL; \ s=malloc( strlen( d ) + strlen( n ) + 5 ); \ sprintf( s,"%s/%s",d,n ); \ } #endif