| OrbbecSDK 1.10.18 OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras

Loading...
Searching...
No Matches
Sensor.h
Go to the documentation of this file.
1
5#pragma once
6
7#ifdef __cplusplus
8 extern "C" {
9#endif
10
11#include "ObTypes.h"
12
20 ob_sensor_type ob_sensor_get_type(ob_sensor *sensor, ob_error **error);
21
29 ob_stream_profile_list *ob_sensor_get_stream_profile_list(ob_sensor *sensor, ob_error **error);
30
39 ob_filter_list *ob_sensor_get_recommended_filter_list(ob_sensor *sensor, ob_error **error);
40
48uint32_t ob_filter_list_get_count(ob_filter_list *filter_list, ob_error **error);
49
58 ob_filter *ob_get_filter(ob_filter_list *filter_list, uint32_t index, ob_error **error);
59
67 const char *ob_get_filter_name(ob_filter *filter, ob_error **error);
68
75 void ob_delete_filter_list(ob_filter_list *filter_list, ob_error **error);
76
86 void ob_sensor_start(ob_sensor *sensor, ob_stream_profile *profile, ob_frame_callback callback, void *user_data, ob_error **error);
87
94 void ob_sensor_stop(ob_sensor *sensor, ob_error **error);
95
103 void ob_sensor_switch_profile(ob_sensor *sensor, ob_stream_profile *profile, ob_error **error);
104
111 void ob_delete_sensor_list(ob_sensor_list *sensor_list, ob_error **error);
112
120uint32_t ob_sensor_list_get_sensor_count(ob_sensor_list *sensor_list, ob_error **error);
121
130 ob_sensor_type ob_sensor_list_get_sensor_type(ob_sensor_list *sensor_list, uint32_t index, ob_error **error);
131
140 ob_sensor *ob_sensor_list_get_sensor_by_type(ob_sensor_list *sensor_list, ob_sensor_type sensorType, ob_error **error);
141
150 ob_sensor *ob_sensor_list_get_sensor(ob_sensor_list *sensor_list, uint32_t index, ob_error **error);
151
158 void ob_delete_sensor(ob_sensor *sensor, ob_error **error);
159
160#ifdef __cplusplus
161}
162#endif
ObTypes.h
Provide structs commonly used in the SDK, enumerating constant definitions.
ob_filter_list
struct FilterListImpl ob_filter_list
Definition ObTypes.h:70
ob_stream_profile_list
struct StreamProfileListImpl ob_stream_profile_list
Definition ObTypes.h:62
ob_sensor_list
struct SensorListImpl ob_sensor_list
Definition ObTypes.h:60
ob_sensor
struct SensorImpl ob_sensor
Definition ObTypes.h:59
ob_stream_profile
struct StreamProfileImpl ob_stream_profile
Definition ObTypes.h:61
ob_filter
struct FilterImpl ob_filter
Definition ObTypes.h:64
ob_sensor_type
enum OBSensorType ob_sensor_type
ob_frame_callback
void(* ob_frame_callback)(ob_frame *frame, void *user_data)
Callback for frame.
Definition ObTypes.h:1758
ob_sensor_list_get_sensor_count
uint32_t ob_sensor_list_get_sensor_count(ob_sensor_list *sensor_list, ob_error **error)
Get the number of sensors in the sensor list.
ob_sensor_get_recommended_filter_list
ob_filter_list * ob_sensor_get_recommended_filter_list(ob_sensor *sensor, ob_error **error)
Request the list of recommended filter list.
ob_sensor_list_get_sensor_type
ob_sensor_type ob_sensor_list_get_sensor_type(ob_sensor_list *sensor_list, uint32_t index, ob_error **error)
Get the sensor type.
ob_delete_sensor
void ob_delete_sensor(ob_sensor *sensor, ob_error **error)
Delete a sensor object.
ob_get_filter_name
const char * ob_get_filter_name(ob_filter *filter, ob_error **error)
Get the name of ob_filter.
ob_sensor_get_stream_profile_list
ob_stream_profile_list * ob_sensor_get_stream_profile_list(ob_sensor *sensor, ob_error **error)
Get a list of all supported stream profiles.
ob_sensor_switch_profile
void ob_sensor_switch_profile(ob_sensor *sensor, ob_stream_profile *profile, ob_error **error)
Dynamically switch resolutions.
ob_filter_list_get_count
uint32_t ob_filter_list_get_count(ob_filter_list *filter_list, ob_error **error)
Get the number of recommended filter list.
ob_sensor_list_get_sensor
ob_sensor * ob_sensor_list_get_sensor(ob_sensor_list *sensor_list, uint32_t index, ob_error **error)
Get a sensor by index number.
ob_sensor_start
void ob_sensor_start(ob_sensor *sensor, ob_stream_profile *profile, ob_frame_callback callback, void *user_data, ob_error **error)
Open the current sensor and set the callback data frame.
ob_sensor_get_type
ob_sensor_type ob_sensor_get_type(ob_sensor *sensor, ob_error **error)
Get the type of the sensor.
ob_delete_sensor_list
void ob_delete_sensor_list(ob_sensor_list *sensor_list, ob_error **error)
Delete a list of sensor objects.
ob_sensor_list_get_sensor_by_type
ob_sensor * ob_sensor_list_get_sensor_by_type(ob_sensor_list *sensor_list, ob_sensor_type sensorType, ob_error **error)
Get a sensor by sensor type.
ob_delete_filter_list
void ob_delete_filter_list(ob_filter_list *filter_list, ob_error **error)
Delete a list of ob_filter objects.
ob_sensor_stop
void ob_sensor_stop(ob_sensor *sensor, ob_error **error)
Stop the sensor stream.
ob_get_filter
ob_filter * ob_get_filter(ob_filter_list *filter_list, uint32_t index, ob_error **error)
Get the number of recommended filter list.
ob_error
The error class exposed by the SDK, users can get detailed error information according to the error.
Definition ObTypes.h:151