mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-14 10:55:23 +00:00
xrt/tracking: use int64_t to represent timestamps
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
This commit is contained in:
parent
d67ab7845f
commit
8976e677b2
|
@ -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 *
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue