#include <stdint.h>
#include "tofi_error.h"
#include "tofi_util.h"
Go to the source code of this file.
◆ NO_OF_PHASES
◆ TOFI_COMPUTE_API
◆ FreeTofiCompute()
Function to release memory for TOFI compute context structure including its parameters like Depth/AB/Confidence memory buffers
- Parameters
-
[in,out] | TofiComputeContext | *p_tofi_compute_context: pointer to the TOFI compute context structure to be freed |
Definition at line 147 of file tofiCompute.cpp.
◆ InitTofiCompute()
Function to Initialize the configuration for TOFI compute context including memory allocation for parameters like Depth/AB/Confidence memory buffers
- Parameters
-
[in] | const | void *p_tofi_cal_config: pointer to calibration configuration |
[out] | uint32_t | *p_status: pointer to status, assigned as ADI_TOFI_SUCCESS on success, assigned as error code incase of failure |
- Returns
- TofiComputeContext *: returns pointer to TofiComputeContext on success, returns NULL on failure
Definition at line 22 of file tofiCompute.cpp.
◆ TofiCompute()
Function to process input frame data and output Depth/AB/Confidence frame data.
- Parameters
-
[in] | const | uint16_t *const input_frame: Input frame data(unsigned short format) buffer |
[in] | TofiComputeContext | *const p_tofi_compute_context: pointer to the TOFI compute context structure |
[in] | TemperatureInfo | *p_temperature: pointer to the temperature data, temperature correction applied based on the value, no temperature correction is applied if this pointer is NULL |
- Returns
- int: returns ADI_TOFI_SUCCESS(0) on success, returns error code (>1) on failure
Definition at line 106 of file tofiCompute.cpp.
◆ TofiSetABOnly()
Function to enable/disable AB only output
- Parameters
-
[in] | TofiConfig | *p_tofi_cal_config: pointer to the TOFI |
[in] | int | option: '1' for enable & '0' for disable |