|
Varjo Native SDK
|
|
Go to the documentation of this file.
3 #ifndef VARJO_TYPES_DATASTREAM_H
4 #define VARJO_TYPES_DATASTREAM_H
9 #if defined __cplusplus
260 #if defined __cplusplus
263 #endif // VARJO_TYPES_DATASTREAM_H
varjo_BufferType bufferType
Buffer type: CPU or GPU memory buffer.
Definition: Varjo_types_datastream.h:133
int64_t varjo_BufferId
Buffer ID to lock and use a data stream buffer.
Definition: Varjo_types_datastream.h:119
int64_t varjo_Nanoseconds
Time in nanoseconds.
Definition: Varjo_types.h:147
int32_t frameRate
Frame rate in frames per second.
Definition: Varjo_types_datastream.h:136
static const varjo_ChannelIndex varjo_ChannelIndex_Second
Second channel.
Definition: Varjo_types_datastream.h:33
static const varjo_ChannelFlag varjo_ChannelFlag_All
Aggregate of every available channel.
Definition: Varjo_types_datastream.h:26
uint32_t glintMaskLeft
Bit mask of enabled glint LEDs of left chamber.
Definition: Varjo_types_datastream.h:224
double principalPointX
Camera principal point X.
Definition: Varjo_types_datastream.h:147
int64_t frameNumber
Monotonically increasing frame number.
Definition: Varjo_types_datastream.h:244
struct varjo_WBNormalizationData wbNormalizationData
White balance normalization data.
Definition: Varjo_types_datastream.h:194
int32_t width
Texture width.
Definition: Varjo_types_datastream.h:137
int32_t width
Image width.
Definition: Varjo_types_datastream.h:162
int64_t reserved[64]
Definition: Varjo_types_datastream.h:235
int32_t height
Texture height;.
Definition: Varjo_types_datastream.h:138
double whiteBalanceTemperature
Camera white balance color temperature in Kelvin degrees.
Definition: Varjo_types_datastream.h:193
double whiteBalanceTemperature
Cubemap white balance color temperature in Kelvin degrees.
Definition: Varjo_types_datastream.h:207
static const varjo_DataFlag varjo_DataFlag_Extrinsics
Definition: Varjo_types_datastream.h:60
varjo_ChannelFlag channels
Channels that this frame contains.
Definition: Varjo_types_datastream.h:245
static const varjo_BufferType varjo_BufferType_CPU
Data is available in a CPU memory buffer.
Definition: Varjo_types_datastream.h:51
varjo_StreamId streamId
Id.
Definition: Varjo_types_datastream.h:130
varjo_Nanoseconds timestamp
Timestamp when the frame was captured (start of frame).
Definition: Varjo_types_datastream.h:223
Data stream configuration.
Definition: Varjo_types_datastream.h:129
int32_t height
Image height.
Definition: Varjo_types_datastream.h:163
union varjo_StreamFrameMetadata metadata
Frame data. Use 'type' to determine which element to access.
Definition: Varjo_types_datastream.h:248
double principalPointY
Camera principal point Y.
Definition: Varjo_types_datastream.h:148
double focalLengthY
Camera focal length Y.
Definition: Varjo_types_datastream.h:150
varjo_IntrinsicsModel model
Intrisics calibration model.
Definition: Varjo_types_datastream.h:146
double brightnessNormalizationGain
Gain to convert cubemap to VST image brightness.
Definition: Varjo_types_datastream.h:208
varjo_StreamType streamType
Stream type.
Definition: Varjo_types_datastream.h:132
static const varjo_StreamType varjo_StreamType_EnvironmentCubemap
HDR lighting estimate stream as a cubemap.
Definition: Varjo_types_datastream.h:101
double focalLengthX
Camera focal length X.
Definition: Varjo_types_datastream.h:149
struct varjo_EnvironmentCubemapFrameMetadata environmentCubemap
Definition: Varjo_types_datastream.h:233
Camera intrinsics parameter for undistorting a distorted camera frame.
Definition: Varjo_types_datastream.h:145
varjo_Nanoseconds timestamp
Timestamp when the cubemap was last updated.
Definition: Varjo_types_datastream.h:205
A single frame that will arrive to FrameListener callback after the user has subscribed to a stream.
Definition: Varjo_types_datastream.h:241
double distortionCoefficients[6]
Intrinsics model coefficients. For omnidir: 2 radial, skew, xi, 2 tangential.
Definition: Varjo_types_datastream.h:151
static const varjo_StreamType varjo_StreamType_EyeCamera
Distorted (i.e.
Definition: Varjo_types_datastream.h:109
static const varjo_ChannelFlag varjo_ChannelFlag_None
Disables data buffers and only provides metadata.
Definition: Varjo_types_datastream.h:17
int64_t varjo_TextureFormat
Definition: Varjo_types.h:216
varjo_Nanoseconds timestamp
Timestamp at the middle of frame exposure.
Definition: Varjo_types_datastream.h:190
varjo_StreamId id
Id of the stream.
Definition: Varjo_types_datastream.h:243
static const varjo_ChannelFlag varjo_ChannelFlag_Second
Second channel.
Definition: Varjo_types_datastream.h:19
varjo_TextureFormat format
Texture format.
Definition: Varjo_types_datastream.h:158
varjo_TextureFormat format
Texture format.
Definition: Varjo_types_datastream.h:134
int32_t rowStride
Buffer row stride in bytes.
Definition: Varjo_types_datastream.h:139
double exposureTime
Exposure time in seconds.
Definition: Varjo_types_datastream.h:192
int64_t varjo_BufferType
Memory buffer type.
Definition: Varjo_types_datastream.h:50
Double precision 4x4 matrix.
Definition: Varjo_types.h:330
double whiteBalanceColorGains[3]
White balance RGB gains to convert from 6500K to VST color temperature.
Definition: Varjo_types_datastream.h:178
struct varjo_Matrix streamTransform
Transform from HMD pose center to stream origin in view coordinates.
Definition: Varjo_types_datastream.h:135
double cameraCalibrationConstant
The luminance (in cd/m^2) which saturates a pixel is equal to 2^ev * cameraCalibrationConstant.
Definition: Varjo_types_datastream.h:195
static const varjo_ChannelFlag varjo_ChannelFlag_First
First channel.
Definition: Varjo_types_datastream.h:18
varjo_StreamType type
Type of the stream.
Definition: Varjo_types_datastream.h:242
int64_t varjo_StreamId
Stream ID to identify a data stream configuration.
Definition: Varjo_types_datastream.h:114
static const varjo_StreamType varjo_StreamType_DistortedColor
Distorted (i.e.
Definition: Varjo_types_datastream.h:75
static const varjo_BufferType varjo_BufferType_GPU
Data is available in a GPU memory buffer.
Definition: Varjo_types_datastream.h:52
static const varjo_ChannelFlag varjo_ChannelFlag_Left
Helper aliases and aggregates for varjo_ChannelFlag.
Definition: Varjo_types_datastream.h:24
struct varjo_EyeCameraFrameMetadata eyeCamera
Definition: Varjo_types_datastream.h:234
varjo_BufferType type
CPU or GPU.
Definition: Varjo_types_datastream.h:159
struct varjo_Matrix hmdPose
HMD world pose. Invert the pose, if you need the HMD center view matrix.
Definition: Varjo_types_datastream.h:247
int32_t byteSize
Buffer size in bytes.
Definition: Varjo_types_datastream.h:160
uint64_t varjo_DataFlag
Frame data flag buffer type.
Definition: Varjo_types_datastream.h:57
varjo_DataFlag dataFlags
Data that this frame contains.
Definition: Varjo_types_datastream.h:246
struct varjo_Matrix3x3 ccm
CCM for VST color temperature.
Definition: Varjo_types_datastream.h:180
varjo_EnvironmentCubemapMode mode
Cubemap mode which defines the color and brightness of the cubemap data.
Definition: Varjo_types_datastream.h:206
struct varjo_Matrix3x3 invCCM
Inverse CCM for 6500K color temperature.
Definition: Varjo_types_datastream.h:179
struct varjo_WBNormalizationData wbNormalizationData
White balance normalization data.
Definition: Varjo_types_datastream.h:209
static const varjo_ChannelIndex varjo_ChannelIndex_Left
Helper aliases for varjo_ChannelIndex.
Definition: Varjo_types_datastream.h:38
static const int64_t varjo_InvalidId
Invalid id for any ID type (e.g.
Definition: Varjo_types_datastream.h:124
int64_t varjo_EnvironmentCubemapMode
Definition: Varjo_types_mr.h:58
static const varjo_IntrinsicsModel varjo_IntrinsicsModel_Omnidir
OpenCV compatible Omnidir calibration model.
Definition: Varjo_types_datastream.h:45
static const varjo_ChannelIndex varjo_ChannelIndex_First
First channel.
Definition: Varjo_types_datastream.h:32
double ev
EV (exposure value) at ISO100.
Definition: Varjo_types_datastream.h:191
uint64_t varjo_ChannelFlag
Bitfield for different data stream channels.
Definition: Varjo_types_datastream.h:16
White balance normalization data for color matching VR content with camera image.
Definition: Varjo_types_datastream.h:177
static const varjo_DataFlag varjo_DataFlag_Buffer
Definition: Varjo_types_datastream.h:58
int64_t varjo_StreamType
Data stream types.
Definition: Varjo_types_datastream.h:65
void() varjo_FrameListener(const struct varjo_StreamFrame *frame, struct varjo_Session *session, void *userData)
Camera frame stream callback function.
Definition: Varjo_types_datastream.h:258
varjo_ChannelFlag channelFlags
Bitfield of provided camera channels.
Definition: Varjo_types_datastream.h:131
uint32_t glintMaskRight
Bit mask of enabled glint LEDs of right chamber.
Definition: Varjo_types_datastream.h:225
static const varjo_ChannelIndex varjo_ChannelIndex_Right
Right camera channel. Alias for varjo_ChannelIndex_Second.
Definition: Varjo_types_datastream.h:39
static const varjo_DataFlag varjo_DataFlag_Intrinsics
Definition: Varjo_types_datastream.h:59
int32_t rowStride
Buffer row stride in bytes.
Definition: Varjo_types_datastream.h:161
static const varjo_ChannelFlag varjo_ChannelFlag_Right
Right camera channel. Alias for varjo_ChannelFlag_Second.
Definition: Varjo_types_datastream.h:25
int64_t varjo_IntrinsicsModel
Camera intrinsics model type.
Definition: Varjo_types_datastream.h:44
int64_t varjo_ChannelIndex
Values for indexing buffers and settings of data streams.
Definition: Varjo_types_datastream.h:31
struct varjo_DistortedColorFrameMetadata distortedColor
Definition: Varjo_types_datastream.h:232
Double precision 3x3 matrix.
Definition: Varjo_types.h:338