Monado OpenXR Runtime
Data Structures | Macros | Typedefs | Functions
u_distortion_mesh.c File Reference

Code to generate disortion meshes. More...

#include "util/u_misc.h"
#include "util/u_frame.h"
#include "util/u_debug.h"
#include "util/u_format.h"
#include "util/u_distortion_mesh.h"
#include "math/m_vec2.h"
#include <stdio.h>
#include <assert.h>
Include dependency graph for u_distortion_mesh.c:

Data Structures

struct  panotools_state
 

Macros

#define mul   m_vec2_mul
 
#define mul_scalar   m_vec2_mul_scalar
 
#define add   m_vec2_add
 
#define sub   m_vec2_sub
 
#define div   m_vec2_div
 
#define div_scalar   m_vec2_div_scalar
 
#define len   m_vec2_len
 

Typedefs

typedef void(* func_cb) (struct u_uv_generator *gen, int view, float x, float y, struct u_uv_triplet *result)
 

Functions

void run_func (struct u_uv_generator *gen, int num_views, struct xrt_hmd_parts *target, size_t num)
 
void u_distortion_mesh_from_gen (struct u_uv_generator *gen, int num_views, struct xrt_hmd_parts *target)
 Given a u_uv_generator generates num_views meshes, populates target. More...
 
void u_distortion_mesh_from_panotools (const struct u_panotools_values *left, const struct u_panotools_values *right, struct xrt_hmd_parts *target)
 Given two sets of panotools values creates the left and th right uv meshes. More...
 
void u_distortion_mesh_generator_from_panotools (const struct u_panotools_values *left, const struct u_panotools_values *right, struct u_uv_generator **out_gen)
 Given two sets of panotools values creates a mesh generator, copies the values into it. More...
 
void u_distortion_mesh_none (struct xrt_hmd_parts *target)
 Create two distortion meshes with no distortion. More...
 

Detailed Description

Code to generate disortion meshes.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m