• Home
  • Raw
  • Download

Lines Matching refs:xwindow

202     GstXWindow * xwindow, GstVideoRectangle rect)  in gst_x_image_sink_xwindow_draw_borders()  argument
205 g_return_if_fail (xwindow != NULL); in gst_x_image_sink_xwindow_draw_borders()
207 XSetForeground (ximagesink->xcontext->disp, xwindow->gc, in gst_x_image_sink_xwindow_draw_borders()
212 XFillRectangle (ximagesink->xcontext->disp, xwindow->win, xwindow->gc, in gst_x_image_sink_xwindow_draw_borders()
213 0, 0, rect.x, xwindow->height); in gst_x_image_sink_xwindow_draw_borders()
217 if ((rect.x + rect.w) < xwindow->width) { in gst_x_image_sink_xwindow_draw_borders()
218 XFillRectangle (ximagesink->xcontext->disp, xwindow->win, xwindow->gc, in gst_x_image_sink_xwindow_draw_borders()
219 rect.x + rect.w, 0, xwindow->width, xwindow->height); in gst_x_image_sink_xwindow_draw_borders()
224 XFillRectangle (ximagesink->xcontext->disp, xwindow->win, xwindow->gc, in gst_x_image_sink_xwindow_draw_borders()
225 0, 0, xwindow->width, rect.y); in gst_x_image_sink_xwindow_draw_borders()
229 if ((rect.y + rect.h) < xwindow->height) { in gst_x_image_sink_xwindow_draw_borders()
230 XFillRectangle (ximagesink->xcontext->disp, xwindow->win, xwindow->gc, in gst_x_image_sink_xwindow_draw_borders()
231 0, rect.y + rect.h, xwindow->width, xwindow->height); in gst_x_image_sink_xwindow_draw_borders()
250 if (G_UNLIKELY (ximagesink->xwindow == NULL)) { in gst_x_image_sink_ximage_put()
298 dst.w = ximagesink->xwindow->width; in gst_x_image_sink_ximage_put()
299 dst.h = ximagesink->xwindow->height; in gst_x_image_sink_ximage_put()
306 gst_x_image_sink_xwindow_draw_borders (ximagesink, ximagesink->xwindow, in gst_x_image_sink_ximage_put()
315 ximagesink->xwindow->width, ximagesink->xwindow->height); in gst_x_image_sink_ximage_put()
316 XShmPutImage (ximagesink->xcontext->disp, ximagesink->xwindow->win, in gst_x_image_sink_ximage_put()
317 ximagesink->xwindow->gc, mem->ximage, src.x, src.y, result.x, result.y, in gst_x_image_sink_ximage_put()
325 ximagesink->xwindow->width, ximagesink->xwindow->height); in gst_x_image_sink_ximage_put()
326 XPutImage (ximagesink->xcontext->disp, ximagesink->xwindow->win, in gst_x_image_sink_ximage_put()
327 ximagesink->xwindow->gc, mem->ximage, src.x, src.y, result.x, result.y, in gst_x_image_sink_ximage_put()
379 GstXWindow * xwindow, const gchar * media_title) in gst_x_image_sink_xwindow_set_title() argument
385 if (xwindow) { in gst_x_image_sink_xwindow_set_title()
387 if (xwindow->internal) { in gst_x_image_sink_xwindow_set_title()
413 XChangeProperty (ximagesink->xcontext->disp, xwindow->win, in gst_x_image_sink_xwindow_set_title()
418 XSetWMName (ximagesink->xcontext->disp, xwindow->win, &xproperty); in gst_x_image_sink_xwindow_set_title()
428 XSetClassHint (ximagesink->xcontext->disp, xwindow->win, hint); in gst_x_image_sink_xwindow_set_title()
440 GstXWindow *xwindow = NULL; in gst_x_image_sink_xwindow_new() local
445 xwindow = g_new0 (GstXWindow, 1); in gst_x_image_sink_xwindow_new()
447 xwindow->width = width; in gst_x_image_sink_xwindow_new()
448 xwindow->height = height; in gst_x_image_sink_xwindow_new()
449 xwindow->internal = TRUE; in gst_x_image_sink_xwindow_new()
453 xwindow->win = XCreateSimpleWindow (ximagesink->xcontext->disp, in gst_x_image_sink_xwindow_new()
459 XSetWindowBackgroundPixmap (ximagesink->xcontext->disp, xwindow->win, None); in gst_x_image_sink_xwindow_new()
462 gst_x_image_sink_xwindow_set_title (ximagesink, xwindow, NULL); in gst_x_image_sink_xwindow_new()
467 XSelectInput (ximagesink->xcontext->disp, xwindow->win, ExposureMask | in gst_x_image_sink_xwindow_new()
475 (void) XSetWMProtocols (ximagesink->xcontext->disp, xwindow->win, in gst_x_image_sink_xwindow_new()
479 xwindow->gc = XCreateGC (ximagesink->xcontext->disp, xwindow->win, in gst_x_image_sink_xwindow_new()
482 XMapRaised (ximagesink->xcontext->disp, xwindow->win); in gst_x_image_sink_xwindow_new()
488 gst_x_image_sink_xwindow_decorate (ximagesink, xwindow); in gst_x_image_sink_xwindow_new()
491 xwindow->win); in gst_x_image_sink_xwindow_new()
493 return xwindow; in gst_x_image_sink_xwindow_new()
499 GstXWindow * xwindow) in gst_x_image_sink_xwindow_destroy() argument
501 g_return_if_fail (xwindow != NULL); in gst_x_image_sink_xwindow_destroy()
507 if (xwindow->internal) in gst_x_image_sink_xwindow_destroy()
508 XDestroyWindow (ximagesink->xcontext->disp, xwindow->win); in gst_x_image_sink_xwindow_destroy()
510 XSelectInput (ximagesink->xcontext->disp, xwindow->win, 0); in gst_x_image_sink_xwindow_destroy()
512 XFreeGC (ximagesink->xcontext->disp, xwindow->gc); in gst_x_image_sink_xwindow_destroy()
518 g_free (xwindow); in gst_x_image_sink_xwindow_destroy()
531 if (G_UNLIKELY (ximagesink->xwindow == NULL)) { in gst_x_image_sink_xwindow_update_geometry()
537 ximagesink->xwindow->win, &attr); in gst_x_image_sink_xwindow_update_geometry()
540 reconfigure = (ximagesink->xwindow->width != attr.width) in gst_x_image_sink_xwindow_update_geometry()
541 || (ximagesink->xwindow->height != attr.height); in gst_x_image_sink_xwindow_update_geometry()
542 ximagesink->xwindow->width = attr.width; in gst_x_image_sink_xwindow_update_geometry()
543 ximagesink->xwindow->height = attr.height; in gst_x_image_sink_xwindow_update_geometry()
554 GstXWindow * xwindow) in gst_x_image_sink_xwindow_clear() argument
556 g_return_if_fail (xwindow != NULL); in gst_x_image_sink_xwindow_clear()
561 XSetForeground (ximagesink->xcontext->disp, xwindow->gc, in gst_x_image_sink_xwindow_clear()
564 XFillRectangle (ximagesink->xcontext->disp, xwindow->win, xwindow->gc, in gst_x_image_sink_xwindow_clear()
565 0, 0, xwindow->width, xwindow->height); in gst_x_image_sink_xwindow_clear()
590 ximagesink->xwindow->win, PointerMotionMask, &e)) { in gst_x_image_sink_handle_xevents()
622 ximagesink->xwindow->win, in gst_x_image_sink_handle_xevents()
681 ximagesink->xwindow->win, ExposureMask | StructureNotifyMask, &e)) { in gst_x_image_sink_handle_xevents()
723 gst_x_image_sink_xwindow_destroy (ximagesink, ximagesink->xwindow); in gst_x_image_sink_handle_xevents()
724 ximagesink->xwindow = NULL; in gst_x_image_sink_handle_xevents()
747 if (ximagesink->xwindow) { in gst_x_image_sink_event_thread()
1071 if (ximagesink->xwindow && ximagesink->xwindow->width) { in gst_x_image_sink_getcaps()
1081 gst_structure_set (s0, "width", G_TYPE_INT, ximagesink->xwindow->width, in gst_x_image_sink_getcaps()
1082 "height", G_TYPE_INT, ximagesink->xwindow->height, NULL); in gst_x_image_sink_getcaps()
1206 if (!ximagesink->xwindow) { in gst_x_image_sink_setcaps()
1219 if (!ximagesink->xwindow) { in gst_x_image_sink_setcaps()
1220 ximagesink->xwindow = gst_x_image_sink_xwindow_new (ximagesink, in gst_x_image_sink_setcaps()
1303 if (ximagesink->xwindow) in gst_x_image_sink_change_state()
1304 gst_x_image_sink_xwindow_clear (ximagesink, ximagesink->xwindow); in gst_x_image_sink_change_state()
1480 gst_x_image_sink_xwindow_set_title (ximagesink, ximagesink->xwindow, in gst_x_image_sink_event()
1570 if (!ximagesink->xwindow) { in gst_x_image_sink_navigation_send_event()
1576 x_offset = ximagesink->xwindow->width - GST_VIDEO_SINK_WIDTH (ximagesink); in gst_x_image_sink_navigation_send_event()
1577 y_offset = ximagesink->xwindow->height - GST_VIDEO_SINK_HEIGHT (ximagesink); in gst_x_image_sink_navigation_send_event()
1615 GstXWindow *xwindow = NULL; in gst_x_image_sink_set_window_handle() local
1623 if (ximagesink->xwindow && (xwindow_id == ximagesink->xwindow->win)) { in gst_x_image_sink_set_window_handle()
1637 if (ximagesink->xwindow) { in gst_x_image_sink_set_window_handle()
1638 gst_x_image_sink_xwindow_destroy (ximagesink, ximagesink->xwindow); in gst_x_image_sink_set_window_handle()
1639 ximagesink->xwindow = NULL; in gst_x_image_sink_set_window_handle()
1647 xwindow = gst_x_image_sink_xwindow_new (ximagesink, in gst_x_image_sink_set_window_handle()
1652 xwindow = g_new0 (GstXWindow, 1); in gst_x_image_sink_set_window_handle()
1654 xwindow->win = xwindow_id; in gst_x_image_sink_set_window_handle()
1658 xwindow->internal = FALSE; in gst_x_image_sink_set_window_handle()
1660 XSelectInput (ximagesink->xcontext->disp, xwindow->win, ExposureMask | in gst_x_image_sink_set_window_handle()
1665 xwindow->gc = XCreateGC (ximagesink->xcontext->disp, xwindow->win, 0, NULL); in gst_x_image_sink_set_window_handle()
1669 if (xwindow) { in gst_x_image_sink_set_window_handle()
1670 ximagesink->xwindow = xwindow; in gst_x_image_sink_set_window_handle()
1697 if (G_UNLIKELY (!ximagesink->xwindow)) { in gst_x_image_sink_set_event_handling()
1705 if (ximagesink->xwindow->internal) { in gst_x_image_sink_set_event_handling()
1706 XSelectInput (ximagesink->xcontext->disp, ximagesink->xwindow->win, in gst_x_image_sink_set_event_handling()
1710 XSelectInput (ximagesink->xcontext->disp, ximagesink->xwindow->win, in gst_x_image_sink_set_event_handling()
1715 XSelectInput (ximagesink->xcontext->disp, ximagesink->xwindow->win, 0); in gst_x_image_sink_set_event_handling()
1830 if (ximagesink->xwindow) in gst_x_image_sink_get_property()
1831 g_value_set_uint64 (value, ximagesink->xwindow->width); in gst_x_image_sink_get_property()
1836 if (ximagesink->xwindow) in gst_x_image_sink_get_property()
1837 g_value_set_uint64 (value, ximagesink->xwindow->height); in gst_x_image_sink_get_property()
1875 if (ximagesink->xwindow) { in gst_x_image_sink_reset()
1876 gst_x_image_sink_xwindow_clear (ximagesink, ximagesink->xwindow); in gst_x_image_sink_reset()
1877 gst_x_image_sink_xwindow_destroy (ximagesink, ximagesink->xwindow); in gst_x_image_sink_reset()
1878 ximagesink->xwindow = NULL; in gst_x_image_sink_reset()
1915 ximagesink->xwindow = NULL; in gst_x_image_sink_init()