OrbbecSDK 2.6.3
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
Loading...
Searching...
No Matches
StreamProfile.h
Go to the documentation of this file.
1// Copyright (c) Orbbec Inc. All Rights Reserved.
2// Licensed under the MIT License.
3
9#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "ObTypes.h"
16
27
40OB_EXPORT ob_stream_profile *ob_create_video_stream_profile(ob_stream_type type, ob_format format, uint32_t width, uint32_t height, uint32_t fps,
41 ob_error **error);
42
53
64
74
84
95
103
113
122
132
141
152
162
172
182
192
201
211
220
230
239
249
258
268
277
287
297
307
316
326
336
346
355
364
374
387
404 ob_format format, int fps, ob_error **error);
405
420 ob_accel_full_scale_range full_scale_range, ob_accel_sample_rate sample_rate,
421 ob_error **error);
422
437 ob_gyro_full_scale_range full_scale_range, ob_gyro_sample_rate sample_rate,
438 ob_error **error);
439
453 ob_format format, ob_error **error);
454
462
463// The following interfaces are deprecated and are retained here for compatibility purposes.
464#define ob_stream_profile_format ob_stream_profile_get_format
465#define ob_stream_profile_type ob_stream_profile_get_type
466#define ob_video_stream_profile_fps ob_video_stream_profile_get_fps
467#define ob_video_stream_profile_width ob_video_stream_profile_get_width
468#define ob_video_stream_profile_height ob_video_stream_profile_get_height
469#define ob_accel_stream_profile_full_scale_range ob_accel_stream_profile_get_full_scale_range
470#define ob_accel_stream_profile_sample_rate ob_accel_stream_profile_get_sample_rate
471#define ob_gyro_stream_profile_full_scale_range ob_gyro_stream_profile_get_full_scale_range
472#define ob_gyro_stream_profile_sample_rate ob_gyro_stream_profile_get_sample_rate
473#define ob_stream_profile_list_count ob_stream_profile_list_get_count
474
475#ifdef __cplusplus
476}
477#endif
#define OB_EXPORT
Definition Export.h:15
Provide structs commonly used in the SDK, enumerating constant definitions.
enum OBFormat ob_format
struct ob_stream_profile_t ob_stream_profile
Definition ObTypes.h:31
enum OBGyroFullScaleRange ob_gyro_full_scale_range
struct ob_stream_profile_list_t ob_stream_profile_list
Definition ObTypes.h:32
struct OBAccelIntrinsic ob_accel_intrinsic
struct OBDisparityParam ob_disparity_param
struct OBCameraDistortion ob_camera_distortion
enum OBIMUSampleRate ob_accel_sample_rate
enum OBStreamType ob_stream_type
enum OBLiDARScanRate ob_lidar_scan_rate
enum OBIMUSampleRate ob_gyro_sample_rate
enum OBAccelFullScaleRange ob_accel_full_scale_range
struct OBGyroIntrinsic ob_gyro_intrinsic
struct OBD2CTransform ob_extrinsic
struct OBCameraIntrinsic ob_camera_intrinsic
OB_EXPORT void ob_stream_profile_set_format(ob_stream_profile *profile, ob_format format, ob_error **error)
Set stream profile format.
OB_EXPORT void ob_video_stream_profile_set_width(ob_stream_profile *profile, uint32_t width, ob_error **error)
Set the width of the video stream.
OB_EXPORT void ob_video_stream_profile_set_height(ob_stream_profile *profile, uint32_t height, ob_error **error)
Set the height of the video stream.
OB_EXPORT ob_stream_profile * ob_create_stream_profile(ob_stream_type type, ob_format format, ob_error **error)
Create a stream profile object.
OB_EXPORT ob_gyro_intrinsic ob_gyro_stream_get_intrinsic(const ob_stream_profile *profile, ob_error **error)
Get the intrinsic of the gyroscope stream.
OB_EXPORT ob_gyro_sample_rate ob_gyro_stream_profile_get_sample_rate(const ob_stream_profile *profile, ob_error **error)
Get the sampling frequency of the gyroscope stream.
OB_EXPORT ob_lidar_scan_rate ob_lidar_stream_profile_get_scan_rate(const ob_stream_profile *profile, ob_error **error)
Get the scan rate of the LiDAR stream.
OB_EXPORT ob_stream_profile * ob_stream_profile_list_get_video_stream_profile(const ob_stream_profile_list *profile_list, int width, int height, ob_format format, int fps, ob_error **error)
Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matche...
OB_EXPORT void ob_stream_profile_set_type(const ob_stream_profile *profile, ob_stream_type type, ob_error **error)
Set stream profile type.
OB_EXPORT ob_stream_profile * ob_stream_profile_list_get_accel_stream_profile(const ob_stream_profile_list *profile_list, ob_accel_full_scale_range full_scale_range, ob_accel_sample_rate sample_rate, ob_error **error)
Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matche...
OB_EXPORT uint32_t ob_stream_profile_list_get_count(const ob_stream_profile_list *profile_list, ob_error **error)
Get the number of StreamProfile lists.
OB_EXPORT ob_stream_profile * ob_stream_profile_list_get_profile(const ob_stream_profile_list *profile_list, int index, ob_error **error)
Get the corresponding StreamProfile by subscripting.
OB_EXPORT ob_format ob_stream_profile_get_format(const ob_stream_profile *profile, ob_error **error)
Get stream profile format.
OB_EXPORT uint32_t ob_video_stream_profile_get_fps(const ob_stream_profile *profile, ob_error **error)
Get the frame rate of the video stream.
OB_EXPORT void ob_video_stream_profile_set_intrinsic(ob_stream_profile *profile, ob_camera_intrinsic intrinsic, ob_error **error)
Set the intrinsic of the video stream profile.
OB_EXPORT void ob_video_stream_profile_set_distortion(ob_stream_profile *profile, ob_camera_distortion distortion, ob_error **error)
Set the distortion of the video stream profile.
OB_EXPORT void ob_accel_stream_profile_set_intrinsic(ob_stream_profile *profile, ob_accel_intrinsic intrinsic, ob_error **error)
Set the intrinsic of the accelerometer stream.
OB_EXPORT ob_stream_profile * ob_create_lidar_stream_profile(ob_lidar_scan_rate scan_rate, ob_format format, ob_error **error)
Create a LiDAR stream profile object.
OB_EXPORT void ob_delete_stream_profile(const ob_stream_profile *profile, ob_error **error)
Delete the stream configuration.
OB_EXPORT ob_stream_profile * ob_create_video_stream_profile(ob_stream_type type, ob_format format, uint32_t width, uint32_t height, uint32_t fps, ob_error **error)
Create a video stream profile object.
OB_EXPORT void ob_delete_stream_profile_list(const ob_stream_profile_list *profile_list, ob_error **error)
Delete the stream profile list.
OB_EXPORT ob_disparity_param ob_disparity_based_stream_profile_get_disparity_param(const ob_stream_profile *profile, ob_error **error)
Get the process param of the disparity stream.
OB_EXPORT void ob_disparity_based_stream_profile_set_disparity_param(ob_stream_profile *profile, ob_disparity_param param, ob_error **error)
Set the disparity process param of the disparity stream.
OB_EXPORT ob_accel_intrinsic ob_accel_stream_profile_get_intrinsic(const ob_stream_profile *profile, ob_error **error)
Get the intrinsic of the accelerometer stream.
OB_EXPORT ob_stream_profile * ob_create_accel_stream_profile(ob_accel_full_scale_range full_scale_range, ob_accel_sample_rate sample_rate, ob_error **error)
Create a accel stream profile object.
OB_EXPORT ob_stream_profile * ob_create_stream_profile_from_other_stream_profile(const ob_stream_profile *srcProfile, ob_error **error)
Copy the stream profile object from an other stream profile object.
OB_EXPORT void ob_gyro_stream_set_intrinsic(ob_stream_profile *profile, ob_gyro_intrinsic intrinsic, ob_error **error)
Set the intrinsic of the gyroscope stream.
OB_EXPORT uint32_t ob_video_stream_profile_get_width(const ob_stream_profile *profile, ob_error **error)
Get the width of the video stream.
OB_EXPORT ob_stream_profile * ob_create_stream_profile_with_new_format(const ob_stream_profile *profile, ob_format new_format, ob_error **error)
Copy the stream profile object with a new format object.
OB_EXPORT ob_gyro_full_scale_range ob_gyro_stream_profile_get_full_scale_range(const ob_stream_profile *profile, ob_error **error)
Get the full-scale range of the gyroscope stream.
OB_EXPORT ob_stream_profile * ob_stream_profile_list_get_lidar_stream_profile(const ob_stream_profile_list *profile_list, ob_lidar_scan_rate scan_rate, ob_format format, ob_error **error)
Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matche...
OB_EXPORT ob_accel_sample_rate ob_accel_stream_profile_get_sample_rate(const ob_stream_profile *profile, ob_error **error)
Get the sampling frequency of the accelerometer frame.
OB_EXPORT ob_stream_profile * ob_stream_profile_list_get_gyro_stream_profile(const ob_stream_profile_list *profile_list, ob_gyro_full_scale_range full_scale_range, ob_gyro_sample_rate sample_rate, ob_error **error)
Match the corresponding ob_stream_profile through the passed parameters. If there are multiple matche...
OB_EXPORT void ob_stream_profile_set_extrinsic_to(ob_stream_profile *source, const ob_stream_profile *target, ob_extrinsic extrinsic, ob_error **error)
Set the extrinsic for source stream to target stream.
OB_EXPORT void ob_stream_profile_set_extrinsic_to_type(ob_stream_profile *source, const ob_stream_type type, ob_extrinsic extrinsic, ob_error **error)
Set the extrinsic for source stream to target stream type.
OB_EXPORT uint32_t ob_video_stream_profile_get_height(const ob_stream_profile *profile, ob_error **error)
Get the height of the video stream.
OB_EXPORT ob_camera_distortion ob_video_stream_profile_get_distortion(const ob_stream_profile *profile, ob_error **error)
Get the distortion of the video stream profile.
OB_EXPORT ob_camera_intrinsic ob_video_stream_profile_get_intrinsic(const ob_stream_profile *profile, ob_error **error)
Get the intrinsic of the video stream profile.
OB_EXPORT ob_accel_full_scale_range ob_accel_stream_profile_get_full_scale_range(const ob_stream_profile *profile, ob_error **error)
Get the full-scale range of the accelerometer stream.
OB_EXPORT ob_stream_type ob_stream_profile_get_type(const ob_stream_profile *profile, ob_error **error)
Get stream profile type.
OB_EXPORT ob_stream_profile * ob_create_gyro_stream_profile(ob_gyro_full_scale_range full_scale_range, ob_gyro_sample_rate sample_rate, ob_error **error)
Create a gyro stream profile object.
OB_EXPORT ob_extrinsic ob_stream_profile_get_extrinsic_to(const ob_stream_profile *source, ob_stream_profile *target, ob_error **error)
Get the extrinsic for source stream to target stream.
The error class exposed by the SDK, users can get detailed error information according to the error.
Definition ObTypes.h:119