Top | ![]() |
![]() |
![]() |
![]() |
#define GST_VAAPI_PIXMAP_XPIXMAP(pixmap)
Macro that evaluates to the underlying X11 Pixmap of pixmap
GstVaapiPixmap * gst_vaapi_pixmap_x11_new (GstVaapiDisplay *display
,GstVideoFormat format
,guint width
,guint height
);
Creates a pixmap with the specified format
, width
and
height
. The pixmap will be attached to the display
.
GstVaapiPixmap * gst_vaapi_pixmap_x11_new_with_xid (GstVaapiDisplay *display
,Pixmap xid
);
Creates a GstVaapiPixmap using the X11 Pixmap xid
. The caller
still owns the pixmap and must call XFreePixmap()
when all
GstVaapiPixmap references are released. Doing so too early can
yield undefined behaviour.
Pixmap
gst_vaapi_pixmap_x11_get_xid (GstVaapiPixmapX11 *pixmap
);
Returns the underlying X11 Pixmap that was created by
gst_vaapi_pixmap_x11_new()
or that was bound with
gst_vaapi_pixmap_x11_new_with_xid()
.
gboolean
gst_vaapi_pixmap_x11_is_foreign_xid (GstVaapiPixmapX11 *pixmap
);
Checks whether the pixmap
XID was created by gst_vaapi_pixmap_x11_new()
or was bound with gst_vaapi_pixmap_x11_new_with_xid()
.