50#define OB_APP_CONFIG_INDEX_NONE (0u)
51#define OB_APP_CONFIG_ITEM(key) ((OBAppConfigItem)(uint32_t)(key))
52#define OB_APP_CONFIG_ARRAY_ITEM(key, index) ((((OBAppConfigItem)(uint32_t)(index)) << 32) | (OBAppConfigItem)(uint32_t)(key))
53#define OB_APP_CONFIG_ITEM_KEY(item) ((OBAppConfigKey)((uint32_t)((item) & 0xFFFFFFFFu)))
54#define OB_APP_CONFIG_ITEM_INDEX(item) ((uint32_t)(((item) >> 32) & 0xFFFFFFFFu))
OBAppConfigValueType
Application configuration value type.
@ OB_APP_CONFIG_VALUE_BOOL
@ OB_APP_CONFIG_VALUE_STRUCT
@ OB_APP_CONFIG_VALUE_FLOAT
@ OB_APP_CONFIG_VALUE_STRING
@ OB_APP_CONFIG_VALUE_INT
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 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.
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_delete_application_config(ob_application_config *config, ob_error **error)
Delete an application configuration object.
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_application_config_reset(ob_application_config *config, ob_error **error)
Reset an application configuration object to default values.
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 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 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 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 ob_application_config * ob_device_get_application_config(ob_device *device, ob_error **error)
Get the application runtime configuration cache for the device.
uint64_t OBAppConfigItem
Application configuration item. An item combines a configuration key and an optional array index....
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_set_struct(ob_application_config *config, OBAppConfigItem item, const void *value, uint32_t valueSize, ob_error **error)
Set a fixed-size SDK structure value.
enum OBAppConfigKey ob_app_config_key
enum OBAppConfigValueType ob_app_config_value_type
OBAppConfigKey
Application configuration key. Each key has a fixed value type and item usage. Keys must stay within ...
@ OB_APP_CONFIG_HDR_MERGE_IR_ENABLED
@ OB_APP_CONFIG_POINTCLOUD_ALIGN_MODE
@ OB_APP_CONFIG_DEVICE_DECIMATION
@ OB_APP_CONFIG_POINTCLOUD_ALL_FRAME_TYPE_REQUIRED
@ OB_APP_CONFIG_POINTCLOUD_MATCH_TARGET_RESOLUTION
@ OB_APP_CONFIG_STREAM_PROFILE
@ OB_APP_CONFIG_UNDISTORTION_ENABLED
@ OB_APP_CONFIG_POINTCLOUD_FRAME_SYNC
@ OB_APP_CONFIG_DEVICE_DECIMATION_ENABLED
@ OB_APP_CONFIG_POINTCLOUD_FORMAT
@ OB_APP_CONFIG_SENSOR_TYPE
@ OB_APP_CONFIG_STREAM_ENABLED
@ OB_APP_CONFIG_POINTCLOUD_ENABLED
@ OB_APP_CONFIG_POINTCLOUD_DECIMATION_FACTOR
@ OB_APP_CONFIG_HDR_MERGE_ENABLED
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_bool(ob_application_config *config, OBAppConfigItem item, bool value, ob_error **error)
Set a bool 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 bool ob_application_config_get_bool(const ob_application_config *config, OBAppConfigItem item, ob_error **error)
Get a bool value.
uint64_t ob_app_config_item
OB_EXPORT void ob_application_config_set_string(ob_application_config *config, OBAppConfigItem item, const char *value, ob_error **error)
Set a string value.
Provide structs commonly used in the SDK, enumerating constant definitions.
struct ob_stream_profile_t ob_stream_profile
struct ob_device_t ob_device
struct ob_application_config_t ob_application_config
The error class exposed by the SDK, users can get detailed error information according to the error.