Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_cardboard_distortion_arguments Struct Reference

These are the values that you need to supply to the distortion code to setup a u_cardboard_distortion properly. More...

#include <util/u_distortion.h>

Collaboration diagram for u_cardboard_distortion_arguments:

Data Fields

float distortion_k [5]
 
struct { 
 
   uint32_t   w_pixels 
 
   uint32_t   h_pixels 
 
   float   w_meters 
 
   float   h_meters 
 
screen 
 
float inter_lens_distance_meters
 Distances between the lenses in meters.
 
float screen_to_lens_distance_meters
 The distance to the lens from the screen, used to calculate calculate tanangle of various distances on the screen.
 
float tray_to_lens_distance_meters
 The distance from the tray (the bottom of the screen) to the lens center on the Y axis.
 
struct xrt_fov fov
 Fov values that the cardboard configuration has given us.
 
enum u_cardboard_vertical_alignment vertical_alignment
 The vertical screen alignment.
 

Detailed Description

These are the values that you need to supply to the distortion code to setup a u_cardboard_distortion properly.

Field Documentation

◆ fov

struct xrt_fov u_cardboard_distortion_arguments::fov

Fov values that the cardboard configuration has given us.

Referenced by u_distortion_cardboard_calculate().

◆ inter_lens_distance_meters

float u_cardboard_distortion_arguments::inter_lens_distance_meters

Distances between the lenses in meters.

Referenced by u_distortion_cardboard_calculate().

◆ screen_to_lens_distance_meters

float u_cardboard_distortion_arguments::screen_to_lens_distance_meters

The distance to the lens from the screen, used to calculate calculate tanangle of various distances on the screen.

Referenced by u_distortion_cardboard_calculate().

◆ tray_to_lens_distance_meters

float u_cardboard_distortion_arguments::tray_to_lens_distance_meters

The distance from the tray (the bottom of the screen) to the lens center on the Y axis.

◆ vertical_alignment

enum u_cardboard_vertical_alignment u_cardboard_distortion_arguments::vertical_alignment

The vertical screen alignment.


The documentation for this struct was generated from the following file: