Mercurial > mplayer.hg
annotate libvo/x11_common.h @ 9111:0f3f6ad5fcde
potmeter description clarified, noticed by nico.
author | diego |
---|---|
date | Sun, 26 Jan 2003 18:29:22 +0000 |
parents | b8c271750450 |
children | c7f5df43b937 |
rev | line source |
---|---|
4981 | 1 |
2 #ifndef X11_COMMON_H | |
3 #define X11_COMMON_H | |
32 | 4 |
5 #ifdef X11_FULLSCREEN | |
6 | |
4993 | 7 #include <X11/Xlib.h> |
8 #include <X11/Xutil.h> | |
9 | |
8864 | 10 #define vo_wm_Unknown 0 |
11 #define vo_wm_NetWM 1 | |
12 #define vo_wm_Layered 2 | |
13 | |
14 #define SUPPORT_NONE 0 | |
15 #define SUPPORT_FULLSCREEN 1 | |
16 #define SUPPORT_ABOVE 2 | |
17 #define SUPPORT_STAYS_ON_TOP 4 | |
18 | |
19 extern int net_wm_support; | |
20 extern int metacity_hack; | |
21 extern int vo_fsmode; | |
22 | |
32 | 23 extern int vo_depthonscreen; |
24 extern int vo_screenwidth; | |
25 extern int vo_screenheight; | |
26 extern int vo_dwidth; | |
27 extern int vo_dheight; | |
4981 | 28 extern int vo_fs; |
5997
b5fb9a927bf3
add WM detection, and wm specific fullscreen code. (???)
pontscho
parents:
5955
diff
changeset
|
29 extern int vo_wm_type; |
32 | 30 |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
723
diff
changeset
|
31 extern char *mDisplayName; |
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
723
diff
changeset
|
32 extern Display *mDisplay; |
2455 | 33 extern Window mRootWin; |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
723
diff
changeset
|
34 extern int mScreen; |
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
723
diff
changeset
|
35 extern int mLocalDisplay; |
3830 | 36 extern int WinID; |
922
db06ae8967eb
Centralized and cleaned up X11 connecting, fixed remote X11 playing, -display option for mplayer. SHOULD BE TESTED.
lgb
parents:
723
diff
changeset
|
37 |
5651
b8d8d72776f2
fix playlist bug with gui and rewrite mousecursor show/hide code
pontscho
parents:
4993
diff
changeset
|
38 extern int vo_mouse_timer_const; |
5955
caac20b1ca79
fix xmga fs, resize to movie size and mouse auto hide + dga
pontscho
parents:
5835
diff
changeset
|
39 extern int vo_mouse_autohide; |
5651
b8d8d72776f2
fix playlist bug with gui and rewrite mousecursor show/hide code
pontscho
parents:
4993
diff
changeset
|
40 |
6013
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
41 extern int vo_init( void ); |
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
42 extern void vo_uninit( void ); |
6406
9bbbcd3a6762
Aii 10l forgot to commit with my last x11_common.c commit
atmos4
parents:
6095
diff
changeset
|
43 extern void vo_hidecursor ( Display* , Window ); |
5651
b8d8d72776f2
fix playlist bug with gui and rewrite mousecursor show/hide code
pontscho
parents:
4993
diff
changeset
|
44 extern void vo_showcursor( Display *disp, Window win ); |
6013
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
45 extern void vo_x11_decoration( Display * vo_Display,Window w,int d ); |
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
46 extern void vo_x11_classhint( Display * display,Window window,char *name ); |
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
47 extern void vo_x11_sizehint( int x, int y, int width, int height, int max ); |
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
48 extern int vo_x11_check_events(Display *mydisplay); |
6953
ce67cc1f0beb
ignore BadAccess error at XSelectInput() (grabbing mouse etc) with warning
arpi
parents:
6406
diff
changeset
|
49 extern void vo_x11_selectinput_witherr(Display *display, Window w, long event_mask); |
6013
7f6e02a16ac4
some bugfix, x[11|mga|v] ( fullscreen with more files )
pontscho
parents:
5998
diff
changeset
|
50 extern void vo_x11_fullscreen( void ); |
8864 | 51 extern void vo_x11_setlayer( Display * mDisplay,Window vo_window,int layer ); |
6095 | 52 extern void vo_x11_uninit(); |
7964
143d730908ae
here is a somewhat generic equalizer implementation for the X11 vo drivers
arpi
parents:
7256
diff
changeset
|
53 extern Colormap vo_x11_create_colormap(XVisualInfo *vinfo); |
143d730908ae
here is a somewhat generic equalizer implementation for the X11 vo drivers
arpi
parents:
7256
diff
changeset
|
54 extern uint32_t vo_x11_set_equalizer(char *name, int value); |
143d730908ae
here is a somewhat generic equalizer implementation for the X11 vo drivers
arpi
parents:
7256
diff
changeset
|
55 extern uint32_t vo_x11_get_equalizer(char *name, int *value); |
6095 | 56 |
32 | 57 #endif |
58 | |
4993 | 59 extern Window vo_window; |
60 extern GC vo_gc; | |
61 extern XSizeHints vo_hint; | |
4795 | 62 |
1723
5e4214a7540e
GUI stuff. now seeking works, and xmga renders to video window
arpi
parents:
1137
diff
changeset
|
63 #ifdef HAVE_NEW_GUI |
5e4214a7540e
GUI stuff. now seeking works, and xmga renders to video window
arpi
parents:
1137
diff
changeset
|
64 extern void vo_setwindow( Window w,GC g ); |
1811 | 65 extern void vo_x11_putkey(int key); |
1723
5e4214a7540e
GUI stuff. now seeking works, and xmga renders to video window
arpi
parents:
1137
diff
changeset
|
66 #endif |
723 | 67 |
324 | 68 void saver_off( Display * ); |
69 void saver_on( Display * ); | |
3990 | 70 |
71 #ifdef HAVE_XINERAMA | |
72 void vo_x11_xinerama_move(Display *dsp, Window w); | |
73 #endif | |
4425
6144f63cbaa1
common -vm code, patch by Santi Bjar <tiarda@yahoo.es>
arpi
parents:
3990
diff
changeset
|
74 |
6144f63cbaa1
common -vm code, patch by Santi Bjar <tiarda@yahoo.es>
arpi
parents:
3990
diff
changeset
|
75 #ifdef HAVE_XF86VM |
6144f63cbaa1
common -vm code, patch by Santi Bjar <tiarda@yahoo.es>
arpi
parents:
3990
diff
changeset
|
76 void vo_vm_switch(uint32_t, uint32_t, int*, int*); |
6144f63cbaa1
common -vm code, patch by Santi Bjar <tiarda@yahoo.es>
arpi
parents:
3990
diff
changeset
|
77 void vo_vm_close(Display*); |
6144f63cbaa1
common -vm code, patch by Santi Bjar <tiarda@yahoo.es>
arpi
parents:
3990
diff
changeset
|
78 #endif |
4981 | 79 |
8864 | 80 int vo_find_depth_from_visuals(Display *dpy, int screen, Visual **visual_return); |
81 | |
4981 | 82 #endif |
7256
ec6dd0a29d93
Add the code that chooses a good X11 truecolor visual to the vo_x11 config()
jkeil
parents:
6953
diff
changeset
|
83 |