common.c File Reference

Include dependency graph for common.c:


Functions

static xcb_connection_t * Connect (vlc_object_t *obj, const char *display)
 Connect to the X server.
static const xcb_screen_t * FindScreen (vlc_object_t *obj, xcb_connection_t *conn, xcb_window_t root)
 Find screen matching a given root window.
static const xcb_screen_t * FindWindow (vlc_object_t *obj, xcb_connection_t *conn, xcb_window_t xid, uint8_t *restrict pdepth)
vout_window_tGetWindow (vout_display_t *vd, xcb_connection_t **restrict pconn, const xcb_screen_t **restrict pscreen, uint8_t *restrict pdepth)
 Create a VLC video X window object, connect to the corresponding X server, find the corresponding X server screen.
void CheckSHM (vlc_object_t *obj, xcb_connection_t *conn, bool *restrict pshm)
 Check MIT-SHM shared memory support.
int PictureResourceAlloc (vout_display_t *vd, picture_resource_t *res, size_t size, xcb_connection_t *conn, bool attach)
 Initialize a picture buffer as shared memory, according to the video output format.
void PictureResourceFree (picture_resource_t *res, xcb_connection_t *conn)
 Release picture private data: detach the shared memory segment.

Function Documentation

void CheckSHM ( vlc_object_t obj,
xcb_connection_t *  conn,
bool *restrict  pshm 
)

Check MIT-SHM shared memory support.

References msg_Err, msg_Warn, and var_CreateGetBool.

static xcb_connection_t* Connect ( vlc_object_t obj,
const char *  display 
) [static]

Connect to the X server.

References msg_Dbg, msg_Err, and strndup().

static const xcb_screen_t* FindScreen ( vlc_object_t obj,
xcb_connection_t *  conn,
xcb_window_t  root 
) [static]

Find screen matching a given root window.

References i, msg_Dbg, and msg_Err.

Referenced by FindWindow().

static const xcb_screen_t* FindWindow ( vlc_object_t obj,
xcb_connection_t *  conn,
xcb_window_t  xid,
uint8_t *restrict  pdepth 
) [static]

vout_window_t* GetWindow ( vout_display_t vd,
xcb_connection_t **restrict  pconn,
const xcb_screen_t **restrict  pscreen,
uint8_t *restrict  pdepth 
) [read]

int PictureResourceAlloc ( vout_display_t vd,
picture_resource_t res,
size_t  size,
xcb_connection_t *  conn,
bool  attach 
)

Initialize a picture buffer as shared memory, according to the video output format.

If a attach is true, the segment is attached to the X server (MIT-SHM extension).

References CheckError(), msg_Err, msg_Info, picture_resource_t::p, picture_resource_t::p_pixels, picture_resource_t::p_sys, picture_sys_t::segment, VLC_EGENERIC, and VLC_SUCCESS.

Referenced by Pool().

void PictureResourceFree ( picture_resource_t res,
xcb_connection_t *  conn 
)

Release picture private data: detach the shared memory segment.

References picture_resource_t::p, picture_resource_t::p_pixels, picture_resource_t::p_sys, and picture_sys_t::segment.

Referenced by Pool(), and ResetPictures().


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