3 * @brief X C Bindings video output module for VLC media player
5 /*****************************************************************************
6 * Copyright © 2009 Rémi Denis-Courmont
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 ****************************************************************************/
34 #include <vlc_common.h>
35 #include <vlc_plugin.h>
36 #include <vlc_vout_display.h>
37 #include <vlc_picture_pool.h>
38 #include <vlc_dialog.h>
42 #define ADAPTOR_TEXT N_("XVideo adaptor number")
43 #define ADAPTOR_LONGTEXT N_( \
44 "XVideo hardware adaptor to use. By default, VLC will " \
45 "use the first functional adaptor.")
47 #define FORMAT_TEXT N_("XVideo format id")
48 #define FORMAT_LONGTEXT N_( \
49 "XVideo image format id to use. By default, VLC will " \
50 "try to use the best match for the video being played.")
52 static int Open (vlc_object_t *);
53 static void Close (vlc_object_t *);
59 set_shortname (N_("XVideo"))
60 set_description (N_("XVideo output (XCB)"))
61 set_category (CAT_VIDEO)
62 set_subcategory (SUBCAT_VIDEO_VOUT)
63 set_capability ("vout display", 200)
64 set_callbacks (Open, Close)
66 add_integer ("xvideo-adaptor", -1,
67 ADAPTOR_TEXT, ADAPTOR_LONGTEXT, true)
68 add_integer ("xvideo-format-id", 0,
69 FORMAT_TEXT, FORMAT_LONGTEXT, true)
70 add_obsolete_bool ("xvideo-shm") /* removed in 1.2.0 */
71 add_shortcut ("xcb-xv", "xv", "xvideo", "xid")
74 #define MAX_PICTURES (128)
76 struct vout_display_sys_t
78 xcb_connection_t *conn;
79 vout_window_t *embed;/* VLC window */
81 xcb_cursor_t cursor; /* blank cursor */
82 xcb_window_t window; /* drawable X window */
83 xcb_gcontext_t gc; /* context to put images */
84 xcb_xv_port_t port; /* XVideo port */
85 uint32_t id; /* XVideo format */
86 uint16_t width; /* display width */
87 uint16_t height; /* display height */
88 uint32_t data_size; /* picture byte size (for non-SHM) */
89 bool swap_uv; /* U/V pointer must be swapped in a picture */
90 bool shm; /* whether to use MIT-SHM */
91 bool visible; /* whether it makes sense to draw at all */
93 xcb_xv_query_image_attributes_reply_t *att;
94 picture_pool_t *pool; /* picture pool */
95 picture_resource_t resource[MAX_PICTURES];
98 static picture_pool_t *Pool (vout_display_t *, unsigned);
99 static void Display (vout_display_t *, picture_t *, subpicture_t *subpicture);
100 static int Control (vout_display_t *, int, va_list);
101 static void Manage (vout_display_t *);
104 * Check that the X server supports the XVideo extension.
106 static bool CheckXVideo (vout_display_t *vd, xcb_connection_t *conn)
108 xcb_xv_query_extension_reply_t *r;
109 xcb_xv_query_extension_cookie_t ck = xcb_xv_query_extension (conn);
112 /* We need XVideo 2.2 for PutImage */
113 r = xcb_xv_query_extension_reply (conn, ck, NULL);
115 msg_Dbg (vd, "XVideo extension not available");
118 msg_Dbg (vd, "XVideo extension v%"PRIu8".%"PRIu8" unknown",
122 msg_Dbg (vd, "XVideo extension v%"PRIu8".%"PRIu8" too old",
126 msg_Dbg (vd, "using XVideo extension v%"PRIu8".%"PRIu8,
134 static vlc_fourcc_t ParseFormat (vout_display_t *vd,
135 const xcb_xv_image_format_info_t *restrict f)
137 if (f->byte_order != ORDER && f->bpp != 8)
138 return 0; /* Argh! */
142 case XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB:
143 switch (f->num_planes)
146 switch (popcount (f->red_mask | f->green_mask | f->blue_mask))
149 if (f->bpp == 32 && f->depth == 32)
150 return VLC_CODEC_RGBA;
151 if (f->bpp == 32 && f->depth == 24)
152 return VLC_CODEC_RGB32;
153 if (f->bpp == 24 && f->depth == 24)
154 return VLC_CODEC_RGB24;
157 if (f->bpp == 16 && f->depth == 16)
158 return VLC_CODEC_RGB16;
161 if (f->bpp == 16 && f->depth == 16)
162 return VLC_CODEC_RGBT;
163 if (f->bpp == 16 && f->depth == 15)
164 return VLC_CODEC_RGB15;
167 if (f->bpp == 16 && f->depth == 16)
168 return VLC_CODEC_RGBA16;
169 if (f->bpp == 16 && f->depth == 12)
170 return VLC_CODEC_RGB12;
172 if (f->bpp == 8 && f->depth == 8)
173 return VLC_CODEC_RGB8;
178 msg_Err (vd, "unknown XVideo RGB format %"PRIx32" (%.4s)",
180 msg_Dbg (vd, " %"PRIu8" planes, %"PRIu8" bits/pixel, "
181 "depth %"PRIu8, f->num_planes, f->bpp, f->depth);
184 case XCB_XV_IMAGE_FORMAT_INFO_TYPE_YUV:
185 if (f->u_sample_bits != f->v_sample_bits
186 || f->vhorz_u_period != f->vhorz_v_period
187 || f->vvert_u_period != f->vvert_v_period
188 || f->y_sample_bits != 8 || f->u_sample_bits != 8
189 || f->vhorz_y_period != 1 || f->vvert_y_period != 1)
191 switch (f->num_planes)
197 if (f->vhorz_u_period == 1 && f->vvert_u_period == 1)
198 return VLC_CODEC_I444;
201 if (f->vhorz_u_period == 2 && f->vvert_u_period == 1)
203 if (!strcmp ((const char *)f->vcomp_order, "YUYV"))
204 return VLC_CODEC_YUYV;
205 if (!strcmp ((const char *)f->vcomp_order, "UYVY"))
206 return VLC_CODEC_UYVY;
215 if (f->vhorz_u_period == 2 && f->vvert_u_period == 2)
217 if (!strcmp ((const char *)f->vcomp_order, "YVU"))
218 return VLC_CODEC_YV12;
219 if (!strcmp ((const char *)f->vcomp_order, "YUV"))
220 return VLC_CODEC_I420;
226 msg_Err (vd, "unknown XVideo YUV format %"PRIx32" (%.4s)", f->id,
228 msg_Dbg (vd, " %"PRIu8" planes, %"PRIu32" bits/pixel, "
229 "%"PRIu32"/%"PRIu32"/%"PRIu32" bits/sample", f->num_planes,
230 f->bpp, f->y_sample_bits, f->u_sample_bits, f->v_sample_bits);
231 msg_Dbg (vd, " period: %"PRIu32"/%"PRIu32"/%"PRIu32"x"
232 "%"PRIu32"/%"PRIu32"/%"PRIu32,
233 f->vhorz_y_period, f->vhorz_u_period, f->vhorz_v_period,
234 f->vvert_y_period, f->vvert_u_period, f->vvert_v_period);
235 msg_Warn (vd, " order: %.32s", f->vcomp_order);
242 static const xcb_xv_image_format_info_t *
243 FindFormat (vout_display_t *vd,
244 vlc_fourcc_t chroma, const video_format_t *fmt,
246 const xcb_xv_list_image_formats_reply_t *list,
247 xcb_xv_query_image_attributes_reply_t **restrict pa)
249 xcb_connection_t *conn = vd->sys->conn;
250 const xcb_xv_image_format_info_t *f, *end;
252 f = xcb_xv_list_image_formats_format (list);
253 end = f + xcb_xv_list_image_formats_format_length (list);
256 if (chroma != ParseFormat (vd, f))
259 /* VLC pads scanline to 16 pixels internally */
260 unsigned width = fmt->i_width;
261 unsigned height = fmt->i_height;
262 xcb_xv_query_image_attributes_reply_t *i;
263 i = xcb_xv_query_image_attributes_reply (conn,
264 xcb_xv_query_image_attributes (conn, port, f->id,
265 width, height), NULL);
269 if (i->width != width || i->height != height)
271 msg_Warn (vd, "incompatible size %ux%u -> %"PRIu32"x%"PRIu32,
272 fmt->i_width, fmt->i_height,
273 i->width, i->height);
274 var_Create (vd->p_libvlc, "xvideo-resolution-error", VLC_VAR_BOOL);
275 if (!var_GetBool (vd->p_libvlc, "xvideo-resolution-error"))
277 dialog_FatalWait (vd, _("Video acceleration not available"),
278 _("Your video output acceleration driver does not support "
279 "the required resolution: %ux%u pixels. The maximum "
280 "supported resolution is %"PRIu32"x%"PRIu32".\n"
281 "Video output acceleration will be disabled. However, "
282 "rendering videos with overly large resolution "
283 "may cause severe performance degration."),
284 width, height, i->width, i->height);
285 var_SetBool (vd->p_libvlc, "xvideo-resolution-error", true);
298 * Probe the X server.
300 static int Open (vlc_object_t *obj)
302 vout_display_t *vd = (vout_display_t *)obj;
303 vout_display_sys_t *p_sys;
305 if (!var_InheritBool (obj, "overlay"))
307 p_sys = malloc (sizeof (*p_sys));
314 xcb_connection_t *conn;
315 const xcb_screen_t *screen;
317 p_sys->embed = GetWindow (vd, &conn, &screen, &depth);
318 if (p_sys->embed == NULL)
327 p_sys->swap_uv = false;
329 if (!CheckXVideo (vd, conn))
331 msg_Warn (vd, "Please enable XVideo 2.2 for faster video display");
335 p_sys->window = xcb_generate_id (conn);
336 xcb_pixmap_t pixmap = xcb_generate_id (conn);
338 /* Cache adaptors infos */
339 xcb_xv_query_adaptors_reply_t *adaptors =
340 xcb_xv_query_adaptors_reply (conn,
341 xcb_xv_query_adaptors (conn, p_sys->embed->handle.xid), NULL);
342 if (adaptors == NULL)
345 int forced_adaptor = var_InheritInteger (obj, "xvideo-adaptor");
348 video_format_t fmt = vd->fmt;
351 xcb_xv_adaptor_info_iterator_t it;
352 for (it = xcb_xv_query_adaptors_info_iterator (adaptors);
354 xcb_xv_adaptor_info_next (&it))
356 const xcb_xv_adaptor_info_t *a = it.data;
359 if (forced_adaptor != -1 && forced_adaptor != 0)
365 if (!(a->type & XCB_XV_TYPE_IMAGE_MASK))
368 xcb_xv_list_image_formats_reply_t *r =
369 xcb_xv_list_image_formats_reply (conn,
370 xcb_xv_list_image_formats (conn, a->base_id), NULL);
374 /* Look for an image format */
375 const xcb_xv_image_format_info_t *xfmt = NULL;
376 const vlc_fourcc_t *chromas, chromas_default[] = {
385 if (vlc_fourcc_IsYUV (fmt.i_chroma))
386 chromas = vlc_fourcc_GetYUVFallback (fmt.i_chroma);
388 chromas = chromas_default;
390 int forced_format_id = var_CreateGetInteger (obj, "xvideo-format-id");
391 vlc_fourcc_t chroma = forced_format_id;
392 xfmt = FindFormat (vd, chroma, &fmt, a->base_id, r, &p_sys->att);
393 for (size_t i = 0; !xfmt && chromas[i]; i++)
398 if ((chroma == VLC_CODEC_I420 || chroma == VLC_CODEC_YV12)
400 && !memcmp ("OMAP", xcb_xv_adaptor_info_name (a), 4))
402 msg_Dbg (vd, "skipping slow I420 format");
403 continue; /* OMAP framebuffer sucks at YUV 4:2:0 */
406 xfmt = FindFormat (vd, chroma, &fmt, a->base_id, r, &p_sys->att);
408 if (xfmt == NULL) /* No acceptable image formats */
414 p_sys->id = xfmt->id;
415 p_sys->swap_uv = vlc_fourcc_AreUVPlanesSwapped (fmt.i_chroma, chroma);
417 fmt.i_chroma = chroma;
418 if (xfmt->type == XCB_XV_IMAGE_FORMAT_INFO_TYPE_RGB)
420 fmt.i_rmask = xfmt->red_mask;
421 fmt.i_gmask = xfmt->green_mask;
422 fmt.i_bmask = xfmt->blue_mask;
427 for (unsigned i = 0; i < a->num_ports; i++)
429 xcb_xv_port_t port = a->base_id + i;
430 xcb_xv_grab_port_reply_t *gr =
431 xcb_xv_grab_port_reply (conn,
432 xcb_xv_grab_port (conn, port, XCB_CURRENT_TIME), NULL);
433 uint8_t result = gr ? gr->result : 0xff;
441 msg_Dbg (vd, "cannot grab port %"PRIu32": Xv error %"PRIu8, port,
444 continue; /* No usable port */
447 /* Found port - initialize selected format */
448 name = strndup (xcb_xv_adaptor_info_name (a), a->name_size);
451 msg_Dbg (vd, "using adaptor %s", name);
454 msg_Dbg (vd, "using port %"PRIu32, p_sys->port);
455 msg_Dbg (vd, "using image format 0x%"PRIx32, p_sys->id);
457 /* Look for an X11 visual, create a window */
458 xcb_xv_format_t *f = xcb_xv_adaptor_info_formats (a);
459 for (uint_fast16_t i = a->num_formats; i > 0; i--, f++)
461 if (f->depth != screen->root_depth)
462 continue; /* this would fail anyway */
467 XCB_CW_BORDER_PIXMAP |
468 XCB_CW_BORDER_PIXEL |
471 const uint32_t list[] = {
472 /* XCB_CW_BACK_PIXMAP */
474 /* XCB_CW_BACK_PIXEL */
476 /* XCB_CW_BORDER_PIXMAP */
478 /* XCB_CW_BORDER_PIXEL */
480 /* XCB_CW_EVENT_MASK */
481 XCB_EVENT_MASK_VISIBILITY_CHANGE,
482 /* XCB_CW_COLORMAP */
483 screen->default_colormap,
488 xcb_create_pixmap (conn, f->depth, pixmap, screen->root, 1, 1);
489 c = xcb_create_window_checked (conn, f->depth, p_sys->window,
490 p_sys->embed->handle.xid, 0, 0, 1, 1, 0,
491 XCB_WINDOW_CLASS_INPUT_OUTPUT, f->visual, mask, list);
493 if (!CheckError (vd, conn, "cannot create X11 window", c))
495 msg_Dbg (vd, "using X11 visual ID 0x%"PRIx32
496 " (depth: %"PRIu8")", f->visual, f->depth);
497 msg_Dbg (vd, "using X11 window 0x%08"PRIx32, p_sys->window);
501 xcb_xv_ungrab_port (conn, p_sys->port, XCB_CURRENT_TIME);
503 msg_Dbg (vd, "no usable X11 visual");
504 continue; /* No workable XVideo format (visual/depth) */
512 msg_Err (vd, "no available XVideo adaptor");
517 xcb_map_window (conn, p_sys->window);
519 vout_display_place_t place;
521 vout_display_PlacePicture (&place, &vd->source, vd->cfg, false);
522 p_sys->width = place.width;
523 p_sys->height = place.height;
526 const uint32_t values[] = {
527 place.x, place.y, place.width, place.height };
528 xcb_configure_window (conn, p_sys->window,
529 XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
530 XCB_CONFIG_WINDOW_WIDTH |
531 XCB_CONFIG_WINDOW_HEIGHT,
534 p_sys->visible = false;
536 /* Create graphic context */
537 p_sys->gc = xcb_generate_id (conn);
538 xcb_create_gc (conn, p_sys->gc, p_sys->window, 0, NULL);
539 msg_Dbg (vd, "using X11 graphic context 0x%08"PRIx32, p_sys->gc);
542 p_sys->cursor = CreateBlankCursor (conn, screen);
544 p_sys->shm = CheckSHM (obj, conn);
547 vout_display_info_t info = vd->info;
548 info.has_pictures_invalid = false;
549 info.has_event_thread = true;
551 /* Setup vout_display_t once everything is fine */
557 vd->display = Display;
558 vd->control = Control;
562 bool is_fullscreen = vd->cfg->is_fullscreen;
563 if (is_fullscreen && vout_window_SetFullScreen (p_sys->embed, true))
564 is_fullscreen = false;
565 vout_display_SendEventFullscreen (vd, is_fullscreen);
566 unsigned width, height;
567 if (!GetWindowSize (p_sys->embed, conn, &width, &height))
568 vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
579 * Disconnect from the X server.
581 static void Close (vlc_object_t *obj)
583 vout_display_t *vd = (vout_display_t *)obj;
584 vout_display_sys_t *p_sys = vd->sys;
588 for (unsigned i = 0; i < MAX_PICTURES; i++)
590 picture_resource_t *res = &p_sys->resource[i];
592 if (!res->p->p_pixels)
594 PictureResourceFree (res, NULL);
596 picture_pool_Delete (p_sys->pool);
599 /* show the default cursor */
600 xcb_change_window_attributes (p_sys->conn, p_sys->embed->handle.xid, XCB_CW_CURSOR,
601 &(uint32_t) { XCB_CURSOR_NONE });
602 xcb_flush (p_sys->conn);
605 xcb_disconnect (p_sys->conn);
606 vout_display_DeleteWindow (vd, p_sys->embed);
610 static void PoolAlloc (vout_display_t *vd, unsigned requested_count)
612 vout_display_sys_t *p_sys = vd->sys;
614 memset (p_sys->resource, 0, sizeof(p_sys->resource));
616 const uint32_t *pitches= xcb_xv_query_image_attributes_pitches (p_sys->att);
617 const uint32_t *offsets= xcb_xv_query_image_attributes_offsets (p_sys->att);
618 const unsigned num_planes= __MIN(p_sys->att->num_planes, PICTURE_PLANE_MAX);
619 p_sys->data_size = p_sys->att->data_size;
621 picture_t *pic_array[MAX_PICTURES];
622 requested_count = __MIN(requested_count, MAX_PICTURES);
625 for (count = 0; count < requested_count; count++)
627 picture_resource_t *res = &p_sys->resource[count];
629 for (unsigned i = 0; i < num_planes; i++)
632 data_size = (i < num_planes - 1) ? offsets[i+1] : p_sys->data_size;
634 res->p[i].i_lines = (data_size - offsets[i]) / pitches[i];
635 res->p[i].i_pitch = pitches[i];
638 if (PictureResourceAlloc (vd, res, p_sys->att->data_size,
639 p_sys->conn, p_sys->shm))
642 /* Allocate further planes as specified by XVideo */
643 /* We assume that offsets[0] is zero */
644 for (unsigned i = 1; i < num_planes; i++)
645 res->p[i].p_pixels = res->p[0].p_pixels + offsets[i];
648 { /* YVU: swap U and V planes */
649 uint8_t *buf = res->p[2].p_pixels;
650 res->p[2].p_pixels = res->p[1].p_pixels;
651 res->p[1].p_pixels = buf;
654 pic_array[count] = picture_NewFromResource (&vd->fmt, res);
655 if (!pic_array[count])
657 PictureResourceFree (res, p_sys->conn);
658 memset (res, 0, sizeof(*res));
666 p_sys->pool = picture_pool_New (count, pic_array);
667 /* TODO release picture resources if NULL */
668 xcb_flush (p_sys->conn);
672 * Return a direct buffer
674 static picture_pool_t *Pool (vout_display_t *vd, unsigned requested_count)
676 vout_display_sys_t *p_sys = vd->sys;
679 PoolAlloc (vd, requested_count);
685 * Sends an image to the X server.
687 static void Display (vout_display_t *vd, picture_t *pic, subpicture_t *subpicture)
689 vout_display_sys_t *p_sys = vd->sys;
690 xcb_shm_seg_t segment = pic->p_sys->segment;
691 xcb_void_cookie_t ck;
696 ck = xcb_xv_shm_put_image_checked (p_sys->conn, p_sys->port,
697 p_sys->window, p_sys->gc, segment, p_sys->id, 0,
698 /* Src: */ vd->source.i_x_offset,
699 vd->source.i_y_offset,
700 vd->source.i_visible_width,
701 vd->source.i_visible_height,
702 /* Dst: */ 0, 0, p_sys->width, p_sys->height,
703 /* Memory: */ pic->p->i_pitch / pic->p->i_pixel_pitch,
704 pic->p->i_lines, false);
706 ck = xcb_xv_put_image_checked (p_sys->conn, p_sys->port, p_sys->window,
707 p_sys->gc, p_sys->id,
708 vd->source.i_x_offset,
709 vd->source.i_y_offset,
710 vd->source.i_visible_width,
711 vd->source.i_visible_height,
712 0, 0, p_sys->width, p_sys->height,
713 pic->p->i_pitch / pic->p->i_pixel_pitch,
715 p_sys->data_size, pic->p->p_pixels);
717 /* Wait for reply. See x11.c for rationale. */
718 xcb_generic_error_t *e = xcb_request_check (p_sys->conn, ck);
721 msg_Dbg (vd, "%s: X11 error %d", "cannot put image", e->error_code);
725 picture_Release (pic);
729 static int Control (vout_display_t *vd, int query, va_list ap)
731 vout_display_sys_t *p_sys = vd->sys;
735 case VOUT_DISPLAY_CHANGE_FULLSCREEN:
737 const vout_display_cfg_t *c = va_arg (ap, const vout_display_cfg_t *);
738 return vout_window_SetFullScreen (p_sys->embed, c->is_fullscreen);
741 case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
742 case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
743 case VOUT_DISPLAY_CHANGE_ZOOM:
744 case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT:
745 case VOUT_DISPLAY_CHANGE_SOURCE_CROP:
747 const vout_display_cfg_t *cfg;
748 const video_format_t *source;
749 bool is_forced = false;
751 if (query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
752 || query == VOUT_DISPLAY_CHANGE_SOURCE_CROP)
754 source = (const video_format_t *)va_arg (ap, const video_format_t *);
759 source = &vd->source;
760 cfg = (const vout_display_cfg_t*)va_arg (ap, const vout_display_cfg_t *);
761 if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
762 is_forced = (bool)va_arg (ap, int);
766 if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
768 && (cfg->display.width != vd->cfg->display.width
769 ||cfg->display.height != vd->cfg->display.height)
770 && vout_window_SetSize (p_sys->embed,
772 cfg->display.height))
775 vout_display_place_t place;
776 vout_display_PlacePicture (&place, source, cfg, false);
777 p_sys->width = place.width;
778 p_sys->height = place.height;
780 /* Move the picture within the window */
781 const uint32_t values[] = { place.x, place.y,
782 place.width, place.height, };
783 xcb_configure_window (p_sys->conn, p_sys->window,
784 XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y
785 | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT,
787 xcb_flush (p_sys->conn);
790 case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
792 unsigned state = va_arg (ap, unsigned);
793 return vout_window_SetState (p_sys->embed, state);
796 /* Hide the mouse. It will be send when
797 * vout_display_t::info.b_hide_mouse is false */
798 case VOUT_DISPLAY_HIDE_MOUSE:
799 xcb_change_window_attributes (p_sys->conn, p_sys->embed->handle.xid,
800 XCB_CW_CURSOR, &(uint32_t){ p_sys->cursor });
801 xcb_flush (p_sys->conn);
803 case VOUT_DISPLAY_RESET_PICTURES:
806 msg_Err (vd, "Unknown request in XCB vout display");
811 static void Manage (vout_display_t *vd)
813 vout_display_sys_t *p_sys = vd->sys;
815 ManageEvent (vd, p_sys->conn, &p_sys->visible);