#include <libosso.h>
#endif
+struct vout_window_t;
/*****************************************************************************
* x11_window_t: X11 window descriptor
*****************************************************************************/
typedef struct x11_window_t
{
- Window owner_window; /* owner window (if any) */
+ struct vout_window_t*owner_window; /* owner window (if any) */
Window base_window; /* base window */
Window video_window; /* sub-window for displaying video */
GC gc; /* graphic context instance handler */
Visual * p_visual; /* visual pointer */
int i_screen; /* screen number */
- vlc_mutex_t lock;
+ /* Our window */
+ x11_window_t window;
- /* Our current window */
- x11_window_t * p_win;
-
- /* Our two windows */
- x11_window_t original_window;
- x11_window_t fullscreen_window;
+ /* key and mouse event handling */
+ int i_vout_event; /* 1(Fullsupport), 2(FullscreenOnly), 3(none) */
/* X11 generic properties */
bool b_altfullscreen; /* which fullscreen method */
* Chroma defines
*****************************************************************************/
#ifdef MODULE_NAME_IS_xvideo
-# define MAX_DIRECTBUFFERS 10
+# define MAX_DIRECTBUFFERS (VOUT_MAX_PICTURES)
#elif defined(MODULE_NAME_IS_xvmc)
-# define MAX_DIRECTBUFFERS 12
+# define MAX_DIRECTBUFFERS (VOUT_MAX_PICTURES+2)
#else
# define MAX_DIRECTBUFFERS 2
#endif
+#ifndef MODULE_NAME_IS_glx
+static IMAGE_TYPE *CreateImage ( vout_thread_t *,
+ Display *, EXTRA_ARGS, int, int );
+#ifdef HAVE_SYS_SHM_H
+IMAGE_TYPE *CreateShmImage ( vout_thread_t *,
+ Display *, EXTRA_ARGS_SHM, int, int );
+#endif
+#endif