|
Varjo Native SDK
|
|
Go to the documentation of this file.
3 #ifndef VARJO_DATASTREAM_H
4 #define VARJO_DATASTREAM_H
10 #if defined __cplusplus
229 #if defined __cplusplus
232 #endif // VARJO_DATASTREAM_H
int64_t varjo_BufferId
Buffer ID to lock and use a data stream buffer.
Definition: Varjo_types_datastream.h:119
void varjo_UnlockDataStreamBuffer(struct varjo_Session *session, varjo_BufferId id)
struct varjo_BufferMetadata varjo_GetBufferMetadata(struct varjo_Session *session, varjo_BufferId id)
Get buffer related metadata.
void varjo_StartDataStream(struct varjo_Session *session, varjo_StreamId id, varjo_ChannelFlag channels, varjo_FrameListener *callback, void *userData)
Start frame streaming into the provided callback.
struct varjo_Matrix varjo_GetCameraExtrinsics(struct varjo_Session *session, varjo_StreamId id, int64_t frameNumber, varjo_ChannelIndex index)
Get camera extrinsics for the current frame.
int32_t varjo_GetDataStreamConfigCount(struct varjo_Session *session)
Get number of available stream configurations.
Data stream configuration.
Definition: Varjo_types_datastream.h:129
void varjo_GetDataStreamConfigs(struct varjo_Session *session, struct varjo_StreamConfig *configs, int32_t maxSize)
Get available data stream configurations.
Camera intrinsics parameter for undistorting a distorted camera frame.
Definition: Varjo_types_datastream.h:145
void varjo_StopDataStream(struct varjo_Session *session, varjo_StreamId id)
Stop frame streaming.
struct varjo_CameraIntrinsics varjo_GetCameraIntrinsics(struct varjo_Session *session, varjo_StreamId id, int64_t frameNumber, varjo_ChannelIndex index)
Get camera intrinsics for the current frame.
void * varjo_GetBufferCPUData(struct varjo_Session *session, varjo_BufferId id)
Get data buffer if it resides in the CPU memory (can be checked with varjo_BufferMetadata::type).
API-agnostic texture handle.
Definition: Varjo_types.h:512
varjo_BufferId varjo_GetBufferId(struct varjo_Session *session, varjo_StreamId id, int64_t frameNumber, varjo_ChannelIndex index)
Get bufferId for the current frame.
struct varjo_Texture varjo_GetBufferGPUData(struct varjo_Session *session, varjo_BufferId id)
Get data buffer if it resides in the GPU memory (can be checked with varjo_BufferMetadata::type).
Double precision 4x4 matrix.
Definition: Varjo_types.h:330
int64_t varjo_StreamId
Stream ID to identify a data stream configuration.
Definition: Varjo_types_datastream.h:114
uint64_t varjo_ChannelFlag
Bitfield for different data stream channels.
Definition: Varjo_types_datastream.h:16
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
void varjo_LockDataStreamBuffer(struct varjo_Session *session, varjo_BufferId id)
Lock a data stream buffer for reading.
int64_t varjo_ChannelIndex
Values for indexing buffers and settings of data streams.
Definition: Varjo_types_datastream.h:31