GstHip.HipMemory

Fields

Name

Type

Access

Description

device

GstHip.HipDevice

r/w

info

GstVideo.VideoInfo

r/w

mem

Gst.Memory

r/w

Methods

get_stream ()

get_texture (plane, filter_mode, address_mode)

set_event (event)

sync ()

Details

class GstHip.HipMemory

Opaque GstHip.HipMemory struct

New in version 1.28.

get_stream()
Returns:

a GstHip.HipStream or None if default HIP stream is in use

Return type:

GstHip.HipStream or None

Gets HIP stream object associated with self

New in version 1.28.

get_texture(plane, filter_mode, address_mode)
Parameters:
  • plane (int) – the plane index

  • filter_mode (int) – filter mode

  • address_mode (int) – address mode

Returns:

True if succeeded

texture:

a pointer to hipTextureObject_t object

Return type:

(bool, texture: object)

Creates hipTextureObject_t with given parameters

New in version 1.28.

set_event(event)
Parameters:

event (GstHip.HipEvent or None) – a GstHip.HipEvent

Sets event to self for later synchronization operation

New in version 1.28.

sync()

Waits for device synchronization by using previously configured GstHip.HipEvent via GstHip.HipMemory.set_event()

New in version 1.28.