29struct m_relation_history;
51m_relation_history_create(
struct m_relation_history **rh);
63m_relation_history_push(
struct m_relation_history *rh,
struct xrt_space_relation const *in_relation, int64_t timestamp);
75m_relation_history_push_or_update(
struct m_relation_history *rh,
90m_relation_history_push_with_motion_estimation(
struct m_relation_history *rh,
103m_relation_history_get(
const struct m_relation_history *rh,
104 int64_t at_timestamp_ns,
119m_relation_history_get_latest(
const struct m_relation_history *rh,
120 int64_t *out_time_ns,
138m_relation_history_get_exact(
const struct m_relation_history *rh,
139 int64_t at_timestamp_ns,
160m_relation_history_get_nearest(
const struct m_relation_history *rh,
161 int64_t at_timestamp_ns,
163 int64_t *out_time_ns,
172m_relation_history_get_size(
const struct m_relation_history *rh);
180m_relation_history_clear(
struct m_relation_history *rh);
188m_relation_history_destroy(
struct m_relation_history **rh);
m_relation_history_result
Describes how the resulting space relation for the desired time stamp was generated.
Definition m_relation_history.h:37
@ M_RELATION_HISTORY_RESULT_INTERPOLATED
The desired timestamp was between two entries.
Definition m_relation_history.h:40
@ M_RELATION_HISTORY_RESULT_PREDICTED
The desired timestamp was newer than the most recent entry.
Definition m_relation_history.h:41
@ M_RELATION_HISTORY_RESULT_REVERSE_PREDICTED
The desired timestamp was older than the oldest entry.
Definition m_relation_history.h:42
@ M_RELATION_HISTORY_RESULT_INVALID
The supplied timestamp was invalid (0) or buffer was empty.
Definition m_relation_history.h:38
@ M_RELATION_HISTORY_RESULT_EXACT
The exact desired timestamp was found.
Definition m_relation_history.h:39
A relation with two spaces, includes velocity and acceleration.
Definition xrt_defines.h:726
Common defines and enums for XRT.