Varjo Native SDK
Varjo_types_mr.h
Go to the documentation of this file.
1 // Copyright 2019-2020 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;
20 
21 // Chroma keying API
22 
26 typedef int64_t varjo_ChromaKeyType;
29 
34  double targetColor[3];
35  double tolerance[3];
36  double falloff[3];
37 };
38 
44  int64_t reserved[32];
45 };
46 
53 };
54 
55 
56 // Camera property API
57 
64 
72 
78 typedef int64_t varjo_CameraPropertyType;
84 
90 typedef int64_t varjo_CameraPropertyMode;
94 
99  double doubleValue;
100  int64_t intValue;
102 };
103 
109  union varjo_CameraValue value;
110 };
111 
112 #if defined __cplusplus
113 }
114 #endif
115 #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:79
varjo_CameraPropertyMode_Auto
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Auto
Automatic mode.
Definition: Varjo_types_mr.h:92
varjo_ChromaKeyParams_HSV::falloff
double falloff[3]
Tolerance falloffs for HSV components (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:36
varjo_LockType_ChromaKey
static const varjo_LockType varjo_LockType_ChromaKey
Lock for chroma key configuration.
Definition: Varjo_types_mr.h:19
varjo_CameraPropertyValue::value
union varjo_CameraValue value
Value union. Determine from 'type' which element to access.
Definition: Varjo_types_mr.h:109
varjo_CameraPropertyDataType
int64_t varjo_CameraPropertyDataType
Camera property data types.
Definition: Varjo_types_mr.h:68
varjo_ChromaKeyParams_HSV::tolerance
double tolerance[3]
Tolerances for HSV components (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:35
varjo_ChromaKeyConfig::type
varjo_ChromaKeyType type
Chroma key type.
Definition: Varjo_types_mr.h:51
varjo_CameraPropertyMode_Manual
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Manual
Manual value mode.
Definition: Varjo_types_mr.h:93
varjo_CameraPropertyType_Sharpness
static const varjo_CameraPropertyType varjo_CameraPropertyType_Sharpness
Sharpness filter mode.
Definition: Varjo_types_mr.h:83
varjo_CameraPropertyType
int64_t varjo_CameraPropertyType
Camera property types that can be accessed to control video pass through cameras.
Definition: Varjo_types_mr.h:78
varjo_CameraPropertyMode_Off
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Off
Off mode.
Definition: Varjo_types_mr.h:91
varjo_CameraValue::boolValue
varjo_Bool boolValue
Boolean value.
Definition: Varjo_types_mr.h:101
varjo_CameraPropertyDataType_Int
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Int
Integer.
Definition: Varjo_types_mr.h:69
varjo_ChromaKeyParams::hsv
struct varjo_ChromaKeyParams_HSV hsv
Parameters for varjo_ChromaKeyType_HSV type chroma key matcher.
Definition: Varjo_types_mr.h:43
varjo_Bool
int32_t varjo_Bool
Definition: Varjo_types.h:135
varjo_CameraPropertyConfigType_Range
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_Range
Range (min, max).
Definition: Varjo_types_mr.h:63
varjo_CameraPropertyConfigType
int64_t varjo_CameraPropertyConfigType
Camera property config type.
Definition: Varjo_types_mr.h:61
varjo_CameraValue
Wrapper for different camera property values.
Definition: Varjo_types_mr.h:98
varjo_ChromaKeyType
int64_t varjo_ChromaKeyType
Chroma keying config types for different color matchers.
Definition: Varjo_types_mr.h:26
varjo_ChromaKeyParams
Wrapper for different chroma key matcher parameters.
Definition: Varjo_types_mr.h:42
varjo_CameraPropertyValue::type
varjo_CameraPropertyDataType type
Data type for this value.
Definition: Varjo_types_mr.h:108
varjo_ChromaKeyConfig::params
union varjo_ChromaKeyParams params
Parameters union. Determine from 'type' which element to access.
Definition: Varjo_types_mr.h:52
varjo_ChromaKeyType_Disabled
static const varjo_ChromaKeyType varjo_ChromaKeyType_Disabled
Chroma key matching disabled.
Definition: Varjo_types_mr.h:27
varjo_CameraPropertyDataType_Bool
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Bool
Boolean.
Definition: Varjo_types_mr.h:71
Varjo_types.h
varjo_ChromaKeyType_HSV
static const varjo_ChromaKeyType varjo_ChromaKeyType_HSV
Chroma key matcher in HSV colorspace.
Definition: Varjo_types_mr.h:28
varjo_CameraPropertyDataType_Double
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Double
Floating point.
Definition: Varjo_types_mr.h:70
varjo_ChromaKeyConfig
Chroma key config structure including type info and actual parameters.
Definition: Varjo_types_mr.h:50
varjo_CameraPropertyConfigType_List
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_List
List of discrete values.
Definition: Varjo_types_mr.h:62
varjo_CameraValue::doubleValue
double doubleValue
Floating point value.
Definition: Varjo_types_mr.h:99
varjo_ChromaKeyParams_HSV::targetColor
double targetColor[3]
Target color in HSV colorspace (range 0.0 .. 1.0).
Definition: Varjo_types_mr.h:34
varjo_CameraPropertyType_FlickerCompensation
static const varjo_CameraPropertyType varjo_CameraPropertyType_FlickerCompensation
Flicker compensation (50Hz and 60Hz).
Definition: Varjo_types_mr.h:82
varjo_CameraValue::intValue
int64_t intValue
Integer value.
Definition: Varjo_types_mr.h:100
varjo_CameraPropertyMode
int64_t varjo_CameraPropertyMode
Camera property modes that can be set to control video pass through cameras.
Definition: Varjo_types_mr.h:90
varjo_CameraPropertyValue
Camera property value structure including type info and actual value.
Definition: Varjo_types_mr.h:107
varjo_ChromaKeyParams_HSV
Chroma keying parameters for HSV colorspace chroma key matcher.
Definition: Varjo_types_mr.h:33
varjo_ChromaKeyParams::reserved
int64_t reserved[32]
Reserved for future use.
Definition: Varjo_types_mr.h:44
varjo_CameraPropertyType_WhiteBalance
static const varjo_CameraPropertyType varjo_CameraPropertyType_WhiteBalance
White balance.
Definition: Varjo_types_mr.h:81
varjo_CameraPropertyType_ISOValue
static const varjo_CameraPropertyType varjo_CameraPropertyType_ISOValue
ISO value.
Definition: Varjo_types_mr.h:80
varjo_LockType
int64_t varjo_LockType
Mixed reality lock types.
Definition: Varjo_types_mr.h:17