Monado OpenXR Runtime
Loading...
Searching...
No Matches
htc_config.h File Reference

Code to parse and handle the modern non-LH HTC configuration data. More...

#include "xrt/xrt_defines.h"
Include dependency graph for htc_config.h:

Go to the source code of this file.

Data Structures

struct  htc_eye_coefficients
 
struct  htc_wvr_coefficients
 
struct  htc_modify_coefficients
 
struct  htc_distortion_version
 
struct  htc_warp_parameters
 
struct  htc_eye_distortion
 
struct  htc_config
 

Enumerations

enum  htc_distortion_model {
  HTC_DISTORTION_MODEL_INVALID = 0 , HTC_DISTORTION_MODEL_TRADITIONAL_SIMPLE = 1 , HTC_DISTORTION_MODEL_TRADITIONAL_WITH_TANGENTIAL = 2 , HTC_DISTORTION_MODEL_NON_MODEL_SVR = 3 ,
  HTC_DISTORTION_MODEL_RATIONAL = 4 , HTC_DISTORTION_MODEL_SECTIONAL = 5 , HTC_DISTORTION_MODEL_TANGENTIAL_WEIGHT = 6 , HTC_DISTORTION_MODEL_RADIAL_TANGENTIAL_PRISM = 7 ,
  HTC_DISTORTION_MODEL_PRISM_WITH_PROGRESSIVE = 8 , HTC_DISTORTION_MODEL_STRENGTHEN_RADIAL = 9 , HTC_DISTORTION_MODEL_STRENGTHEN = 10 , HTC_DISTORTION_MODEL_STRENGTHEN_HIGH_ORDER = 11 ,
  HTC_DISTORTION_MODEL_WVR_RADIAL = 12 , HTC_DISTORTION_MODEL_RADIAL_ROTATE_MODIFY = 13
}
 

Functions

enum htc_distortion_model htc_string_to_distortion_model (const char *model_str)
 Converts a string to an HTC distortion model enum value.
 
bool htc_config_parse (const char *config_data, size_t config_size, struct htc_config *out_config)
 
bool htc_config_compute_distortion (struct htc_config *config, int eye, const struct xrt_vec2 *in, struct xrt_uv_triplet *out_result)
 
void htc_config_get_fov (struct htc_config *config, int eye, struct xrt_fov *out_fov)
 

Detailed Description

Code to parse and handle the modern non-LH HTC configuration data.

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

Function Documentation

◆ htc_string_to_distortion_model()

enum htc_distortion_model htc_string_to_distortion_model ( const char *  model_str)

Converts a string to an HTC distortion model enum value.

Parameters
model_strThe string representation of the distortion model.
Returns
The corresponding htc_distortion_model enum value, or HTC_DISTORTION_MODEL_INVALID if the string is unrecognized.

References U_LOG_W.