Provide structs commonly used in the SDK, enumerating constant definitions.
#define ob_is_video_stream_type(stream_type)
check if the stream_type is a video stream
OBSensorType
Enumeration value describing the sensor type.
OBIMUSampleRate
Enumeration of IMU sample rate values (gyroscope or accelerometer)
OBGyroFullScaleRange
Enumeration of gyroscope ranges.
OBFormat
Enumeration value describing the pixel format.
enum ob_frame_metadata_type OBFrameMetadataType
OBFrameType
Enumeration value describing the type of frame.
OBStreamType
Enumeration value describing the type of data stream.
OBAccelFullScaleRange
Enumeration of accelerometer ranges.
#define ob_is_video_sensor_type(sensor_type)
Check if the sensor_type is a video sensor.
OB_EXPORT const char * ob_gyro_range_type_to_string(OBGyroFullScaleRange type)
Convert OBGyroFullScaleRange to " char* " type and then return.
OB_EXPORT const char * ob_sensor_type_to_string(OBSensorType type)
Convert OBSensorType to " char* " type and then return.
OB_EXPORT const char * ob_meta_data_type_to_string(OBFrameMetadataType type)
Convert OBFrameMetadataType to " char* " type and then return.
OB_EXPORT const char * ob_format_type_to_string(OBFormat type)
Convert OBFormat to " char* " type and then return.
OB_EXPORT const char * ob_imu_rate_type_to_string(OBIMUSampleRate type)
Convert OBIMUSampleRate to " char* " type and then return.
OB_EXPORT const char * ob_accel_range_type_to_string(OBAccelFullScaleRange type)
Convert OBAccelFullScaleRange to " char* " type and then return.
OB_EXPORT const char * ob_frame_type_to_string(OBFrameType type)
Convert OBFrameType to " char* " type and then return.
OB_EXPORT OBStreamType ob_sensor_type_to_stream_type(OBSensorType type)
Convert OBStreamType to OBSensorType.
OB_EXPORT const char * ob_stream_type_to_string(OBStreamType type)
Convert OBStreamType to " char* " type and then return.
static std::string convertOBAccelFullScaleRangeTypeToString(const OBAccelFullScaleRange &type)
Convert OBAccelFullScaleRange to " string " type and then return.
static std::string convertOBStreamTypeToString(const OBStreamType &type)
Convert OBStreamType to " string " type and then return.
static std::string convertOBGyroFullScaleRangeTypeToString(const OBGyroFullScaleRange &type)
Convert OBGyroFullScaleRange to " string " type and then return.
static bool isVideoStreamType(OBStreamType type)
Check if the given stream type is a video stream.
static bool isVideoSensorType(OBSensorType type)
Check if the given sensor type is a video sensor.
static std::string convertOBSensorTypeToString(const OBSensorType &type)
Convert OBSensorType to " string " type and then return.
static std::string convertOBFormatTypeToString(const OBFormat &type)
Convert OBFormat to " string " type and then return.
static std::string convertOBFrameMetadataTypeToString(const OBFrameMetadataType &type)
Convert OBFrameMetadataType to " string " type and then return.
static std::string convertOBFrameTypeToString(const OBFrameType &type)
Convert OBFrameType to " string " type and then return.
static std::string convertOBIMUSampleRateTypeToString(const OBIMUSampleRate &type)
Convert OBIMUSampleRate to " string " type and then return.
static OBStreamType convertSensorTypeToStreamType(OBSensorType type)
Convert OBSensorType to OBStreamType type and then return.