Varjo Native SDK
Varjo_types_mr.h File Reference

Go to the source code of this file.

Data Structures

struct  varjo_ChromaKeyParams_HSV
 Chroma keying parameters for HSV colorspace chroma key matcher. More...
 
union  varjo_ChromaKeyParams
 Wrapper for different chroma key matcher parameters. More...
 
struct  varjo_ChromaKeyConfig
 Chroma key config structure including type info and actual parameters. More...
 
struct  varjo_EnvironmentCubemapConfig
 Environment cubemap config structure. More...
 
union  varjo_CameraValue
 Wrapper for different camera property values. More...
 
struct  varjo_CameraPropertyValue
 Camera property value structure including type info and actual value. More...
 

Typedefs

typedef int64_t varjo_LockType
 Mixed reality lock types. More...
 
typedef int64_t varjo_ChromaKeyType
 Chroma keying config types for different color matchers. More...
 
typedef int64_t varjo_EnvironmentCubemapMode
 
typedef int64_t varjo_CameraPropertyConfigType
 Camera property config type. More...
 
typedef int64_t varjo_CameraPropertyDataType
 Camera property data types. More...
 
typedef int64_t varjo_CameraPropertyType
 Camera property types that can be accessed to control video pass through cameras. More...
 
typedef int64_t varjo_CameraPropertyMode
 Camera property modes that can be set to control video pass through cameras. More...
 

Variables

static const varjo_LockType varjo_LockType_Camera = 1
 Lock for camera properties. More...
 
static const varjo_LockType varjo_LockType_ChromaKey = 2
 Lock for chroma key configuration. More...
 
static const varjo_LockType varjo_LockType_EnvironmentCubemap = 3
 Lock for environment cubemap configuration. More...
 
static const varjo_ChromaKeyType varjo_ChromaKeyType_Disabled = 0
 Chroma key matching disabled. More...
 
static const varjo_ChromaKeyType varjo_ChromaKeyType_HSV = 1
 Chroma key matcher in HSV colorspace. More...
 
static const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_Fixed6500K = 0
 Cubemap uses fixed 6500K color temperature and brightness is expressed in EV100. More...
 
static const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_AutoAdapt = 1
 Cubemap color temperature and brightness are automatically adapted to match video pass through image. More...
 
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_List = 1
 List of discrete values. More...
 
static const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_Range = 2
 Range (min, max). More...
 
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Int = 1
 Integer. More...
 
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Double = 2
 Floating point. More...
 
static const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Bool = 3
 Boolean. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_ExposureTime = 1
 Exposure time. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_ISOValue = 2
 ISO value. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_WhiteBalance = 3
 White balance. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_FlickerCompensation = 4
 Flicker compensation (50Hz and 60Hz). More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_Sharpness = 5
 Sharpness filter mode. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_EyeReprojection = 6
 Reproject the image to correspond the physical position of user's eyes. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_AutoExposureBehavior = 7
 Auto exposure behavior. More...
 
static const varjo_CameraPropertyType varjo_CameraPropertyType_FocusDistance = 8
 Set focus distance in cm for AF cameras. More...
 
static const int64_t varjo_AutoExposureBehavior_Normal = 0
 Available auto exposure presets for varjo_CameraPropertyType_AutoExposureBehavior property. More...
 
static const int64_t varjo_AutoExposureBehavior_PreventOverexposure = 1
 More aggressive behavior to prevent any oversaturation in the image. More...
 
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Off = 0
 Off mode. More...
 
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Auto = 1
 Automatic mode. More...
 
static const varjo_CameraPropertyMode varjo_CameraPropertyMode_Manual = 2
 Manual value mode. More...
 

Data Structure Documentation

◆ varjo_ChromaKeyParams_HSV

struct varjo_ChromaKeyParams_HSV

Chroma keying parameters for HSV colorspace chroma key matcher.

Data Fields
double falloff[3] Tolerance falloffs for HSV components (range 0.0 .. 1.0).
double targetColor[3] Target color in HSV colorspace (range 0.0 .. 1.0).
double tolerance[3] Tolerances for HSV components (range 0.0 .. 1.0).

◆ varjo_ChromaKeyParams

union varjo_ChromaKeyParams

Wrapper for different chroma key matcher parameters.

Data Fields
struct varjo_ChromaKeyParams_HSV hsv Parameters for varjo_ChromaKeyType_HSV type chroma key matcher.
int64_t reserved[32] Reserved for future use.

◆ varjo_ChromaKeyConfig

struct varjo_ChromaKeyConfig

Chroma key config structure including type info and actual parameters.

Data Fields
union varjo_ChromaKeyParams params Parameters union. Determine from 'type' which element to access.
varjo_ChromaKeyType type Chroma key type.

◆ varjo_EnvironmentCubemapConfig

struct varjo_EnvironmentCubemapConfig

Environment cubemap config structure.

Data Fields
varjo_EnvironmentCubemapMode mode Cubemap mode.
int64_t reserved[32]

◆ varjo_CameraValue

union varjo_CameraValue

Wrapper for different camera property values.

Data Fields
varjo_Bool boolValue Boolean value.
double doubleValue Floating point value.
int64_t intValue Integer value.

◆ varjo_CameraPropertyValue

struct varjo_CameraPropertyValue

Camera property value structure including type info and actual value.

Data Fields
varjo_CameraPropertyDataType type Data type for this value.
union varjo_CameraValue value Value union. Determine from 'type' which element to access.

Typedef Documentation

◆ varjo_CameraPropertyConfigType

Camera property config type.

◆ varjo_CameraPropertyDataType

Camera property data types.

◆ varjo_CameraPropertyMode

typedef int64_t varjo_CameraPropertyMode

Camera property modes that can be set to control video pass through cameras.

See varjo_MRGetCameraPropertyModes documentation for details.

◆ varjo_CameraPropertyType

typedef int64_t varjo_CameraPropertyType

Camera property types that can be accessed to control video pass through cameras.

See varjo_MRGetCameraPropertyModes and varjo_MRGetCameraPropertyValues documentation for details.

◆ varjo_ChromaKeyType

typedef int64_t varjo_ChromaKeyType

Chroma keying config types for different color matchers.

◆ varjo_EnvironmentCubemapMode

◆ varjo_LockType

typedef int64_t varjo_LockType

Mixed reality lock types.

Variable Documentation

◆ varjo_AutoExposureBehavior_Normal

const int64_t varjo_AutoExposureBehavior_Normal = 0
static

Available auto exposure presets for varjo_CameraPropertyType_AutoExposureBehavior property.

Original auto exposure behavior which is suitable for wide range of use cases in general.

◆ varjo_AutoExposureBehavior_PreventOverexposure

const int64_t varjo_AutoExposureBehavior_PreventOverexposure = 1
static

More aggressive behavior to prevent any oversaturation in the image.

Good for example for ensuring that even small displays stay readable.

◆ varjo_CameraPropertyConfigType_List

const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_List = 1
static

List of discrete values.

◆ varjo_CameraPropertyConfigType_Range

const varjo_CameraPropertyConfigType varjo_CameraPropertyConfigType_Range = 2
static

Range (min, max).

◆ varjo_CameraPropertyDataType_Bool

const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Bool = 3
static

Boolean.

◆ varjo_CameraPropertyDataType_Double

const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Double = 2
static

Floating point.

◆ varjo_CameraPropertyDataType_Int

const varjo_CameraPropertyDataType varjo_CameraPropertyDataType_Int = 1
static

Integer.

◆ varjo_CameraPropertyMode_Auto

const varjo_CameraPropertyMode varjo_CameraPropertyMode_Auto = 1
static

Automatic mode.

◆ varjo_CameraPropertyMode_Manual

const varjo_CameraPropertyMode varjo_CameraPropertyMode_Manual = 2
static

Manual value mode.

◆ varjo_CameraPropertyMode_Off

const varjo_CameraPropertyMode varjo_CameraPropertyMode_Off = 0
static

Off mode.

◆ varjo_CameraPropertyType_AutoExposureBehavior

const varjo_CameraPropertyType varjo_CameraPropertyType_AutoExposureBehavior = 7
static

Auto exposure behavior.

◆ varjo_CameraPropertyType_ExposureTime

const varjo_CameraPropertyType varjo_CameraPropertyType_ExposureTime = 1
static

Exposure time.

◆ varjo_CameraPropertyType_EyeReprojection

const varjo_CameraPropertyType varjo_CameraPropertyType_EyeReprojection = 6
static

Reproject the image to correspond the physical position of user's eyes.

◆ varjo_CameraPropertyType_FlickerCompensation

const varjo_CameraPropertyType varjo_CameraPropertyType_FlickerCompensation = 4
static

Flicker compensation (50Hz and 60Hz).

◆ varjo_CameraPropertyType_FocusDistance

const varjo_CameraPropertyType varjo_CameraPropertyType_FocusDistance = 8
static

Set focus distance in cm for AF cameras.

◆ varjo_CameraPropertyType_ISOValue

const varjo_CameraPropertyType varjo_CameraPropertyType_ISOValue = 2
static

ISO value.

◆ varjo_CameraPropertyType_Sharpness

const varjo_CameraPropertyType varjo_CameraPropertyType_Sharpness = 5
static

Sharpness filter mode.

◆ varjo_CameraPropertyType_WhiteBalance

const varjo_CameraPropertyType varjo_CameraPropertyType_WhiteBalance = 3
static

White balance.

◆ varjo_ChromaKeyType_Disabled

const varjo_ChromaKeyType varjo_ChromaKeyType_Disabled = 0
static

Chroma key matching disabled.

◆ varjo_ChromaKeyType_HSV

const varjo_ChromaKeyType varjo_ChromaKeyType_HSV = 1
static

Chroma key matcher in HSV colorspace.

◆ varjo_EnvironmentCubemapMode_AutoAdapt

const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_AutoAdapt = 1
static

Cubemap color temperature and brightness are automatically adapted to match video pass through image.

◆ varjo_EnvironmentCubemapMode_Fixed6500K

const varjo_EnvironmentCubemapMode varjo_EnvironmentCubemapMode_Fixed6500K = 0
static

Cubemap uses fixed 6500K color temperature and brightness is expressed in EV100.

◆ varjo_LockType_Camera

const varjo_LockType varjo_LockType_Camera = 1
static

Lock for camera properties.

◆ varjo_LockType_ChromaKey

const varjo_LockType varjo_LockType_ChromaKey = 2
static

Lock for chroma key configuration.

◆ varjo_LockType_EnvironmentCubemap

const varjo_LockType varjo_LockType_EnvironmentCubemap = 3
static

Lock for environment cubemap configuration.