You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: orbbec_camera/SDK/include/libobsensor/hpp/Device.hpp
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -558,6 +558,13 @@ class OB_EXTENSION_API Device {
558
558
*/
559
559
constchar *getCurrentPresetName();
560
560
561
+
/**
562
+
* @brief Get current depth mode name
563
+
* @brief According the current preset name to return current depth mode name
564
+
* @return const char* return the current depth mode name.
565
+
*/
566
+
constchar *getCurrentDepthModeName();
567
+
561
568
/**
562
569
* @brief load the preset according to the preset name.
563
570
* @attention After loading the preset, the settings in the preset will set to the device immediately. Therefore, it is recommended to re-read the device
@@ -226,6 +235,46 @@ class OB_EXTENSION_API Config {
226
235
*/
227
236
voidenableAllStream();
228
237
238
+
/**
239
+
* @brief Enable a video stream to be used in the pipeline.
240
+
*
241
+
* This function allows users to enable a video stream with customizable parameters.
242
+
* If no parameters are specified, the stream will be enabled with default resolution settings.
243
+
* Users who wish to set custom resolutions should refer to the product manual, as available resolutions vary by camera model.
244
+
*
245
+
* @param type The video stream type.
246
+
* @param width The video stream width (default is OB_WIDTH_ANY, which selects the default resolution).
247
+
* @param height The video stream height (default is OB_HEIGHT_ANY, which selects the default resolution).
248
+
* @param fps The video stream frame rate (default is OB_FPS_ANY, which selects the default frame rate).
249
+
* @param format The video stream format (default is OB_FORMAT_ANY, which selects the default format).
250
+
*/
251
+
voidenableVideoStream(ob_stream_type type, int width = OB_WIDTH_ANY, int height = OB_HEIGHT_ANY, int fps = OB_FPS_ANY, OBFormat format = OB_FORMAT_ANY);
252
+
253
+
/**
254
+
* @brief Enable an accelerometer stream to be used in the pipeline.
255
+
*
256
+
* This function allows users to enable an accelerometer stream with customizable parameters.
257
+
* If no parameters are specified, the stream will be enabled with default settings.
258
+
* Users who wish to set custom full-scale ranges or sample rates should refer to the product manual, as available settings vary by device model.
259
+
*
260
+
* @param fullScaleRange The full-scale range of the accelerometer (default is OB_ACCEL_FULL_SCALE_RANGE_ANY, which selects the default range).
261
+
* @param sampleRate The sample rate of the accelerometer (default is OB_ACCEL_SAMPLE_RATE_ANY, which selects the default rate).
0 commit comments