Monado OpenXR Runtime
Loading...
Searching...
No Matches
vp2_config.cpp File Reference

Code to parse and handle the Vive Pro 2 configuration data. More...

#include "util/u_json.hpp"
#include "util/u_logging.h"
#include "math/m_api.h"
#include "vp2_config.h"
#include <string.h>
#include <math.h>
Include dependency graph for vp2_config.cpp:

Functions

static const char * vp2_colour_name (int colour)
 
static void vp2_eye_default_params (vp2_eye_distortion &eye, bool left)
 
static bool vp2_eye_parse (JSONNode &node, vp2_eye_distortion &eye, bool left)
 
enum vp2_distortion_model vp2_string_to_distortion_model (const char *model_str)
 
static void vp2_eye_compute_warp_parameters (vp2_eye_distortion &eye, xrt_vec2_i32 &resolution)
 
bool vp2_config_parse (const char *config_data, size_t config_size, vp2_config *out_config)
 
static void vp2_to_lens_pixels (vp2_config *config, int eye, const xrt_vec2 *in_uv, xrt_vec2 *out_pixels)
 
static void vp2_grow_remap (vp2_eye_distortion &dist, int eye, xrt_vec2 *inout_uv)
 
static bool vp2_strengthen_high_order (vp2_eye_distortion &dist, int channel, xrt_vec2 *inout_pixels)
 
static bool vp2_distort_internal (vp2_config *config, int eye, int channel, const xrt_vec2 *in, xrt_vec2 *out)
 
bool vp2_distort (struct vp2_config *config, int eye, const struct xrt_vec2 *in, struct xrt_uv_triplet *out_result)
 
void vp2_get_fov (vp2_config *config, int eye, xrt_fov *out_fov)
 

Variables

static vp2_eye_distortion default_distortions [2]
 

Detailed Description

Code to parse and handle the Vive Pro 2 configuration data.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com