VA-API graphics driver enumeration

VA-API graphics driver enumeration — Get information about the system's VA-API drivers

Functions

Properties

gboolean is-extra Read / Write / Construct Only
SrtVaApiVersion version Read / Write / Construct Only

Types and Values

Object Hierarchy

    GEnum
    ╰── SrtVaApiVersion
    GObject
    ╰── SrtBaseGraphicsModule
        ╰── SrtVaApiDriver

Includes

#include <steam-runtime-tools/steam-runtime-tools.h>

Description

SrtVaApiDriver is an opaque object representing the metadata describing a VA-API driver. This is a reference-counted object: use g_object_ref() and g_object_unref() to manage its lifecycle.

Functions

srt_va_api_driver_get_library_path ()

const gchar *
srt_va_api_driver_get_library_path (SrtVaApiDriver *self);

Return the library path for this VA-API driver.

Parameters

self

The VA-API driver

 

Returns

“library-path”.

[type filename][transfer none]


srt_va_api_driver_is_extra ()

gboolean
srt_va_api_driver_is_extra (SrtVaApiDriver *self);

Return a gboolean that indicates if the VA-API is in an unusual position.

Parameters

self

The VA-API driver

 

Returns

TRUE if the VA-API driver is in an unusual position.


srt_va_api_driver_resolve_library_path ()

gchar *
srt_va_api_driver_resolve_library_path
                               (SrtVaApiDriver *self);

Return the absolute library path for this VA-API driver. If srt_va_api_driver_get_library_path() is already an absolute path, a copy of the same value will be returned.

Parameters

self

The VA-API driver

 

Returns

A copy of “resolved-library-path”. Free with g_free().

[type filename][transfer full]


srt_va_api_driver_get_version ()

SrtVaApiVersion
srt_va_api_driver_get_version (SrtVaApiDriver *self);

Returns the libva version that self is compatible with.

Parameters

self

The VA-API driver

 

Returns

The libva version, or SRT_VA_API_VERSION_UNKNOWN if unsure.

Types and Values

enum SrtVaApiVersion

The libva version a particular driver is compatible with.

Members

SRT_VA_API_VERSION_UNKNOWN

Unknown VA-API version

 

SRT_VA_API_VERSION_LIBVA1

libva version 1.x (VA-API version 0.x, SONAME libva.so.1)

 

SRT_VA_API_VERSION_LIBVA2

libva version 2.x (VA-API version 1.x, SONAME libva.so.2)

 

Property Details

The “is-extra” property

  “is-extra”                 gboolean

TRUE if the driver is located in an unusual path.

Flags: Read / Write / Construct Only

Default value: FALSE


The “version” property

  “version”                  SrtVaApiVersion

The libva version that the DRI driver is compatible with.

Flags: Read / Write / Construct Only

Default value: SRT_VA_API_VERSION_UNKNOWN