window.c File Reference

Include dependency graph for window.c:


Data Structures

struct  vout_window_sys_t

Defines

#define XID_TEXT   N_("ID of the video output X window")
#define XID_LONGTEXT
#define MATCHBOX_HACK   1
#define NET_WM_STATE_REMOVE   0
#define NET_WM_STATE_ADD   1
#define NET_WM_STATE_TOGGLE   2

Typedefs

typedef xcb_atom_t Atom

Functions

static int Open (vlc_object_t *obj)
 Create an X11 window.
static void Close (vlc_object_t *obj)
 Destroys the X11 window.
static int EmOpen (vlc_object_t *obj)
 Wrap an existing X11 window to embed the video.
static void EmClose (vlc_object_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int Control (vout_window_t *, int, va_list ap)
static void * Thread (void *data)
 Background thread for X11 events handling.
static void set_string (xcb_connection_t *conn, xcb_window_t window, xcb_atom_t type, xcb_atom_t atom, const char *str)
 Set an X window property from a nul-terminated string.
static void set_ascii_prop (xcb_connection_t *conn, xcb_window_t window, xcb_atom_t atom, const char *value)
 Set an X window string property.
static void set_wm_hints (xcb_connection_t *conn, xcb_window_t window)
static void set_hostname_prop (xcb_connection_t *conn, xcb_window_t window)
 Set the Window ICCCM client machine property.
static xcb_intern_atom_cookie_t intern_string (xcb_connection_t *c, const char *s)
 Request the X11 server to internalize a string into an atom.
static xcb_atom_t get_atom (xcb_connection_t *conn, xcb_intern_atom_cookie_t ck)
 Extract the X11 atom from an intern request cookie.
static void CacheAtoms (vout_window_sys_t *p_sys)
static void set_wm_state (vout_window_t *wnd, bool on, xcb_atom_t state)
 Changes the EWMH state of the window.
static int AcquireDrawable (vlc_object_t *obj, xcb_window_t window)
 Acquire a drawable.
static void ReleaseDrawable (vlc_object_t *obj, xcb_window_t window)
 Remove this drawable from the list of busy ones.

Variables

static vlc_mutex_t serializer = PTHREAD_MUTEX_INITIALIZER

Define Documentation

#define MATCHBOX_HACK   1

#define NET_WM_STATE_ADD   1

Referenced by set_wm_state().

#define NET_WM_STATE_REMOVE   0

Referenced by set_wm_state().

#define NET_WM_STATE_TOGGLE   2

#define XID_LONGTEXT

Value:

N_( \
    "VLC can embed its video output in an existing X11 window. " \
    "This is the X identifier of that window (0 means none).")

#define XID_TEXT   N_("ID of the video output X window")


Typedef Documentation

typedef xcb_atom_t Atom


Function Documentation

static int AcquireDrawable ( vlc_object_t obj,
xcb_window_t  window 
) [static]

static void CacheAtoms ( vout_window_sys_t p_sys  )  [static]

static void Close ( vlc_object_t p_this  )  [static]

Destroys the X11 window.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static int Control ( vout_window_t wnd,
int  cmd,
va_list  ap 
) [static]

static void EmClose ( vlc_object_t obj  )  [static]

static int EmOpen ( vlc_object_t obj  )  [static]

static xcb_atom_t get_atom ( xcb_connection_t *  conn,
xcb_intern_atom_cookie_t  ck 
) [static]

Extract the X11 atom from an intern request cookie.

Referenced by CacheAtoms().

static xcb_intern_atom_cookie_t intern_string ( xcb_connection_t *  c,
const char *  s 
) [inline, static]

Request the X11 server to internalize a string into an atom.

Referenced by CacheAtoms().

static int Open ( vlc_object_t p_this  )  [static]

Create an X11 window.

Forward declarations.

Status of this demuxer: Real Media format -----------------.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static void ReleaseDrawable ( vlc_object_t obj,
xcb_window_t  window 
) [static]

Remove this drawable from the list of busy ones.

References vlc_object_t::p_libvlc, var_Destroy, var_GetAddress, var_SetAddress, vlc_mutex_lock(), and vlc_mutex_unlock().

Referenced by EmClose(), and EmOpen().

static void set_ascii_prop ( xcb_connection_t *  conn,
xcb_window_t  window,
xcb_atom_t  atom,
const char *  value 
) [inline, static]

Set an X window string property.

References set_string().

Referenced by set_hostname_prop().

static void set_hostname_prop ( xcb_connection_t *  conn,
xcb_window_t  window 
) [inline, static]

Set the Window ICCCM client machine property.

References set_ascii_prop().

static void set_string ( xcb_connection_t *  conn,
xcb_window_t  window,
xcb_atom_t  type,
xcb_atom_t  atom,
const char *  str 
) [inline, static]

Set an X window property from a nul-terminated string.

static void set_wm_hints ( xcb_connection_t *  conn,
xcb_window_t  window 
) [inline, static]

static void set_wm_state ( vout_window_t wnd,
bool  on,
xcb_atom_t  state 
) [static]

static void * Thread ( void *  data  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

vlc_mutex_t serializer = PTHREAD_MUTEX_INITIALIZER [static]


Generated on Tue May 25 08:05:38 2010 for VLC by  doxygen 1.5.6