VDPAU graphics driver enumeration

VDPAU graphics driver enumeration — Get information about the system's VDPAU drivers

Functions

Properties

gboolean is-extra Read / Write / Construct Only
gchar * library-link Read / Write / Construct Only
gchar * library-path Read / Write / Construct Only
gchar * resolved-library-path Read

Object Hierarchy

    GObject
    ╰── SrtVdpauDriver

Includes

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

Description

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

Functions

srt_vdpau_driver_get_library_path ()

const gchar *
srt_vdpau_driver_get_library_path (SrtVdpauDriver *self);

Return the library path for this VDPAU driver.

Parameters

self

The VDPAU driver

 

Returns

“library-path”.

[type filename][transfer none]


srt_vdpau_driver_get_library_link ()

const gchar *
srt_vdpau_driver_get_library_link (SrtVdpauDriver *self);

Return the content of the symbolic link for this VDPAU driver or NULL if the library path is not a symlink.

Parameters

self

The VDPAU driver

 

Returns

“library-link”.

[type filename][transfer none][nullable]


srt_vdpau_driver_is_extra ()

gboolean
srt_vdpau_driver_is_extra (SrtVdpauDriver *self);

Return a gboolean that indicates if the VDPAU is in an unusual position.

Parameters

self

The VDPAU driver

 

Returns

TRUE if the VDPAU driver is in an unusual position.


srt_vdpau_driver_resolve_library_path ()

gchar *
srt_vdpau_driver_resolve_library_path (SrtVdpauDriver *self);

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

Parameters

self

The VDPAU driver

 

Returns

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

[type filename][transfer full]

Types and Values

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 “library-link” property

  “library-link”             gchar *

Contents of the symbolik link of the VDPAU driver library.

Flags: Read / Write / Construct Only

Default value: NULL


The “library-path” property

  “library-path”             gchar *

Path to the VDPAU driver library. It may be absolute (e.g. /usr/lib/vdpau/libvdpau_radeonsi.so) or relative (e.g. custom/vdpau/libvdpau_radeonsi.so). If absolute, it is set as though the sysroot, if any, was the root.

Flags: Read / Write / Construct Only

Default value: NULL


The “resolved-library-path” property

  “resolved-library-path”    gchar *

Absolute path to the VDPAU driver library. This is similar to 'library-path', but is guaranteed to be an absolute path (e.g. /usr/lib/vdpau/libvdpau_radeonsi.so) as though the sysroot, if any, was the root.

Flags: Read

Default value: NULL