| GStreamer VA-API Plugins 1.2 Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GstVaapiPixmapX11; #define GST_VAAPI_PIXMAP_XPIXMAP (pixmap) GstVaapiPixmap * gst_vaapi_pixmap_x11_new (GstVaapiDisplay *display,GstVideoFormat format,guint width,guint height); GstVaapiPixmap * gst_vaapi_pixmap_x11_new_with_xid (GstVaapiDisplay *display,Pixmap xid); Pixmap gst_vaapi_pixmap_x11_get_xid (GstVaapiPixmapX11 *pixmap); gboolean gst_vaapi_pixmap_x11_is_foreign_xid (GstVaapiPixmapX11 *pixmap);
#define GST_VAAPI_PIXMAP_XPIXMAP(pixmap)
Macro that evaluates to the underlying X11 Pixmap of pixmap
|
a GstVaapiPixmap |
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.
|
a GstVaapiDisplay |
|
the requested pixmap format |
|
the requested pixmap width, in pixels |
|
the requested windo height, in pixels |
Returns : |
the newly allocated GstVaapiPixmap object |
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.
|
a GstVaapiDisplay |
|
an X11 Pixmap id |
Returns : |
the newly allocated GstVaapiPixmap object |
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().
|
a GstVaapiPixmapX11 |
Returns : |
the underlying X11 Pixmap bound to pixmap. |
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().
|
a GstVaapiPixmapX11 |
Returns : |
TRUE if the underlying X pixmap is owned by the
caller (foreign pixmap) |