xrt: Add xrt_device_compute_distortion helper

This commit is contained in:
Jakob Bornecrantz 2021-06-12 21:52:54 +01:00 committed by Jakob Bornecrantz
parent b805742a53
commit 4b9b1f991c

View file

@ -417,6 +417,17 @@ xrt_device_get_view_pose(struct xrt_device *xdev,
xdev->get_view_pose(xdev, eye_relation, view_index, out_pose);
}
/*!
* Helper function for @ref xrt_device::compute_distortion.
*
* @public @memberof xrt_device
*/
static inline void
xrt_device_compute_distortion(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result)
{
xdev->compute_distortion(xdev, view, u, v, result);
}
/*!
* Helper function for @ref xrt_device::destroy.
*