Varjo Native SDK
Varjo_types_mr.h
Go to the documentation of this file.
1 // Copyright 2019-2022 Varjo Technologies Oy. All rights reserved.
2 
3 #ifndef VARJO_TYPES_MR_H
4 #define VARJO_TYPES_MR_H
5 
6 #include "Varjo_types.h"
7 
8 #if defined __cplusplus
9 extern "C" {
10 #endif
11 
12 // Mixed reality lock API
13 
17 typedef int64_t varjo_LockType;
21 
22 // Chroma keying API
23 
27 typedef int64_t varjo_ChromaKeyType;
30 
35  double targetColor[3];
36  double tolerance[3];
37  double falloff[3];
38 };
39 
45  int64_t reserved[32];
46 };
47 
54 };
55 
56 // Environment cubemap configuration API
57 
59 
62 
65 
71  int64_t reserved[32];
72 };
73 
74 
75 // Camera property API
76 
83 
91 
97 typedef int64_t varjo_CameraPropertyType;
106 
110 static const int64_t varjo_AutoExposureBehavior_Normal = 0;
111 static const int64_t varjo_AutoExposureBehavior_PreventOverexposure = 1;
113 
115 
121 typedef int64_t varjo_CameraPropertyMode;
125 
130  double doubleValue;
131  int64_t intValue;
133 };
134 
140  union varjo_CameraValue value;
141 };
142 
143 #if defined __cplusplus
144 }
145 #endif
146 #endif // VARJO_TYPES_MR_H
varjo_LockType_Camera
static const varjo_LockType varjo_LockType_Camera
Lock for camera properties.
Definition: Varjo_types_mr.h:18
varjo_CameraPropertyType_ExposureTime
static const varjo_CameraPropertyType varjo_CameraPropertyType_ExposureTime
Exposure time.
Definition: Varjo_types_mr.h:98
varjo_AutoExposureBehavior_PreventOverexposure
static const int64_t varjo_AutoExposureBehavior_PreventOverexposure
More aggressive behavior to prevent any oversaturation in the image.
Definition: Varjo_types_mr.h:112
varjo_CameraPropertyMode_Auto
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Auto
Automatic mode.
Definition: Varjo_types_mr.h:123
varjo_ChromaKeyParams_HSV::falloff
double falloff[3]
Tolerance falloffs for HSV components (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:37
varjo_LockType_ChromaKey
static const varjo_LockType varjo_LockType_ChromaKey
Lock for chroma key configuration.
Definition: Varjo_types_mr.h:19
varjo_CameraPropertyType_AutoExposureBehavior
static const varjo_CameraPropertyType varjo_CameraPropertyType_AutoExposureBehavior
Auto exposure behavior.
Definition: Varjo_types_mr.h:104
varjo_CameraPropertyValue::value
union varjo_CameraValue value
Value union. Determine from 'type' which element to access.
Definition: Varjo_types_mr.h:140
varjo_CameraPropertyDataType
int64_t varjo_CameraPropertyDataType
Camera property data types.
Definition: Varjo_types_mr.h:87
varjo_AutoExposureBehavior_Normal
static const int64_t varjo_AutoExposureBehavior_Normal
Available auto exposure presets for varjo_CameraPropertyType_AutoExposureBehavior property.
Definition: Varjo_types_mr.h:110
varjo_LockType_EnvironmentCubemap
static const varjo_LockType varjo_LockType_EnvironmentCubemap
Lock for environment cubemap configuration.
Definition: Varjo_types_mr.h:20
varjo_ChromaKeyParams_HSV::tolerance
double tolerance[3]
Tolerances for HSV components (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:36
varjo_ChromaKeyConfig::type
varjo_ChromaKeyType type
Chroma key type.
Definition: Varjo_types_mr.h:52
varjo_CameraPropertyMode_Manual
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Manual
Manual value mode.
Definition: Varjo_types_mr.h:124
varjo_CameraPropertyType_Sharpness
static const varjo_CameraPropertyType varjo_CameraPropertyType_Sharpness
Sharpness filter mode.
Definition: Varjo_types_mr.h:102
varjo_EnvironmentCubemapConfig::mode
varjo_EnvironmentCubemapMode mode
Cubemap mode.
Definition: Varjo_types_mr.h:70
varjo_CameraPropertyType
int64_t varjo_CameraPropertyType
Camera property types that can be accessed to control video pass through cameras.
Definition: Varjo_types_mr.h:97
varjo_CameraPropertyMode_Off
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Off
Off mode.
Definition: Varjo_types_mr.h:122
varjo_CameraValue::boolValue
varjo_Bool boolValue
Boolean value.
Definition: Varjo_types_mr.h:132
varjo_CameraPropertyDataType_Int
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Int
Integer.
Definition: Varjo_types_mr.h:88
varjo_ChromaKeyParams::hsv
struct varjo_ChromaKeyParams_HSV hsv
Parameters for varjo_ChromaKeyType_HSV type chroma key matcher.
Definition: Varjo_types_mr.h:44
varjo_EnvironmentCubemapMode_AutoAdapt
static const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_AutoAdapt
Cubemap color temperature and brightness are automatically adapted to match video pass through image.
Definition: Varjo_types_mr.h:64
varjo_Bool
int32_t varjo_Bool
Definition: Varjo_types.h:140
varjo_CameraPropertyConfigType_Range
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_Range
Range (min, max).
Definition: Varjo_types_mr.h:82
varjo_CameraPropertyConfigType
int64_t varjo_CameraPropertyConfigType
Camera property config type.
Definition: Varjo_types_mr.h:80
varjo_CameraValue
Wrapper for different camera property values.
Definition: Varjo_types_mr.h:129
varjo_ChromaKeyType
int64_t varjo_ChromaKeyType
Chroma keying config types for different color matchers.
Definition: Varjo_types_mr.h:27
varjo_ChromaKeyParams
Wrapper for different chroma key matcher parameters.
Definition: Varjo_types_mr.h:43
varjo_CameraPropertyValue::type
varjo_CameraPropertyDataType type
Data type for this value.
Definition: Varjo_types_mr.h:139
varjo_EnvironmentCubemapConfig
Environment cubemap config structure.
Definition: Varjo_types_mr.h:69
varjo_ChromaKeyConfig::params
union varjo_ChromaKeyParams params
Parameters union. Determine from 'type' which element to access.
Definition: Varjo_types_mr.h:53
varjo_CameraPropertyType_FocusDistance
static const varjo_CameraPropertyType varjo_CameraPropertyType_FocusDistance
Set focus distance in cm for AF cameras.
Definition: Varjo_types_mr.h:105
varjo_ChromaKeyType_Disabled
static const varjo_ChromaKeyType varjo_ChromaKeyType_Disabled
Chroma key matching disabled.
Definition: Varjo_types_mr.h:28
varjo_CameraPropertyDataType_Bool
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Bool
Boolean.
Definition: Varjo_types_mr.h:90
Varjo_types.h
varjo_ChromaKeyType_HSV
static const varjo_ChromaKeyType varjo_ChromaKeyType_HSV
Chroma key matcher in HSV colorspace.
Definition: Varjo_types_mr.h:29
varjo_CameraPropertyDataType_Double
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Double
Floating point.
Definition: Varjo_types_mr.h:89
varjo_CameraPropertyType_EyeReprojection
static const varjo_CameraPropertyType varjo_CameraPropertyType_EyeReprojection
Reproject the image to correspond the physical position of user's eyes.
Definition: Varjo_types_mr.h:103
varjo_ChromaKeyConfig
Chroma key config structure including type info and actual parameters.
Definition: Varjo_types_mr.h:51
varjo_CameraPropertyConfigType_List
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_List
List of discrete values.
Definition: Varjo_types_mr.h:81
varjo_CameraValue::doubleValue
double doubleValue
Floating point value.
Definition: Varjo_types_mr.h:130
varjo_EnvironmentCubemapMode
int64_t varjo_EnvironmentCubemapMode
Definition: Varjo_types_mr.h:58
varjo_ChromaKeyParams_HSV::targetColor
double targetColor[3]
Target color in HSV colorspace (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:35
varjo_CameraPropertyType_FlickerCompensation
static const varjo_CameraPropertyType varjo_CameraPropertyType_FlickerCompensation
Flicker compensation (50Hz and 60Hz).
Definition: Varjo_types_mr.h:101
varjo_CameraValue::intValue
int64_t intValue
Integer value.
Definition: Varjo_types_mr.h:131
varjo_CameraPropertyMode
int64_t varjo_CameraPropertyMode
Camera property modes that can be set to control video pass through cameras.
Definition: Varjo_types_mr.h:121
varjo_CameraPropertyValue
Camera property value structure including type info and actual value.
Definition: Varjo_types_mr.h:138
varjo_ChromaKeyParams_HSV
Chroma keying parameters for HSV colorspace chroma key matcher.
Definition: Varjo_types_mr.h:34
varjo_ChromaKeyParams::reserved
int64_t reserved[32]
Reserved for future use.
Definition: Varjo_types_mr.h:45
varjo_EnvironmentCubemapConfig::reserved
int64_t reserved[32]
Definition: Varjo_types_mr.h:71
varjo_CameraPropertyType_WhiteBalance
static const varjo_CameraPropertyType varjo_CameraPropertyType_WhiteBalance
White balance.
Definition: Varjo_types_mr.h:100
varjo_CameraPropertyType_ISOValue
static const varjo_CameraPropertyType varjo_CameraPropertyType_ISOValue
ISO value.
Definition: Varjo_types_mr.h:99
varjo_LockType
int64_t varjo_LockType
Mixed reality lock types.
Definition: Varjo_types_mr.h:17
varjo_EnvironmentCubemapMode_Fixed6500K
static const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_Fixed6500K
Cubemap uses fixed 6500K color temperature and brightness is expressed in EV100.
Definition: Varjo_types_mr.h:61