GstVa.VaDisplay

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstVa.VaDisplay GstVa.VaDisplay Gst.Object->GstVa.VaDisplay

Subclasses:

GstVa.VaDisplayDrm, GstVa.VaDisplayWrapped

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

check_version (major, minor)

get_implementation ()

get_va_dpy ()

initialize ()

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

do_create_va_display ()

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

description

str

r

Vendor specific VA implementation description

va-display

int

r/w/co

VA Display handler

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

parent

Gst.Object

r

parent Gst.Object

Class Details

class GstVa.VaDisplay(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

GstVa.VaDisplayClass

It is a generic wrapper for VADisplay. To create new instances subclasses are required, depending on the display type to use (v.gr. DRM, X11, Wayland, etc.).

The purpose of this class is to be shared among pipelines via Gst.Context so all the VA processing elements will use the same display entry. Application developers can create their own subclass, based on their display, and shared it via the synced bus message for the application.

New in version 1.20.

check_version(major, minor)
Parameters:
  • major (int) – major version to check

  • minor (int) – minor version to check

Returns:

whether driver version is equal or greater than major.`minor`

Return type:

bool

New in version 1.24.

get_implementation()
Returns:

GstVa.VaImplementation.

Return type:

GstVa.VaImplementation

Get the the GstVa.VaImplementation type of self.

New in version 1.20.

get_va_dpy()
Returns:

the VA display handle.

Return type:

object or None

Get the VA display handle of the self.

New in version 1.20.

initialize()
Returns:

True if the VA driver can be initialized; False otherwise

Return type:

bool

If the display is set by the user (foreign) it is assumed that the driver is already initialized, thus this function is noop.

If the display is opened internally, this function will initialize the driver and it will set driver’s message callbacks.

NOTE: this function is supposed to be private, only used by GstVa.VaDisplay descendants.

New in version 1.20.

do_create_va_display() virtual
Returns:

The created VADisplay

Return type:

object or None

This is called when the subclass has to create the internal VADisplay.

Property Details

GstVa.VaDisplay.props.description
Name:

description

Type:

str

Default Value:

None

Flags:

READABLE

Vendor specific VA implementation description

GstVa.VaDisplay.props.va_display
Name:

va-display

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

VA Display handler