GstVaapiDisplayX11

GstVaapiDisplayX11 — VA/X11 display abstraction

Synopsis

                    GstVaapiDisplayX11;
                    GstVaapiDisplayX11Class;
GstVaapiDisplay *   gst_vaapi_display_x11_new           (const gchar *display_name);
GstVaapiDisplay *   gst_vaapi_display_x11_new_with_display
                                                        (Display *x11_display);
Display *           gst_vaapi_display_x11_get_display   (GstVaapiDisplayX11 *display);
int                 gst_vaapi_display_x11_get_screen    (GstVaapiDisplayX11 *display);

Object Hierarchy

  GObject
   +----GstVaapiDisplay
         +----GstVaapiDisplayX11
               +----GstVaapiDisplayGLX

Properties

  "display-name"             gchar*                : Read / Write / Construct Only
  "synchronous"              gboolean              : Read / Write
  "x11-display"              gpointer              : Read / Write / Construct Only
  "x11-screen"               gint                  : Read / Write / Construct Only

Description

Details

GstVaapiDisplayX11

typedef struct _GstVaapiDisplayX11 GstVaapiDisplayX11;

VA/X11 display wrapper.


GstVaapiDisplayX11Class

typedef struct {
} GstVaapiDisplayX11Class;

VA/X11 display wrapper clas.


gst_vaapi_display_x11_new ()

GstVaapiDisplay *   gst_vaapi_display_x11_new           (const gchar *display_name);

Opens an X11 Display using display_name and returns a newly allocated GstVaapiDisplay object. The X11 display will be cloed when the reference count of the object reaches zero.

display_name :

the X11 display name

Returns :

a newly allocated GstVaapiDisplay object

gst_vaapi_display_x11_new_with_display ()

GstVaapiDisplay *   gst_vaapi_display_x11_new_with_display
                                                        (Display *x11_display);

Creates a GstVaapiDisplay based on the X11 x11_display display. The caller still owns the display and must call XCloseDisplay() when all GstVaapiDisplay references are released. Doing so too early can yield undefined behaviour.

x11_display :

an X11 Display

Returns :

a newly allocated GstVaapiDisplay object

gst_vaapi_display_x11_get_display ()

Display *           gst_vaapi_display_x11_get_display   (GstVaapiDisplayX11 *display);

Returns the underlying X11 Display that was created by gst_vaapi_display_x11_new() or that was bound from gst_vaapi_display_x11_new_with_display().

display :

a GstVaapiDisplayX11

Returns :

the X11 Display attached to display

gst_vaapi_display_x11_get_screen ()

int                 gst_vaapi_display_x11_get_screen    (GstVaapiDisplayX11 *display);

Returns the default X11 screen that was created by gst_vaapi_display_x11_new() or that was bound from gst_vaapi_display_x11_new_with_display().

display :

a GstVaapiDisplayX11

Returns :

the X11 Display attached to display

Property Details

The "display-name" property

  "display-name"             gchar*                : Read / Write / Construct Only

The X11 display name.

Default value: NULL


The "synchronous" property

  "synchronous"              gboolean              : Read / Write

When enabled, runs the X display in synchronous mode. Note that this is used only for debugging.

Default value: FALSE


The "x11-display" property

  "x11-display"              gpointer              : Read / Write / Construct Only

The X11 Display that was created by gst_vaapi_display_x11_new() or that was bound from gst_vaapi_display_x11_new_with_display().


The "x11-screen" property

  "x11-screen"               gint                  : Read / Write / Construct Only

The X11 screen that was created by gst_vaapi_display_x11_new() or that was bound from gst_vaapi_display_x11_new_with_display().

Allowed values: >= 0

Default value: 0