11 #define vo_wm_FULLSCREEN 2
12 #define vo_wm_STAYS_ON_TOP 4
14 #define vo_wm_BELOW 16
15 #define vo_wm_NETWM (vo_wm_FULLSCREEN | vo_wm_STAYS_ON_TOP | vo_wm_ABOVE | vo_wm_BELOW)
17 /* EWMH state actions, see
18 http://freedesktop.org/Standards/wm-spec/index.html#id2768769 */
19 #define _NET_WM_STATE_REMOVE 0 /* remove/unset property */
20 #define _NET_WM_STATE_ADD 1 /* add/set property */
21 #define _NET_WM_STATE_TOGGLE 2 /* toggle property */
23 extern int metacity_hack
;
25 extern int vo_fs_layer
;
26 extern int vo_wm_type
;
27 extern int vo_fs_type
;
28 extern char** vo_fstype_list
;
30 extern char *mDisplayName
;
31 extern Display
*mDisplay
;
32 extern Window mRootWin
;
34 extern int mLocalDisplay
;
36 extern int vo_mouse_autohide
;
38 extern int vo_init( void );
39 extern void vo_uninit( void );
40 extern void vo_hidecursor ( Display
* , Window
);
41 extern void vo_showcursor( Display
*disp
, Window win
);
42 extern void vo_x11_decoration( Display
* vo_Display
,Window w
,int d
);
43 extern void vo_x11_classhint( Display
* display
,Window window
,char *name
);
44 extern void vo_x11_nofs_sizepos(int x
, int y
, int width
, int height
);
45 extern void vo_x11_sizehint( int x
, int y
, int width
, int height
, int max
);
46 extern int vo_x11_check_events(Display
*mydisplay
);
47 extern void vo_x11_selectinput_witherr(Display
*display
, Window w
, long event_mask
);
48 extern void vo_x11_fullscreen( void );
49 extern void vo_x11_setlayer( Display
* mDisplay
,Window vo_window
,int layer
);
50 extern void vo_x11_uninit(void);
51 extern Colormap
vo_x11_create_colormap(XVisualInfo
*vinfo
);
52 extern uint32_t vo_x11_set_equalizer(char *name
, int value
);
53 extern uint32_t vo_x11_get_equalizer(char *name
, int *value
);
54 extern void fstype_help(void);
55 extern Window
vo_x11_create_smooth_window( Display
*mDisplay
, Window mRoot
,
56 Visual
*vis
, int x
, int y
, unsigned int width
, unsigned int height
,
57 int depth
, Colormap col_map
);
58 extern void vo_x11_clearwindow_part(Display
*mDisplay
, Window vo_window
,
59 int img_width
, int img_height
, int use_fs
);
60 extern void vo_x11_clearwindow( Display
*mDisplay
, Window vo_window
);
61 extern void vo_x11_ontop(void);
62 extern void vo_x11_ewmh_fullscreen( int action
);
66 extern Window vo_window
;
68 extern XSizeHints vo_hint
;
72 extern unsigned int xv_port
;
74 extern int vo_xv_set_eq(uint32_t xv_port
, char * name
, int value
);
75 extern int vo_xv_get_eq(uint32_t xv_port
, char * name
, int *value
);
77 extern int vo_xv_enable_vsync();
79 extern void vo_xv_get_max_img_dim( uint32_t * width
, uint32_t * height
);
81 /*** colorkey handling ***/
82 typedef struct xv_ck_info_s
84 int method
; ///< CK_METHOD_* constants
85 int source
; ///< CK_SRC_* constants
88 #define CK_METHOD_NONE 0 ///< no colorkey drawing
89 #define CK_METHOD_BACKGROUND 1 ///< set colorkey as window background
90 #define CK_METHOD_AUTOPAINT 2 ///< let xv draw the colorkey
91 #define CK_METHOD_MANUALFILL 3 ///< manually draw the colorkey
92 #define CK_SRC_USE 0 ///< use specified / default colorkey
93 #define CK_SRC_SET 1 ///< use and set specified / default colorkey
94 #define CK_SRC_CUR 2 ///< use current colorkey ( get it from xv )
96 extern xv_ck_info_t xv_ck_info
;
97 extern unsigned long xv_colorkey
;
99 extern int vo_xv_init_colorkey();
100 extern void vo_xv_draw_colorkey(int32_t x
, int32_t y
, int32_t w
, int32_t h
);
101 extern void xv_setup_colorkeyhandling(char const * ck_method_str
, char const * ck_str
);
103 /*** test functions for common suboptions ***/
104 int xv_test_ck( void * arg
);
105 int xv_test_ckm( void * arg
);
109 extern void vo_setwindow( Window w
,GC g
);
110 extern void vo_x11_putkey(int key
);
113 void saver_off( Display
* );
114 void saver_on( Display
* );
117 void vo_vm_switch(uint32_t, uint32_t, int*, int*);
118 void vo_vm_close(Display
*);
121 void update_xinerama_info(void);
123 int vo_find_depth_from_visuals(Display
*dpy
, int screen
, Visual
**visual_return
);