Monado OpenXR Runtime
Loading...
Searching...
No Matches
t_blobwatch Struct Reference
Collaboration diagram for t_blobwatch:

Static Public Member Functions

static XRT_NONNULL_ALL void t_blobwatch_mark_blob_device (struct t_blobwatch *tbw, const struct t_blob_observation *tbo, t_constellation_device_id_t device_id)
 Helper function for t_blobwatch::mark_blob_device.
 
static XRT_NONNULL_ALL void t_blobwatch_destroy (struct t_blobwatch **tbw_ptr)
 Helper function for t_blobwatch::destroy.
 

Data Fields

void(* mark_blob_device )(struct t_blobwatch *tbw, const struct t_blob_observation *tbo, t_constellation_device_id_t device_id)
 Notify the blobwatch that the blobs in the given observation with the correct ID set are associated with the given device.
 
void(* destroy )(struct t_blobwatch *tbw)
 Destroy this blobwatch.
 

Member Function Documentation

◆ t_blobwatch_destroy()

static XRT_NONNULL_ALL void t_blobwatch_destroy ( struct t_blobwatch **  tbw_ptr)
inlinestatic

Helper function for t_blobwatch::destroy.

Handles nulls, sets your pointer to null.

References destroy.

◆ t_blobwatch_mark_blob_device()

static XRT_NONNULL_ALL void t_blobwatch_mark_blob_device ( struct t_blobwatch tbw,
const struct t_blob_observation tbo,
t_constellation_device_id_t  device_id 
)
inlinestatic

Helper function for t_blobwatch::mark_blob_device.

Notify the blobwatch that the blobs in the given observation with the correct ID set are associated with the given device.

The blobwatch can use this information to track which blobs are associated with which devices across frames, and to provide this information to the tracker across frames to save it from doing that work again.

Parameters
[in]tbwThe blobwatch to mark the blobs for.
[in]tboThe observation containing the blobs to mark. The blobwatch will look at the blob IDs and the matched_device_id field to determine which blobs internally to mark with the given device ID.
[in]device_idThe device ID to mark

References mark_blob_device.

Field Documentation

◆ destroy

void(* t_blobwatch::destroy) (struct t_blobwatch *tbw)

Destroy this blobwatch.

Referenced by t_blobwatch_destroy().

◆ mark_blob_device

void(* t_blobwatch::mark_blob_device) (struct t_blobwatch *tbw, const struct t_blob_observation *tbo, t_constellation_device_id_t device_id)

Notify the blobwatch that the blobs in the given observation with the correct ID set are associated with the given device.

The blobwatch can use this information to track which blobs are associated with which devices across frames, and to provide this information to the tracker across frames to save it from doing that work again.

Parameters
[in]tbwThe blobwatch to mark the blobs for.
[in]tboThe observation containing the blobs to mark. The blobwatch will look at the blob IDs and the matched_device_id field to determine which blobs internally to mark with the given device ID.
[in]device_idThe device ID to mark

Referenced by t_blobwatch_mark_blob_device().


The documentation for this struct was generated from the following file: