xrt: use int64_t for timestamps in get_view_poses

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
This commit is contained in:
Simon Zeni 2024-08-02 12:00:33 -04:00 committed by Rylie Pavlik
parent ae7dca3107
commit 68ca582362
18 changed files with 24 additions and 24 deletions

View file

@ -448,7 +448,7 @@ u_device_get_view_pose(const struct xrt_vec3 *eye_relation, uint32_t view_index,
void
u_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,
@ -506,7 +506,7 @@ u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const
void
u_device_ni_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -168,7 +168,7 @@ u_device_get_view_pose(const struct xrt_vec3 *eye_relation, uint32_t view_index,
void
u_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,
@ -225,7 +225,7 @@ u_device_ni_set_output(struct xrt_device *xdev, enum xrt_output_name name, const
void
u_device_ni_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -183,7 +183,7 @@ set_output(struct xrt_device *xdev, enum xrt_output_name name, const union xrt_o
static void
get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -387,7 +387,7 @@ ns_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
ns_hmd_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -407,7 +407,7 @@ rs_ddev_get_tracked_pose(struct xrt_device *xdev,
static void
rs_ddev_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -175,7 +175,7 @@ r_device_get_hand_tracking(struct xrt_device *xdev,
static void
r_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -84,7 +84,7 @@ r_hmd_get_hand_tracking(struct xrt_device *xdev,
static void
r_hmd_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -129,7 +129,7 @@ sample_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
sample_hmd_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -99,7 +99,7 @@ svr_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
svr_hmd_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -172,7 +172,7 @@ simulated_device_get_hand_tracking(struct xrt_device *xdev,
static void
simulated_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -523,7 +523,7 @@ survive_controller_get_hand_tracking(struct xrt_device *xdev,
static void
survive_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -137,7 +137,7 @@ twrap_slam_get_tracked_pose(struct xrt_device *xdev,
static void
twrap_slam_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -201,7 +201,7 @@ vive_device_get_tracked_pose(struct xrt_device *xdev,
static void
vive_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -436,7 +436,7 @@ struct xrt_device
*/
void (*get_view_poses)(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,
@ -644,7 +644,7 @@ xrt_device_set_output(struct xrt_device *xdev, enum xrt_output_name name, const
static inline void
xrt_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -168,7 +168,7 @@ ipc_client_device_get_body_joints(struct xrt_device *xdev,
static void
ipc_client_device_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -63,7 +63,7 @@ ipc_client_hmd(struct xrt_device *xdev)
static void
call_get_view_poses_raw(ipc_client_hmd_t *ich,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,
@ -170,7 +170,7 @@ ipc_client_hmd_get_tracked_pose(struct xrt_device *xdev,
static void
ipc_client_hmd_get_view_poses(struct xrt_device *xdev,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct xrt_space_relation *out_head_relation,
struct xrt_fov *out_fovs,

View file

@ -1911,7 +1911,7 @@ xrt_result_t
ipc_handle_device_get_view_poses(volatile struct ipc_client_state *ics,
uint32_t id,
const struct xrt_vec3 *fallback_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count)
{
struct ipc_message_channel *imc = (struct ipc_message_channel *)&ics->imc;
@ -1990,7 +1990,7 @@ xrt_result_t
ipc_handle_device_get_view_poses_2(volatile struct ipc_client_state *ics,
uint32_t id,
const struct xrt_vec3 *default_eye_relation,
uint64_t at_timestamp_ns,
int64_t at_timestamp_ns,
uint32_t view_count,
struct ipc_info_get_view_poses_2 *out_info)
{

View file

@ -419,7 +419,7 @@
"in": [
{"name": "id", "type": "uint32_t"},
{"name": "fallback_eye_relation", "type": "struct xrt_vec3"},
{"name": "at_timestamp_ns", "type": "uint64_t"},
{"name": "at_timestamp_ns", "type": "int64_t"},
{"name": "view_count", "type": "uint32_t"}
],
"out": [
@ -432,7 +432,7 @@
"in": [
{"name": "id", "type": "uint32_t"},
{"name": "fallback_eye_relation", "type": "struct xrt_vec3"},
{"name": "at_timestamp_ns", "type": "uint64_t"},
{"name": "at_timestamp_ns", "type": "int64_t"},
{"name": "view_count", "type": "uint32_t"}
],
"out": [