Monado OpenXR Runtime
Loading...
Searching...
No Matches
t_timing_event_sink Interface Reference

A time sync sink is a component that receives timing events from a stable timing source, such as the exposure of a camera frame. More...

#include <tracking/t_time_sync.h>

Collaboration diagram for t_timing_event_sink:

Static Public Member Functions

static XRT_NONNULL_ALL void t_timing_event_sink_push_timing_event (struct t_timing_event_sink *sink, const struct t_timing_event *event)
 Helper function for t_timing_event_sink::push_timing_event.
 

Data Fields

void(* push_timing_event )(struct t_timing_event_sink *sink, const struct t_timing_event *event)
 A function that the timing event sink will call to push a new timing event.
 

Detailed Description

A time sync sink is a component that receives timing events from a stable timing source, such as the exposure of a camera frame.

This allows the sink to attempt to synchronize its internal timing to the source. This is most useful for devices such as the PS Sense controllers, or the WMR controllers, which need to synchronize their LED flashes with a camera.

Objects implementing t_timing_event_sink should likely also implement xrt_frame_node and live within the lifetime of an xrt_frame_context.

Member Function Documentation

◆ t_timing_event_sink_push_timing_event()

static XRT_NONNULL_ALL void t_timing_event_sink_push_timing_event ( struct t_timing_event_sink sink,
const struct t_timing_event event 
)
inlinestatic

Helper function for t_timing_event_sink::push_timing_event.

A function that the timing event sink will call to push a new timing event.

Parameters
sinkThe sink to push the timing event to.
eventThe timing event being pushed.

References push_timing_event.

Field Documentation

◆ push_timing_event

void(* t_timing_event_sink::push_timing_event) (struct t_timing_event_sink *sink, const struct t_timing_event *event)

A function that the timing event sink will call to push a new timing event.

Parameters
sinkThe sink to push the timing event to.
eventThe timing event being pushed.

Referenced by t_timing_event_sink_push_timing_event().


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