Monado OpenXR Runtime
ns_hmd.h File Reference

Interface between North Star distortion and HMD code. More...

#include "math/m_api.h"
#include "util/u_json.h"
#include "util/u_misc.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
#include "util/u_logging.h"
#include "os/os_threading.h"
#include "util/u_distortion_mesh.h"
#include <stdio.h>
Include dependency graph for ns_hmd.h:

Go to the source code of this file.

Data Structures

struct  ns_3d_eye
 Distortion information about an eye parsed from the configuration file. More...
 
struct  ns_3d_values
 
struct  ns_optics_config
 
struct  ns_hmd
 Information about the whole North Star headset. More...
 

Enumerations

enum  ns_distortion_type { NS_DISTORTION_TYPE_INVALID , NS_DISTORTION_TYPE_GEOMETRIC_3D , NS_DISTORTION_TYPE_POLYNOMIAL_2D , NS_DISTORTION_TYPE_MOSHI_MESHGRID }
 

Functions

static struct ns_hmdns_hmd (struct xrt_device *xdev)
 Get the North Star HMD information from a xrt_device. More...
 
void ns_3d_display_uv_to_render_uv (struct xrt_vec2 in, struct xrt_vec2 *out, struct ns_3d_eye *eye)
 Convert the display UV to the render UV using the distortion mesh. More...
 
struct ns_optical_system * ns_3d_create_optical_system (struct ns_3d_eye *eye)
 
void ns_3d_free_optical_system (struct ns_optical_system **system)
 

Detailed Description

Interface between North Star distortion and HMD code.

Author
Nova King techn.nosp@m.obab.nosp@m.oo@gm.nosp@m.ail..nosp@m.com
Moses Turner moses.nosp@m.turn.nosp@m.er@pr.nosp@m.oton.nosp@m.mail..nosp@m.com