GstHip.HipDevice

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GstHip.HipDevice GstHip.HipDevice Gst.Object->GstHip.HipDevice

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

class

new (vendor, device_id)

get_device_id ()

get_stream ()

get_vendor ()

is_equal (device2)

set_current ()

Virtual Methods

Inherited:

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

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

device-id

int

r

Device ID

texture2d-support

bool

r

Texture2D support

vendor

GstHip.HipVendor

r

Vendor

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

object

Gst.Object

r

Class Details

class GstHip.HipDevice(**kwargs)
Bases:

Gst.Object

Abstract:

No

Structure:

GstHip.HipDeviceClass

Opaque GstHip.HipDevice struct

New in version 1.28.

classmethod new(vendor, device_id)
Parameters:
Returns:

a GstHip.HipDevice if succeeded, otherwise None

Return type:

GstHip.HipDevice or None

Creates a new device instance with vendor and device_id.

New in version 1.28.

get_device_id()
Returns:

the device identifier

Return type:

int

Gets numeric device identifier of self

New in version 1.28.

get_stream()
Returns:

a GstHip.HipStream

Return type:

GstHip.HipStream

Gets per GstHip.HipDevice default GstHip.HipStream owned by self

New in version 1.28.

get_vendor()
Returns:

GstHip.HipVendor

Return type:

GstHip.HipVendor

Gets vendor of self

New in version 1.28.

is_equal(device2)
Parameters:

device2 (GstHip.HipDevice) – a GstHip.HipDevice

Returns:

True if both devices are associated with the same hardware device

Return type:

bool

Checks equality of self and device2

New in version 1.28.

set_current()
Returns:

True if hipSetDevice call succeeded

Return type:

bool

Sets self to current stack via hipSetDevice

New in version 1.28.

Property Details

GstHip.HipDevice.props.device_id
Name:

device-id

Type:

int

Default Value:

0

Flags:

READABLE

Device ID

GstHip.HipDevice.props.texture2d_support
Name:

texture2d-support

Type:

bool

Default Value:

False

Flags:

READABLE

Texture2D support

GstHip.HipDevice.props.vendor
Name:

vendor

Type:

GstHip.HipVendor

Default Value:

GstHip.HipVendor.UNKNOWN

Flags:

READABLE

Vendor