xrt/tracking: use int64_t to represent timestamps

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
This commit is contained in:
Simon Zeni 2024-08-01 15:46:51 -04:00 committed by Rylie Pavlik
parent d67ab7845f
commit 8976e677b2
4 changed files with 10 additions and 10 deletions

View file

@ -126,7 +126,7 @@ struct t_hand_tracking_sync
struct xrt_frame *right_frame,
struct xrt_hand_joint_set *out_left_hand,
struct xrt_hand_joint_set *out_right_hand,
uint64_t *out_timestamp_ns);
int64_t *out_timestamp_ns);
/*!
* Destroy this hand tracker sync object.
@ -145,7 +145,7 @@ t_ht_sync_process(struct t_hand_tracking_sync *ht_sync,
struct xrt_frame *right_frame,
struct xrt_hand_joint_set *out_left_hand,
struct xrt_hand_joint_set *out_right_hand,
uint64_t *out_timestamp_ns)
int64_t *out_timestamp_ns)
{
ht_sync->process(ht_sync, left_frame, right_frame, out_left_hand, out_right_hand, out_timestamp_ns);
}
@ -179,9 +179,9 @@ struct t_hand_tracking_async
void (*get_hand)(struct t_hand_tracking_async *ht_async,
enum xrt_input_name name,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_hand_joint_set *out_value,
uint64_t *out_timestamp_ns);
int64_t *out_timestamp_ns);
};
struct t_hand_tracking_async *

View file

@ -703,7 +703,7 @@ HandTracking::cCallbackProcess(struct t_hand_tracking_sync *ht_sync,
struct xrt_frame *right_frame,
struct xrt_hand_joint_set *out_left_hand,
struct xrt_hand_joint_set *out_right_hand,
uint64_t *out_timestamp_ns)
int64_t *out_timestamp_ns)
{
XRT_TRACE_MARKER();

View file

@ -355,7 +355,7 @@ public:
struct xrt_frame *right_frame,
struct xrt_hand_joint_set *out_left_hand,
struct xrt_hand_joint_set *out_right_hand,
uint64_t *out_timestamp_ns);
int64_t *out_timestamp_ns);
static void
cCallbackDestroy(t_hand_tracking_sync *ht_sync);

View file

@ -44,7 +44,7 @@ struct ht_async_impl
struct
{
struct xrt_hand_joint_set hands[2];
uint64_t timestamp;
int64_t timestamp;
} working;
struct
@ -52,7 +52,7 @@ struct ht_async_impl
struct os_mutex mutex;
struct xrt_hand_joint_set hands[2];
struct m_relation_history *relation_hist[2];
uint64_t timestamp;
int64_t timestamp;
} present;
// in here:
@ -259,9 +259,9 @@ ht_async_destroy(struct xrt_frame_node *node)
static void
ht_async_get_hand(struct t_hand_tracking_async *ht_async,
enum xrt_input_name name,
uint64_t desired_timestamp_ns,
int64_t desired_timestamp_ns,
struct xrt_hand_joint_set *out_value,
uint64_t *out_timestamp_ns)
int64_t *out_timestamp_ns)
{
struct ht_async_impl *hta = ht_async_impl(ht_async);
assert(name == XRT_INPUT_GENERIC_HAND_TRACKING_LEFT || name == XRT_INPUT_GENERIC_HAND_TRACKING_RIGHT);