Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_Stereo.cpp File Reference
#include "OVR_Stereo.h"
#include "OVR_Profile.h"
#include "Kernel/OVR_Log.h"
#include "Kernel/OVR_Alg.h"
Include dependency graph for OVR_Stereo.cpp:

Go to the source code of this file.

Data Structures

struct  OVR::LensConfigStored_CatmullRom10Version1
 

Namespaces

 OVR
 

Enumerations

enum  OVR::LensConfigStoredVersion { OVR::LCSV_CatmullRom10Version1 = 1 }
 

Functions

bool OVR::FitCubicPolynomial (float *pResult, const float *pFitX, const float *pFitY)
 
float OVR::EvalCatmullRom10Spline (float const *K, float scaledVal)
 
void OVR::SetEyeCup (HmdRenderInfo *renderInfo, const char *cup)
 
UInt16 OVR::EncodeFixedPointUInt16 (float val, UInt16 zeroVal, int fractionalBits)
 
float OVR::DecodeFixedPointUInt16 (UInt16 val, UInt16 zeroVal, int fractionalBits)
 
bool OVR::LoadLensConfig (LensConfig *presult, UByte const *pbuffer, int bufferSizeInBytes)
 
int OVR::SaveLensConfigSizeInBytes (LensConfig const &config)
 
bool OVR::SaveLensConfig (UByte *pbuffer, int bufferSizeInBytes, LensConfig const &config)
 
HMDInfo OVR::CreateDebugHMDInfo (HmdTypeEnum hmdType)
 
HmdRenderInfo OVR::GenerateHmdRenderInfoFromHmdInfo (HMDInfo const &hmdInfo, Profile const *profile, DistortionEqnType distortionType, EyeCupType eyeCupOverride)
 
LensConfig OVR::GenerateLensConfigFromEyeRelief (float eyeReliefInMeters, HmdRenderInfo const &hmd, DistortionEqnType distortionType)
 
DistortionRenderDesc OVR::CalculateDistortionRenderDesc (StereoEye eyeType, HmdRenderInfo const &hmd, const LensConfig *pLensOverride)
 
FovPort OVR::CalculateFovFromEyePosition (float eyeReliefInMeters, float offsetToRightInMeters, float offsetDownwardsInMeters, float lensDiameterInMeters, float extraEyeRotationInRadians)
 
FovPort OVR::CalculateFovFromHmdInfo (StereoEye eyeType, DistortionRenderDesc const &distortion, HmdRenderInfo const &hmd, float extraEyeRotationInRadians)
 
FovPort OVR::GetPhysicalScreenFov (StereoEye eyeType, DistortionRenderDesc const &distortion)
 
FovPort OVR::ClampToPhysicalScreenFov (StereoEye eyeType, DistortionRenderDesc const &distortion, FovPort inputFovPort)
 
Sizei OVR::CalculateIdealPixelSize (StereoEye eyeType, DistortionRenderDesc const &distortion, FovPort tanHalfFov, float pixelsPerDisplayPixel)
 
Recti OVR::GetFramebufferViewport (StereoEye eyeType, HmdRenderInfo const &hmd)
 
ScaleAndOffset2D OVR::CreateNDCScaleAndOffsetFromFov (FovPort tanHalfFov)
 
ScaleAndOffset2D OVR::CreateUVScaleAndOffsetfromNDCScaleandOffset (ScaleAndOffset2D scaleAndOffsetNDC, Recti renderedViewport, Sizei renderTargetSize)
 
Matrix4f OVR::CreateProjection (bool rightHanded, FovPort tanHalfFov, float zNear, float zFar)
 
Matrix4f OVR::CreateOrthoSubProjection (bool rightHanded, StereoEye eyeType, float tanHalfFovX, float tanHalfFovY, float unitsX, float unitsY, float distanceFromCamera, float interpupillaryDistance, Matrix4f const &projection, float zNear, float zFar)
 
Vector2f OVR::TransformScreenNDCToTanFovSpace (DistortionRenderDesc const &distortion, const Vector2f &framebufferNDC)
 
void OVR::TransformScreenNDCToTanFovSpaceChroma (Vector2f *resultR, Vector2f *resultG, Vector2f *resultB, DistortionRenderDesc const &distortion, const Vector2f &framebufferNDC)
 
Vector2f OVR::TransformTanFovSpaceToRendertargetTexUV (StereoEyeParams const &eyeParams, Vector2f const &tanEyeAngle)
 
Vector2f OVR::TransformTanFovSpaceToRendertargetNDC (StereoEyeParams const &eyeParams, Vector2f const &tanEyeAngle)
 
Vector2f OVR::TransformScreenPixelToScreenNDC (Recti const &distortionViewport, Vector2f const &pixel)
 
Vector2f OVR::TransformScreenPixelToTanFovSpace (Recti const &distortionViewport, DistortionRenderDesc const &distortion, Vector2f const &pixel)
 
Vector2f OVR::TransformScreenNDCToRendertargetTexUV (DistortionRenderDesc const &distortion, StereoEyeParams const &eyeParams, Vector2f const &pixel)
 
Vector2f OVR::TransformScreenPixelToRendertargetTexUV (Recti const &distortionViewport, DistortionRenderDesc const &distortion, StereoEyeParams const &eyeParams, Vector2f const &pixel)
 
Vector2f OVR::TransformTanFovSpaceToScreenNDC (DistortionRenderDesc const &distortion, const Vector2f &tanEyeAngle, bool usePolyApprox)
 
Vector2f OVR::TransformRendertargetNDCToTanFovSpace (const ScaleAndOffset2D &eyeToSourceNDC, const Vector2f &textureNDC)
 
float ExtEvalCatmullRom10Spline (float const *K, float scaledVal)
 

Variables

float(* CustomDistortion )(float) = NULL
 
float(* CustomDistortionInv )(float) = NULL
 

Data Structure Documentation

struct OVR::LensConfigStored_CatmullRom10Version1

Definition at line 401 of file OVR_Stereo.cpp.

Collaboration diagram for OVR::LensConfigStored_CatmullRom10Version1:
Collaboration graph
Data Fields
UInt16 ChromaticAberration[4]
UInt16 K[11]
UInt16 MaxR
UInt16 MetersPerTanAngleAtCenter
UInt16 VersionNumber

Function Documentation

float ExtEvalCatmullRom10Spline ( float const *  K,
float  scaledVal 
)

Definition at line 1800 of file OVR_Stereo.cpp.

Variable Documentation

float(* CustomDistortion)(float) = NULL

Definition at line 33 of file OVR_Stereo.cpp.

float(* CustomDistortionInv)(float) = NULL

Definition at line 34 of file OVR_Stereo.cpp.