From 4b9b1f991cb2ed6ab80fad191647ef1a1b8458e9 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 12 Jun 2021 21:52:54 +0100 Subject: [PATCH] xrt: Add xrt_device_compute_distortion helper --- src/xrt/include/xrt/xrt_device.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/xrt/include/xrt/xrt_device.h b/src/xrt/include/xrt/xrt_device.h index f4d001a90..25dce11ea 100644 --- a/src/xrt/include/xrt/xrt_device.h +++ b/src/xrt/include/xrt/xrt_device.h @@ -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. *