
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_t * | GetWindow (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. | |
| void CheckSHM | ( | vlc_object_t * | obj, | |
| xcb_connection_t * | conn, | |||
| bool *restrict | pshm | |||
| ) |
| static xcb_connection_t* Connect | ( | vlc_object_t * | obj, | |
| const char * | display | |||
| ) | [static] |
| 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] |
References FindScreen(), and msg_Err.
Referenced by DirectXCreateWindow(), DirectXEventProc(), GetWindow(), system_Configure(), system_End(), and WallpaperChange().
| vout_window_t* GetWindow | ( | vout_display_t * | vd, | |
| xcb_connection_t **restrict | pconn, | |||
| const xcb_screen_t **restrict | pscreen, | |||
| uint8_t *restrict | pdepth | |||
| ) | [read] |
Create a VLC video X window object, connect to the corresponding X server, find the corresponding X server screen.
References vout_display_t::cfg, Connect(), vout_window_t::display, vout_display_cfg_t::display, FindWindow(), vout_window_t::handle, vout_display_cfg_t::height, vout_window_cfg_t::height, msg_Err, RegisterMouseEvents(), vout_window_cfg_t::type, var_InheritInteger, VLC_OBJECT, vout_display_DeleteWindow(), vout_display_NewWindow(), VOUT_WINDOW_TYPE_XID, vout_display_cfg_t::width, vout_window_cfg_t::width, vout_window_cfg_t::x, vout_window_t::x11, vout_window_t::xid, and vout_window_cfg_t::y.
| 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().
1.5.6