|
OrbbecSDK 2.5.5
OrbbecSDK: Software-Development-Kit for Orbbec 3D Cameras
|
#include "ObTypes.h"Go to the source code of this file.
Macros | |
| #define | ob_depth_work_mode_list_count ob_depth_work_mode_list_get_count |
| #define | ob_device_preset_list_count ob_device_preset_list_get_count |
Functions | |
| OB_EXPORT ob_depth_work_mode | ob_device_get_current_depth_work_mode (const ob_device *device, ob_error **error) |
| Get the current depth work mode. | |
| OB_EXPORT const char * | ob_device_get_current_depth_work_mode_name (const ob_device *device, ob_error **error) |
| Get current depth mode name. | |
| OB_EXPORT ob_status | ob_device_switch_depth_work_mode (ob_device *device, const ob_depth_work_mode *work_mode, ob_error **error) |
| Switch the depth work mode by ob_depth_work_mode. Prefer to use ob_device_switch_depth_work_mode_by_name to switch depth mode when the complete name of the depth work mode is known. | |
| OB_EXPORT ob_status | ob_device_switch_depth_work_mode_by_name (ob_device *device, const char *mode_name, ob_error **error) |
| Switch the depth work mode by work mode name. | |
| OB_EXPORT ob_depth_work_mode_list * | ob_device_get_depth_work_mode_list (const ob_device *device, ob_error **error) |
| Request the list of supported depth work modes. | |
| OB_EXPORT uint32_t | ob_depth_work_mode_list_get_count (const ob_depth_work_mode_list *work_mode_list, ob_error **error) |
| OB_EXPORT ob_depth_work_mode | ob_depth_work_mode_list_get_item (const ob_depth_work_mode_list *work_mode_list, uint32_t index, ob_error **error) |
| Get the index target of ob_depth_work_mode from work_mode_list. | |
| OB_EXPORT void | ob_delete_depth_work_mode_list (ob_depth_work_mode_list *work_mode_list, ob_error **error) |
| Free the resources of ob_depth_work_mode_list. | |
| OB_EXPORT const char * | ob_device_get_current_preset_name (const ob_device *device, ob_error **error) |
| Get the current preset name. | |
| OB_EXPORT void | ob_device_load_preset (ob_device *device, const char *preset_name, ob_error **error) |
| Get the available preset list. | |
| OB_EXPORT void | ob_device_load_preset_from_json_file (ob_device *device, const char *json_file_path, ob_error **error) |
| Load preset from json string. | |
| OB_EXPORT void | ob_device_load_preset_from_json_data (ob_device *device, const char *presetName, const uint8_t *data, uint32_t size, ob_error **error) |
| Load custom preset from data. | |
| OB_EXPORT void | ob_device_export_current_settings_as_preset_json_file (ob_device *device, const char *json_file_path, ob_error **error) |
| Export current settings as a preset json file. | |
| OB_EXPORT void | ob_device_export_current_settings_as_preset_json_data (ob_device *device, const char *presetName, const uint8_t **data, uint32_t *dataSize, ob_error **error) |
| Export current device settings as a preset json data. | |
| OB_EXPORT ob_device_preset_list * | ob_device_get_available_preset_list (const ob_device *device, ob_error **error) |
| Get the available preset list. | |
| OB_EXPORT void | ob_delete_preset_list (ob_device_preset_list *preset_list, ob_error **error) |
| Delete the available preset list. | |
| OB_EXPORT uint32_t | ob_device_preset_list_get_count (const ob_device_preset_list *preset_list, ob_error **error) |
| Get the number of preset in the preset list. | |
| OB_EXPORT const char * | ob_device_preset_list_get_name (const ob_device_preset_list *preset_list, uint32_t index, ob_error **error) |
| Get the name of the preset in the preset list. | |
| OB_EXPORT bool | ob_device_preset_list_has_preset (const ob_device_preset_list *preset_list, const char *preset_name, ob_error **error) |
| Check if the preset list has the preset. | |
| OB_EXPORT bool | ob_device_is_frame_interleave_supported (const ob_device *device, ob_error **error) |
| Check if the device supports the frame interleave feature. | |
| OB_EXPORT void | ob_device_load_frame_interleave (ob_device *device, const char *frame_interleave_name, ob_error **error) |
| load the frame interleave mode according to frame interleavee name. | |
| OB_EXPORT ob_device_frame_interleave_list * | ob_device_get_available_frame_interleave_list (ob_device *device, ob_error **error) |
| Get the available frame interleave list. | |
| OB_EXPORT void | ob_delete_frame_interleave_list (ob_device_frame_interleave_list *frame_interleave_list, ob_error **error) |
| Delete the available frame interleave list. | |
| OB_EXPORT uint32_t | ob_device_frame_interleave_list_get_count (ob_device_frame_interleave_list *frame_interleave_list, ob_error **error) |
| Get the number of frame interleave in the frame interleave list. | |
| OB_EXPORT const char * | ob_device_frame_interleave_list_get_name (ob_device_frame_interleave_list *frame_interleave_list, uint32_t index, ob_error **error) |
| Get the name of frame interleave in the frame interleave list. | |
| OB_EXPORT bool | ob_device_frame_interleave_list_has_frame_interleave (ob_device_frame_interleave_list *frame_interleave_list, const char *frame_interleave_name, ob_error **error) |
| Check if the interleave ae list has the interleave ae. | |
| OB_EXPORT ob_preset_resolution_config_list * | ob_device_get_available_preset_resolution_config_list (ob_device *device, ob_error **error) |
| OB_EXPORT uint32_t | ob_device_preset_resolution_config_get_count (ob_preset_resolution_config_list *ob_preset_resolution_config_list, ob_error **error) |
| OB_EXPORT OBPresetResolutionConfig | ob_device_preset_resolution_config_list_get_item (const ob_preset_resolution_config_list *ob_preset_resolution_config_list, uint32_t index, ob_error **error) |
| Get the preset resolution in the preset resolution list. | |
| OB_EXPORT void | ob_delete_preset_resolution_config_list (ob_preset_resolution_config_list *ob_preset_resolution_config_list, ob_error **error) |
| Delete the available preset resolution list. | |
| #define ob_depth_work_mode_list_count ob_depth_work_mode_list_get_count |
Definition at line 309 of file Advanced.h.
| #define ob_device_preset_list_count ob_device_preset_list_get_count |
Definition at line 310 of file Advanced.h.
| OB_EXPORT ob_depth_work_mode ob_device_get_current_depth_work_mode | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get the current depth work mode.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getCurrentDepthWorkMode().
| OB_EXPORT const char * ob_device_get_current_depth_work_mode_name | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get current depth mode name.
According the current preset name to return current depth mode name
Referenced by ob::Device::getCurrentDepthModeName().
| OB_EXPORT ob_status ob_device_switch_depth_work_mode | ( | ob_device * | device, |
| const ob_depth_work_mode * | work_mode, | ||
| ob_error ** | error ) |
Switch the depth work mode by ob_depth_work_mode. Prefer to use ob_device_switch_depth_work_mode_by_name to switch depth mode when the complete name of the depth work mode is known.
| [in] | device | The device object. |
| [in] | work_mode | The depth work mode from ob_depth_work_mode_list which is returned by ob_device_get_depth_work_mode_list. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::switchDepthWorkMode().
| OB_EXPORT ob_status ob_device_switch_depth_work_mode_by_name | ( | ob_device * | device, |
| const char * | mode_name, | ||
| ob_error ** | error ) |
Switch the depth work mode by work mode name.
| [in] | device | The device object. |
| [in] | mode_name | The depth work mode name which is equal to ob_depth_work_mode.name. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::switchDepthWorkMode().
| OB_EXPORT ob_depth_work_mode_list * ob_device_get_depth_work_mode_list | ( | const ob_device * | device, |
| ob_error ** | error ) |
Request the list of supported depth work modes.
| [in] | device | The device object. |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getDepthWorkModeList().
| OB_EXPORT uint32_t ob_depth_work_mode_list_get_count | ( | const ob_depth_work_mode_list * | work_mode_list, |
| ob_error ** | error ) |
Referenced by ob::OBDepthWorkModeList::getCount().
| OB_EXPORT ob_depth_work_mode ob_depth_work_mode_list_get_item | ( | const ob_depth_work_mode_list * | work_mode_list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get the index target of ob_depth_work_mode from work_mode_list.
| [in] | work_mode_list | Data structure containing a list of ob_depth_work_mode |
| [in] | index | Index of the target ob_depth_work_mode |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::OBDepthWorkModeList::getOBDepthWorkMode().
| OB_EXPORT void ob_delete_depth_work_mode_list | ( | ob_depth_work_mode_list * | work_mode_list, |
| ob_error ** | error ) |
Free the resources of ob_depth_work_mode_list.
| [in] | work_mode_list | Data structure containing a list of ob_depth_work_mode |
| [out] | error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::OBDepthWorkModeList::~OBDepthWorkModeList().
| OB_EXPORT const char * ob_device_get_current_preset_name | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get the current preset name.
The preset mean a set of parameters or configurations that can be applied to the device to achieve a specific effect or function.
| device | The device object. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getCurrentPresetName().
| OB_EXPORT void ob_device_load_preset | ( | ob_device * | device, |
| const char * | preset_name, | ||
| ob_error ** | error ) |
Get the available preset list.
| device | The device object. |
| preset_name | Pointer to an error object that will be set if an error occurs. The name should be one of the preset names returned by ob_device_get_available_preset_list. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::loadPreset().
| OB_EXPORT void ob_device_load_preset_from_json_file | ( | ob_device * | device, |
| const char * | json_file_path, | ||
| ob_error ** | error ) |
Load preset from json string.
After loading the custom preset, the settings in the custom preset will set to the device immediately.
After loading the custom preset, the available preset list will be appended with the custom preset and named as the file name.
| device | The device object. |
| json_file_path | The json file path. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::loadPresetFromJsonFile().
| OB_EXPORT void ob_device_load_preset_from_json_data | ( | ob_device * | device, |
| const char * | presetName, | ||
| const uint8_t * | data, | ||
| uint32_t | size, | ||
| ob_error ** | error ) |
Load custom preset from data.
After loading the custom preset, the settings in the custom preset will set to the device immediately.
After loading the custom preset, the available preset list will be appended with the custom preset and named as the presetName.
| data | The custom preset data. |
| size | The size of the custom preset data. |
Referenced by ob::Device::loadPresetFromJsonData().
| OB_EXPORT void ob_device_export_current_settings_as_preset_json_file | ( | ob_device * | device, |
| const char * | json_file_path, | ||
| ob_error ** | error ) |
Export current settings as a preset json file.
After exporting the custom preset, the available preset list will be appended with the custom preset and named as the file name.
| device | The device object. |
| json_file_path | The json file path. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::exportSettingsAsPresetJsonFile().
| OB_EXPORT void ob_device_export_current_settings_as_preset_json_data | ( | ob_device * | device, |
| const char * | presetName, | ||
| const uint8_t ** | data, | ||
| uint32_t * | dataSize, | ||
| ob_error ** | error ) |
Export current device settings as a preset json data.
After exporting the preset, a new preset named as the presetName will be added to the available preset list.
| [out] | data | return the preset json data. |
| [out] | dataSize | return the size of the preset json data. |
Referenced by ob::Device::exportSettingsAsPresetJsonData().
| OB_EXPORT ob_device_preset_list * ob_device_get_available_preset_list | ( | const ob_device * | device, |
| ob_error ** | error ) |
Get the available preset list.
| device | The device object. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::getAvailablePresetList().
| OB_EXPORT void ob_delete_preset_list | ( | ob_device_preset_list * | preset_list, |
| ob_error ** | error ) |
Delete the available preset list.
| preset_list | The available preset list. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DevicePresetList::~DevicePresetList().
| OB_EXPORT uint32_t ob_device_preset_list_get_count | ( | const ob_device_preset_list * | preset_list, |
| ob_error ** | error ) |
Get the number of preset in the preset list.
| preset_list | The available preset list. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DevicePresetList::getCount().
| OB_EXPORT const char * ob_device_preset_list_get_name | ( | const ob_device_preset_list * | preset_list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get the name of the preset in the preset list.
| preset_list | The available preset list. |
| index | The index of the preset in the preset list. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DevicePresetList::getName().
| OB_EXPORT bool ob_device_preset_list_has_preset | ( | const ob_device_preset_list * | preset_list, |
| const char * | preset_name, | ||
| ob_error ** | error ) |
Check if the preset list has the preset.
| preset_list | The available preset list. |
| preset_name | The name of the preset. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::DevicePresetList::hasPreset().
| OB_EXPORT bool ob_device_is_frame_interleave_supported | ( | const ob_device * | device, |
| ob_error ** | error ) |
Check if the device supports the frame interleave feature.
| device | The device object. |
| error | Pointer to an error object that will be set if an error occurs. |
Referenced by ob::Device::isFrameInterleaveSupported().
| OB_EXPORT void ob_device_load_frame_interleave | ( | ob_device * | device, |
| const char * | frame_interleave_name, | ||
| ob_error ** | error ) |
load the frame interleave mode according to frame interleavee name.
| device | The device object. |
| frame_interleave_name | The name should be one of the frame interleave names returned by ob_device_get_available_frame_interleave_list. |
| error | Log error messages. |
Referenced by ob::Device::loadFrameInterleave().
| OB_EXPORT ob_device_frame_interleave_list * ob_device_get_available_frame_interleave_list | ( | ob_device * | device, |
| ob_error ** | error ) |
Get the available frame interleave list.
| device | The device object. |
| error | Log error messages. |
Referenced by ob::Device::getAvailableFrameInterleaveList().
| OB_EXPORT void ob_delete_frame_interleave_list | ( | ob_device_frame_interleave_list * | frame_interleave_list, |
| ob_error ** | error ) |
Delete the available frame interleave list.
| frame_interleave_list | The available frame interleave list. |
| error | Log error messages. |
Referenced by ob::DeviceFrameInterleaveList::~DeviceFrameInterleaveList().
| OB_EXPORT uint32_t ob_device_frame_interleave_list_get_count | ( | ob_device_frame_interleave_list * | frame_interleave_list, |
| ob_error ** | error ) |
Get the number of frame interleave in the frame interleave list.
| frame_interleave_list | The available frame interleave list. |
| error | Log error messages. |
Referenced by ob::DeviceFrameInterleaveList::getCount().
| OB_EXPORT const char * ob_device_frame_interleave_list_get_name | ( | ob_device_frame_interleave_list * | frame_interleave_list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get the name of frame interleave in the frame interleave list.
| frame_interleave_list | The available frame interleave list. |
| index | The index of frame interleave in the frame interleave list. |
| error | Log error messages. |
Referenced by ob::DeviceFrameInterleaveList::getName().
| OB_EXPORT bool ob_device_frame_interleave_list_has_frame_interleave | ( | ob_device_frame_interleave_list * | frame_interleave_list, |
| const char * | frame_interleave_name, | ||
| ob_error ** | error ) |
Check if the interleave ae list has the interleave ae.
| frame_interleave_list | The available interleave ae list. |
| frame_interleave_name | The name of the interleave ae. |
| error | Log error messages. |
Referenced by ob::DeviceFrameInterleaveList::hasFrameInterleave().
| OB_EXPORT ob_preset_resolution_config_list * ob_device_get_available_preset_resolution_config_list | ( | ob_device * | device, |
| ob_error ** | error ) |
Referenced by ob::Device::getAvailablePresetResolutionConfigList().
| OB_EXPORT uint32_t ob_device_preset_resolution_config_get_count | ( | ob_preset_resolution_config_list * | ob_preset_resolution_config_list, |
| ob_error ** | error ) |
Referenced by ob::PresetResolutionConfigList::getCount().
| OB_EXPORT OBPresetResolutionConfig ob_device_preset_resolution_config_list_get_item | ( | const ob_preset_resolution_config_list * | ob_preset_resolution_config_list, |
| uint32_t | index, | ||
| ob_error ** | error ) |
Get the preset resolution in the preset resolution list.
| ob_preset_resolution_config_list | The available preset resolution list. |
| index | The index of preset resolution in the preset resolution list. |
| error | Log error messages. |
Referenced by ob::PresetResolutionConfigList::getPresetResolutionRatioConfig().
| OB_EXPORT void ob_delete_preset_resolution_config_list | ( | ob_preset_resolution_config_list * | ob_preset_resolution_config_list, |
| ob_error ** | error ) |
Delete the available preset resolution list.
| frame_interleave_list | The available preset resolution list. |
| error | Log error messages. |
Referenced by ob::PresetResolutionConfigList::~PresetResolutionConfigList().