|
OrbbecSDK 2.5.5
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
The SDK's advanced API can quickly implement functions such as switching streaming, frame synchronization, software filtering, etc., suitable for applications, and the algorithm focuses on rgbd data stream scenarios. If you are on real-time or need to handle synchronization separately, align the scene. Please use the interface of Device's Lower API. More...
#include "ObTypes.h"Go to the source code of this file.
Macros | |
| #define | ob_config_set_depth_scale_require ob_config_set_depth_scale_after_align_require |
Functions | |
| OB_EXPORT ob_pipeline * | ob_create_pipeline (ob_error **error) |
| Create a pipeline object. | |
| OB_EXPORT ob_pipeline * | ob_create_pipeline_with_device (const ob_device *dev, ob_error **error) |
| Using device objects to create pipeline objects. | |
| OB_EXPORT void | ob_delete_pipeline (ob_pipeline *pipeline, ob_error **error) |
| Delete pipeline objects. | |
| OB_EXPORT void | ob_pipeline_start (ob_pipeline *pipeline, ob_error **error) |
| Start the pipeline with default parameters. | |
| OB_EXPORT void | ob_pipeline_start_with_config (ob_pipeline *pipeline, const ob_config *config, ob_error **error) |
| Start the pipeline with configuration parameters. | |
| OB_EXPORT void | ob_pipeline_start_with_callback (ob_pipeline *pipeline, const ob_config *config, ob_frameset_callback callback, void *user_data, ob_error **error) |
| Start the pipeline and set the frame collection data callback. | |
| OB_EXPORT void | ob_pipeline_stop (ob_pipeline *pipeline, ob_error **error) |
| Stop pipeline. | |
| OB_EXPORT ob_config * | ob_pipeline_get_config (const ob_pipeline *pipeline, ob_error **error) |
| Get the configuration object associated with the pipeline. | |
| OB_EXPORT void | ob_pipeline_switch_config (ob_pipeline *pipeline, ob_config *config, ob_error **error) |
| Switch the corresponding configuration. | |
| OB_EXPORT ob_frame * | ob_pipeline_wait_for_frameset (ob_pipeline *pipeline, uint32_t timeout_ms, ob_error **error) |
| Wait for a set of frames to be returned synchronously. | |
| OB_EXPORT ob_device * | ob_pipeline_get_device (const ob_pipeline *pipeline, ob_error **error) |
| Get the device object associated with the pipeline. | |
| OB_EXPORT ob_stream_profile_list * | ob_pipeline_get_stream_profile_list (const ob_pipeline *pipeline, ob_sensor_type sensorType, ob_error **error) |
| Get the stream profile list associated with the pipeline. | |
| OB_EXPORT void | ob_pipeline_enable_frame_sync (ob_pipeline *pipeline, ob_error **error) |
| Enable frame synchronization. | |
| OB_EXPORT void | ob_pipeline_disable_frame_sync (ob_pipeline *pipeline, ob_error **error) |
| Disable frame synchronization. | |
| OB_EXPORT ob_stream_profile_list * | ob_get_d2c_depth_profile_list (const ob_pipeline *pipeline, const ob_stream_profile *color_profile, ob_align_mode align_mode, ob_error **error) |
| Return a list of D2C-enabled depth sensor resolutions corresponding to the input color sensor resolution. | |
| OB_EXPORT ob_config * | ob_create_config (ob_error **error) |
| Create the pipeline configuration. | |
| OB_EXPORT void | ob_delete_config (ob_config *config, ob_error **error) |
| Delete the pipeline configuration. | |
| OB_EXPORT void | ob_config_enable_stream (ob_config *config, ob_stream_type stream_type, ob_error **error) |
| Enable a stream with default profile. | |
| OB_EXPORT void | ob_config_enable_all_stream (ob_config *config, ob_error **error) |
| Enable all streams in the pipeline configuration. | |
| OB_EXPORT void | ob_config_enable_stream_with_stream_profile (ob_config *config, const ob_stream_profile *profile, ob_error **error) |
| Enable a stream according to the stream profile. | |
| OB_EXPORT void | ob_config_enable_video_stream (ob_config *config, ob_stream_type stream_type, uint32_t width, uint32_t height, uint32_t fps, ob_format format, ob_error **error) |
| Enable video stream with specified parameters. | |
| OB_EXPORT void | ob_config_enable_accel_stream (ob_config *config, ob_accel_full_scale_range full_scale_range, ob_accel_sample_rate sample_rate, ob_error **error) |
| Enable accelerometer stream with specified parameters. | |
| OB_EXPORT void | ob_config_enable_gyro_stream (ob_config *config, ob_gyro_full_scale_range full_scale_range, ob_gyro_sample_rate sample_rate, ob_error **error) |
| Enable gyroscope stream with specified parameters. | |
| OB_EXPORT ob_stream_profile_list * | ob_config_get_enabled_stream_profile_list (const ob_config *config, ob_error **error) |
| Get the enabled stream profile list in the pipeline configuration. | |
| OB_EXPORT void | ob_config_disable_stream (ob_config *config, ob_stream_type type, ob_error **error) |
| Disable a specific stream in the pipeline configuration. | |
| OB_EXPORT void | ob_config_disable_all_stream (ob_config *config, ob_error **error) |
| Disable all streams in the pipeline configuration. | |
| OB_EXPORT void | ob_config_set_align_mode (ob_config *config, ob_align_mode mode, ob_error **error) |
| Set the alignment mode for the pipeline configuration. | |
| OB_EXPORT void | ob_config_set_depth_scale_after_align_require (ob_config *config, bool enable, ob_error **error) |
| Set whether depth scaling is required after enable depth to color alignment. | |
| OB_EXPORT void | ob_config_set_frame_aggregate_output_mode (ob_config *config, ob_frame_aggregate_output_mode mode, ob_error **error) |
| Set the frame aggregation output mode for the pipeline configuration. | |
| OB_EXPORT ob_camera_param | ob_pipeline_get_camera_param (ob_pipeline *pipeline, ob_error **error) |
| Get current camera parameters. | |
| OB_EXPORT ob_camera_param | ob_pipeline_get_camera_param_with_profile (ob_pipeline *pipeline, uint32_t colorWidth, uint32_t colorHeight, uint32_t depthWidth, uint32_t depthHeight, ob_error **error) |
| Get the current camera parameters. | |
| OB_EXPORT ob_calibration_param | ob_pipeline_get_calibration_param (ob_pipeline *pipeline, ob_config *config, ob_error **error) |
| Get device calibration parameters with the specified configuration. | |
The SDK's advanced API can quickly implement functions such as switching streaming, frame synchronization, software filtering, etc., suitable for applications, and the algorithm focuses on rgbd data stream scenarios. If you are on real-time or need to handle synchronization separately, align the scene. Please use the interface of Device's Lower API.
Definition in file Pipeline.h.
| #define ob_config_set_depth_scale_require ob_config_set_depth_scale_after_align_require |
Definition at line 330 of file Pipeline.h.
| OB_EXPORT ob_pipeline * ob_create_pipeline | ( | ob_error ** | error | ) |
Create a pipeline object.
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::Pipeline().
| OB_EXPORT ob_pipeline * ob_create_pipeline_with_device | ( | const ob_device * | dev, |
| ob_error ** | error ) |
Using device objects to create pipeline objects.
| [in] | dev | Device object used to create pipeline |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::Pipeline().
| OB_EXPORT void ob_delete_pipeline | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Delete pipeline objects.
| [in] | pipeline | The pipeline object to be deleted |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::~Pipeline().
| OB_EXPORT void ob_pipeline_start | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Start the pipeline with default parameters.
| [in] | pipeline | pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
| OB_EXPORT void ob_pipeline_start_with_config | ( | ob_pipeline * | pipeline, |
| const ob_config * | config, | ||
| ob_error ** | error ) |
Start the pipeline with configuration parameters.
| [in] | pipeline | pipeline object |
| [in] | config | Parameters to be configured |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::start().
| OB_EXPORT void ob_pipeline_start_with_callback | ( | ob_pipeline * | pipeline, |
| const ob_config * | config, | ||
| ob_frameset_callback | callback, | ||
| void * | user_data, | ||
| ob_error ** | error ) |
Start the pipeline and set the frame collection data callback.
| [in] | pipeline | pipeline object |
| [in] | config | Parameters to be configured |
| [in] | callback | Trigger a callback when all frame data in the frameset arrives |
| [in] | user_data | Pass in any user data and get it from the callback |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::start().
| OB_EXPORT void ob_pipeline_stop | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Stop pipeline.
| [in] | pipeline | pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::stop().
| OB_EXPORT ob_config * ob_pipeline_get_config | ( | const ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Get the configuration object associated with the pipeline.
Returns default configuration if the user has not configured
| [in] | pipeline | The pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::getConfig().
| OB_EXPORT void ob_pipeline_switch_config | ( | ob_pipeline * | pipeline, |
| ob_config * | config, | ||
| ob_error ** | error ) |
Switch the corresponding configuration.
| [in] | pipeline | The pipeline object |
| [in] | config | The pipeline configuration |
| [out] | error | Log error messages |
| OB_EXPORT ob_frame * ob_pipeline_wait_for_frameset | ( | ob_pipeline * | pipeline, |
| uint32_t | timeout_ms, | ||
| ob_error ** | error ) |
Wait for a set of frames to be returned synchronously.
| [in] | pipeline | The pipeline object |
| [in] | timeout_ms | The timeout for waiting (in milliseconds) |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::waitForFrameset().
| OB_EXPORT ob_device * ob_pipeline_get_device | ( | const ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Get the device object associated with the pipeline.
| [in] | pipeline | The pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::getDevice().
| OB_EXPORT ob_stream_profile_list * ob_pipeline_get_stream_profile_list | ( | const ob_pipeline * | pipeline, |
| ob_sensor_type | sensorType, | ||
| ob_error ** | error ) |
Get the stream profile list associated with the pipeline.
| [in] | pipeline | The pipeline object |
| [in] | sensorType | The sensor type. The supported sensor types can be obtained through the ob_device_get_sensor_list() interface. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::getStreamProfileList().
| OB_EXPORT void ob_pipeline_enable_frame_sync | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Enable frame synchronization.
Synchronize the frames of different streams by using the timestamp information of the frames.
Dynamically (when pipeline is started) enable/disable frame synchronization is allowed.
| [in] | pipeline | The pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::enableFrameSync().
| OB_EXPORT void ob_pipeline_disable_frame_sync | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Disable frame synchronization.
| [in] | pipeline | The pipeline object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::disableFrameSync().
| OB_EXPORT ob_stream_profile_list * ob_get_d2c_depth_profile_list | ( | const ob_pipeline * | pipeline, |
| const ob_stream_profile * | color_profile, | ||
| ob_align_mode | align_mode, | ||
| ob_error ** | error ) |
Return a list of D2C-enabled depth sensor resolutions corresponding to the input color sensor resolution.
| [in] | pipeline | The pipeline object |
| [in] | color_profile | The input profile of the color sensor |
| [in] | align_mode | The input align mode |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Pipeline::getD2CDepthProfileList().
Create the pipeline configuration.
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::Config().
Delete the pipeline configuration.
| [in] | config | The configuration to be deleted |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::~Config().
| OB_EXPORT void ob_config_enable_stream | ( | ob_config * | config, |
| ob_stream_type | stream_type, | ||
| ob_error ** | error ) |
Enable a stream with default profile.
| [in] | config | The pipeline configuration object |
| [in] | stream_type | The type of the stream to be enabled |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::enableStream().
Enable all streams in the pipeline configuration.
| [in] | config | The pipeline configuration |
| [out] | error | Log error messages |
Referenced by ob::Config::enableAllStream().
| OB_EXPORT void ob_config_enable_stream_with_stream_profile | ( | ob_config * | config, |
| const ob_stream_profile * | profile, | ||
| ob_error ** | error ) |
Enable a stream according to the stream profile.
| [in] | config | The pipeline configuration object |
| [in] | profile | The stream profile to be enabled |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::enableStream().
| OB_EXPORT void ob_config_enable_video_stream | ( | ob_config * | config, |
| ob_stream_type | stream_type, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | fps, | ||
| ob_format | format, | ||
| ob_error ** | error ) |
Enable video stream with specified parameters.
| [in] | config | The pipeline configuration object |
| [in] | stream_type | The type of the stream to be enabled |
| [in] | width | The width of the video stream |
| [in] | height | The height of the video stream |
| [in] | fps | The frame rate of the video stream |
| [in] | format | The format of the video stream |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::enableVideoStream().
| OB_EXPORT void ob_config_enable_accel_stream | ( | ob_config * | config, |
| ob_accel_full_scale_range | full_scale_range, | ||
| ob_accel_sample_rate | sample_rate, | ||
| ob_error ** | error ) |
Enable accelerometer stream with specified parameters.
| [in] | config | The pipeline configuration object |
| [in] | full_scale_range | The full scale range of the accelerometer |
| [in] | sample_rate | The sample rate of the accelerometer |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::enableAccelStream().
| OB_EXPORT void ob_config_enable_gyro_stream | ( | ob_config * | config, |
| ob_gyro_full_scale_range | full_scale_range, | ||
| ob_gyro_sample_rate | sample_rate, | ||
| ob_error ** | error ) |
Enable gyroscope stream with specified parameters.
| [in] | config | The pipeline configuration object |
| [in] | full_scale_range | The full scale range of the gyroscope |
| [in] | sample_rate | The sample rate of the gyroscope |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::enableGyroStream().
| OB_EXPORT ob_stream_profile_list * ob_config_get_enabled_stream_profile_list | ( | const ob_config * | config, |
| ob_error ** | error ) |
Get the enabled stream profile list in the pipeline configuration.
| config | The pipeline configuration object |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::getEnabledStreamProfileList().
| OB_EXPORT void ob_config_disable_stream | ( | ob_config * | config, |
| ob_stream_type | type, | ||
| ob_error ** | error ) |
Disable a specific stream in the pipeline configuration.
| [in] | config | The pipeline configuration object |
| [in] | type | The type of stream to be disabled |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::disableStream().
Disable all streams in the pipeline configuration.
| [in] | config | The pipeline configuration object |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::disableAllStream().
| OB_EXPORT void ob_config_set_align_mode | ( | ob_config * | config, |
| ob_align_mode | mode, | ||
| ob_error ** | error ) |
Set the alignment mode for the pipeline configuration.
| [in] | config | The pipeline configuration object |
| [in] | mode | The alignment mode to be set |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::setAlignMode().
| OB_EXPORT void ob_config_set_depth_scale_after_align_require | ( | ob_config * | config, |
| bool | enable, | ||
| ob_error ** | error ) |
Set whether depth scaling is required after enable depth to color alignment.
After enabling depth to color alignment, the depth image may need to be scaled to match the color image size.
| [in] | config | The pipeline configuration object |
| [in] | enable | Whether scaling is required |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::setDepthScaleRequire().
| OB_EXPORT void ob_config_set_frame_aggregate_output_mode | ( | ob_config * | config, |
| ob_frame_aggregate_output_mode | mode, | ||
| ob_error ** | error ) |
Set the frame aggregation output mode for the pipeline configuration.
The processing strategy when the FrameSet generated by the frame aggregation function does not contain the frames of all opened streams (which can be caused by different frame rates of each stream, or by the loss of frames of one stream): drop directly or output to the user.
| [in] | config | The pipeline configuration object |
| [in] | mode | The frame aggregation output mode to be set (default mode is OB_FRAME_AGGREGATE_OUTPUT_ANY_SITUATION) |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Config::setFrameAggregateOutputMode().
| OB_EXPORT ob_camera_param ob_pipeline_get_camera_param | ( | ob_pipeline * | pipeline, |
| ob_error ** | error ) |
Get current camera parameters.
| [in] | pipeline | pipeline object |
| [out] | error | Log error messages |
Referenced by ob::Pipeline::getCameraParam().
| OB_EXPORT ob_camera_param ob_pipeline_get_camera_param_with_profile | ( | ob_pipeline * | pipeline, |
| uint32_t | colorWidth, | ||
| uint32_t | colorHeight, | ||
| uint32_t | depthWidth, | ||
| uint32_t | depthHeight, | ||
| ob_error ** | error ) |
Get the current camera parameters.
| [in] | pipeline | pipeline object |
| [in] | colorWidth | color width |
| [in] | colorHeight | color height |
| [in] | depthWidth | depth width |
| [in] | depthHeight | depth height |
| [out] | error | Log error messages |
Referenced by ob::Pipeline::getCameraParamWithProfile().
| OB_EXPORT ob_calibration_param ob_pipeline_get_calibration_param | ( | ob_pipeline * | pipeline, |
| ob_config * | config, | ||
| ob_error ** | error ) |
Get device calibration parameters with the specified configuration.
| [in] | pipeline | pipeline object |
| [in] | config | The pipeline configuration |
| [out] | error | Log error messages |
Referenced by ob::Pipeline::getCalibrationParam().