|
OrbbecSDK 2.10.6
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include "ObTypes.h"Go to the source code of this file.
Macros | |
| #define | OB_APP_CONFIG_INDEX_NONE (0u) |
| #define | OB_APP_CONFIG_ITEM(key) |
| #define | OB_APP_CONFIG_ARRAY_ITEM(key, index) |
| #define | OB_APP_CONFIG_ITEM_KEY(item) |
| #define | OB_APP_CONFIG_ITEM_INDEX(item) |
Typedefs | |
| typedef enum OBAppConfigKey | ob_app_config_key |
| typedef uint64_t | OBAppConfigItem |
| Application configuration item. An item combines a configuration key and an optional array index. Non-array keys use OB_APP_CONFIG_ITEM. Array keys use OB_APP_CONFIG_ARRAY_ITEM. The key is stored in bits 0-31 and the index is stored in bits 32-63. | |
| typedef uint64_t | ob_app_config_item |
| typedef enum OBAppConfigValueType | ob_app_config_value_type |
Functions | |
| OB_EXPORT ob_application_config * | ob_device_get_application_config (ob_device *device, ob_error **error) |
| Get the application runtime configuration cache for the device. | |
| OB_EXPORT ob_application_config * | ob_device_get_application_config_by_preset (ob_device *device, const char *preset_name, ob_error **error) |
| Get the application configuration carried by an externally imported preset, by preset name. | |
| OB_EXPORT void | ob_delete_application_config (ob_application_config *config, ob_error **error) |
| Delete an application configuration object. | |
| OB_EXPORT bool | ob_device_is_application_config_supported (ob_device *device, ob_error **error) |
| Check whether the current device supports application runtime configuration import/export. | |
| OB_EXPORT void | ob_application_config_reset (ob_application_config *config, ob_error **error) |
| Reset an application configuration object to default values. | |
| OB_EXPORT void | ob_application_config_set_bool (ob_application_config *config, OBAppConfigItem item, bool value, ob_error **error) |
| Set a bool value. | |
| OB_EXPORT bool | ob_application_config_get_bool (const ob_application_config *config, OBAppConfigItem item, ob_error **error) |
| Get a bool value. | |
| OB_EXPORT void | ob_application_config_set_int (ob_application_config *config, OBAppConfigItem item, int32_t value, ob_error **error) |
| Set an int32_t value. | |
| OB_EXPORT int32_t | ob_application_config_get_int (const ob_application_config *config, OBAppConfigItem item, ob_error **error) |
| Get an int32_t value. | |
| OB_EXPORT void | ob_application_config_set_float (ob_application_config *config, OBAppConfigItem item, float value, ob_error **error) |
| Set a float value. | |
| OB_EXPORT float | ob_application_config_get_float (const ob_application_config *config, OBAppConfigItem item, ob_error **error) |
| Get a float value. | |
| OB_EXPORT void | ob_application_config_set_string (ob_application_config *config, OBAppConfigItem item, const char *value, ob_error **error) |
| Set a string value. | |
| OB_EXPORT const char * | ob_application_config_get_string (const ob_application_config *config, OBAppConfigItem item, ob_error **error) |
| Get a string value. | |
| OB_EXPORT void | ob_application_config_set_struct (ob_application_config *config, OBAppConfigItem item, const void *value, uint32_t valueSize, ob_error **error) |
| Set a fixed-size SDK structure value. | |
| OB_EXPORT void | ob_application_config_get_struct (const ob_application_config *config, OBAppConfigItem item, void *value, uint32_t valueSize, ob_error **error) |
| Get a fixed-size SDK structure value. | |
| OB_EXPORT void | ob_application_config_set_profile (ob_application_config *config, OBAppConfigItem item, const ob_stream_profile *profile, ob_error **error) |
| Set the stream profile for a sensor item. | |
| OB_EXPORT ob_stream_profile * | ob_application_config_get_profile (const ob_application_config *config, OBAppConfigItem item, ob_error **error) |
| Get the stream profile from a sensor item. | |
| OB_EXPORT uint32_t | ob_application_config_get_count (const ob_application_config *config, OBAppConfigKey key, ob_error **error) |
| Get the number of items in an array key. | |
| #define OB_APP_CONFIG_INDEX_NONE (0u) |
Definition at line 50 of file ApplicationConfig.h.
| #define OB_APP_CONFIG_ITEM | ( | key | ) |
Definition at line 51 of file ApplicationConfig.h.
Referenced by ob::ApplicationConfig::deviceDecimation(), ob::ApplicationConfig::hdrMerge(), ob::ApplicationConfig::pointCloud(), ob::ApplicationConfig::setDeviceDecimation(), ob::ApplicationConfig::setHDRMerge(), and ob::ApplicationConfig::setPointCloud().
| #define OB_APP_CONFIG_ARRAY_ITEM | ( | key, | |
| index ) |
Definition at line 52 of file ApplicationConfig.h.
Referenced by ob::ApplicationConfig::sensors(), and ob::ApplicationConfig::setSensor().
| #define OB_APP_CONFIG_ITEM_KEY | ( | item | ) |
Definition at line 53 of file ApplicationConfig.h.
| #define OB_APP_CONFIG_ITEM_INDEX | ( | item | ) |
Definition at line 54 of file ApplicationConfig.h.
| typedef enum OBAppConfigKey ob_app_config_key |
| typedef uint64_t OBAppConfigItem |
Application configuration item. An item combines a configuration key and an optional array index. Non-array keys use OB_APP_CONFIG_ITEM. Array keys use OB_APP_CONFIG_ARRAY_ITEM. The key is stored in bits 0-31 and the index is stored in bits 32-63.
Definition at line 48 of file ApplicationConfig.h.
| typedef uint64_t ob_app_config_item |
Definition at line 48 of file ApplicationConfig.h.
| typedef enum OBAppConfigValueType ob_app_config_value_type |
| enum OBAppConfigKey |
Application configuration key. Each key has a fixed value type and item usage. Keys must stay within the low 32 bits because OBAppConfigItem stores the key in bits 0-31.
| Enumerator | |
|---|---|
| OB_APP_CONFIG_SENSORS | array, sensor list. Use ob_application_config_get_count to get sensor count. |
| OB_APP_CONFIG_SENSOR_TYPE | int32_t, sensor item: OBSensorType. |
| OB_APP_CONFIG_STREAM_ENABLED | bool, sensor item: whether the sensor stream should be started. |
| OB_APP_CONFIG_STREAM_PROFILE | ob_stream_profile, sensor item: stream profile. |
| OB_APP_CONFIG_UNDISTORTION_ENABLED | bool, sensor item: whether undistortion should be enabled. |
| OB_APP_CONFIG_DEVICE_DECIMATION_ENABLED | bool, global item: whether device-level decimation should be applied. |
| OB_APP_CONFIG_DEVICE_DECIMATION | OBPresetResolutionConfig, global item: device-level decimation configuration. Currently applied only by Gemini 435Le. |
| OB_APP_CONFIG_POINTCLOUD_ENABLED | bool, global item: whether point cloud output should be enabled. |
| OB_APP_CONFIG_POINTCLOUD_FORMAT | int32_t, global item: OBFormat, point cloud output format. |
| OB_APP_CONFIG_POINTCLOUD_DECIMATION_FACTOR | int32_t, global item: point cloud decimation factor. |
| OB_APP_CONFIG_POINTCLOUD_ALIGN_MODE | int32_t, global item: OBAlignMode. |
| OB_APP_CONFIG_POINTCLOUD_FRAME_SYNC | bool, global item: whether frame sync should be enabled. |
| OB_APP_CONFIG_POINTCLOUD_ALL_FRAME_TYPE_REQUIRED | bool, global item: false: output on any situation, true: require all frame types. |
| OB_APP_CONFIG_POINTCLOUD_MATCH_TARGET_RESOLUTION | bool, global item: whether to match target resolution. |
| OB_APP_CONFIG_HDR_MERGE_ENABLED | bool, global item: whether HDR merge should be enabled. |
| OB_APP_CONFIG_HDR_MERGE_IR_ENABLED | bool, global item: whether IR frame should be enabled for HDR merge. |
Definition at line 17 of file ApplicationConfig.h.
| enum OBAppConfigValueType |
Application configuration value type.
Definition at line 59 of file ApplicationConfig.h.
| OB_EXPORT ob_application_config * ob_device_get_application_config | ( | ob_device * | device, |
| ob_error ** | error ) |
Get the application runtime configuration cache for the device.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::ApplicationConfig::get(), and ob_device_get_application_config().
| OB_EXPORT ob_application_config * ob_device_get_application_config_by_preset | ( | ob_device * | device, |
| const char * | preset_name, | ||
| ob_error ** | error ) |
Get the application configuration carried by an externally imported preset, by preset name.
| [in] | device | The device object. |
| [in] | preset_name | The preset name to query. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::ApplicationConfig::get(), and ob_device_get_application_config_by_preset().
| OB_EXPORT void ob_delete_application_config | ( | ob_application_config * | config, |
| ob_error ** | error ) |
Delete an application configuration object.
| [in] | config | The application configuration object to be deleted. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_delete_application_config(), and ob::ApplicationConfig::~ApplicationConfig().
Check whether the current device supports application runtime configuration import/export.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::ApplicationConfig::isSupported(), and ob_device_is_application_config_supported().
| OB_EXPORT void ob_application_config_reset | ( | ob_application_config * | config, |
| ob_error ** | error ) |
Reset an application configuration object to default values.
| [in] | config | The application configuration object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_reset(), and ob::ApplicationConfig::reset().
| OB_EXPORT void ob_application_config_set_bool | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| bool | value, | ||
| ob_error ** | error ) |
Set a bool value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to update. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [in] | value | The bool value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_bool(), ob::ApplicationConfig::setDeviceDecimation(), ob::ApplicationConfig::setHDRMerge(), ob::ApplicationConfig::setPointCloud(), and ob::ApplicationConfig::setSensor().
| OB_EXPORT bool ob_application_config_get_bool | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| ob_error ** | error ) |
Get a bool value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to read. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::ApplicationConfig::deviceDecimation(), ob::ApplicationConfig::hdrMerge(), ob_application_config_get_bool(), ob::ApplicationConfig::pointCloud(), and ob::ApplicationConfig::sensors().
| OB_EXPORT void ob_application_config_set_int | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| int32_t | value, | ||
| ob_error ** | error ) |
Set an int32_t value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to update. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [in] | value | The int32_t value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_int(), and ob::ApplicationConfig::setPointCloud().
| OB_EXPORT int32_t ob_application_config_get_int | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| ob_error ** | error ) |
Get an int32_t value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to read. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_get_int(), ob::ApplicationConfig::pointCloud(), and ob::ApplicationConfig::sensors().
| OB_EXPORT void ob_application_config_set_float | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| float | value, | ||
| ob_error ** | error ) |
Set a float value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to update. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [in] | value | The float value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_float().
| OB_EXPORT float ob_application_config_get_float | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| ob_error ** | error ) |
Get a float value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to read. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_get_float().
| OB_EXPORT void ob_application_config_set_string | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| const char * | value, | ||
| ob_error ** | error ) |
Set a string value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to update. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [in] | value | The string value to be set. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_string().
| OB_EXPORT const char * ob_application_config_get_string | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| ob_error ** | error ) |
Get a string value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to read. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_get_string().
| OB_EXPORT void ob_application_config_set_struct | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| const void * | value, | ||
| uint32_t | valueSize, | ||
| ob_error ** | error ) |
Set a fixed-size SDK structure value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to update. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [in] | value | Pointer to the structure value to be copied. |
| [in] | valueSize | Size of the structure value in bytes. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_struct(), and ob::ApplicationConfig::setDeviceDecimation().
| OB_EXPORT void ob_application_config_get_struct | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| void * | value, | ||
| uint32_t | valueSize, | ||
| ob_error ** | error ) |
Get a fixed-size SDK structure value.
| [in] | config | The application configuration object. |
| [in] | item | The configuration item to read. Use OB_APP_CONFIG_ITEM or OB_APP_CONFIG_ARRAY_ITEM to build it. |
| [out] | value | Pointer to the buffer that receives the structure value. |
| [in] | valueSize | Size of the output buffer in bytes. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::ApplicationConfig::deviceDecimation(), and ob_application_config_get_struct().
| OB_EXPORT void ob_application_config_set_profile | ( | ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| const ob_stream_profile * | profile, | ||
| ob_error ** | error ) |
Set the stream profile for a sensor item.
| [in] | config | The application configuration object. |
| [in] | item | The sensor stream profile item to update. Use OB_APP_CONFIG_ARRAY_ITEM with OB_APP_CONFIG_STREAM_PROFILE. |
| [in] | profile | The stream profile to be copied into the config object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_set_profile(), and ob::ApplicationConfig::setSensor().
| OB_EXPORT ob_stream_profile * ob_application_config_get_profile | ( | const ob_application_config * | config, |
| OBAppConfigItem | item, | ||
| ob_error ** | error ) |
Get the stream profile from a sensor item.
| [in] | config | The application configuration object. |
| [in] | item | The sensor stream profile item to read. Use OB_APP_CONFIG_ARRAY_ITEM with OB_APP_CONFIG_STREAM_PROFILE. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_get_profile(), and ob::ApplicationConfig::sensors().
| OB_EXPORT uint32_t ob_application_config_get_count | ( | const ob_application_config * | config, |
| OBAppConfigKey | key, | ||
| ob_error ** | error ) |
Get the number of items in an array key.
Currently only OB_APP_CONFIG_SENSORS is supported.
| [in] | config | The application configuration object. |
| [in] | key | The array key to count. Refer to OBAppConfigKey for available keys. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob_application_config_get_count(), and ob::ApplicationConfig::sensors().