# TYCamport3: TYApi.h Source File

TYApi.h
Go to the documentation of this file.
#ifndef TY_API_H_
#define TY_API_H_
#include <stddef.h>
#include <stdlib.h>
#ifdef WIN32
# ifndef _WIN32
# define _WIN32
# endif
#endif
#ifdef _WIN32
# ifndef _STDINT_H
# if defined(_MSC_VER) && _MSC_VER < 1600
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
# else
# include <stdint.h>
# endif
# endif
#else
# include <stdint.h>
#endif
// copy stdbool.h here in case bool not defined or <stdbool.h> cant be found
#ifndef _STDBOOL_H
# define _STDBOOL_H
# define __bool_true_false_are_defined 1
# ifndef __cplusplus
# define bool _Bool
# define true 1
# define false 0
# endif
#endif
#ifdef _WIN32
# include <WinSock2.h>
# include <Windows.h>
# ifdef TY_STATIC_LIB
# define TY_DLLIMPORT
# define TY_DLLEXPORT
# else
# define TY_DLLIMPORT __declspec(dllimport)
# define TY_DLLEXPORT __declspec(dllexport)
# endif
# define TY_STDC __stdcall
# define TY_CDEC __cdecl
# ifdef RGB
# undef RGB
# endif
#else
# ifdef TY_STATIC_LIB
# define TY_DLLIMPORT
# define TY_DLLEXPORT
# else
# define TY_DLLIMPORT __attribute__((visibility("default")))
# define TY_DLLEXPORT __attribute__((visibility("default")))
# endif
# if defined(__i386__)
# define TY_STDC __attribute__((stdcall))
# define TY_CDEC __attribute__((cdecl))
# else
# define TY_STDC
# define TY_CDEC
# endif
#endif
#ifdef TY_BUILDING_LIB
# define TY_EXPORT TY_DLLEXPORT
#else
# define TY_EXPORT TY_DLLIMPORT
#endif
#if !defined(TY_EXTC)
# if defined(__cplusplus)
# define TY_EXTC extern "C"
# else
# define TY_EXTC
# endif
#endif
#include "TYVer.h"
//------------------------------------------------------------------------------
typedef enum TY_STATUS_LIST :int32_t
{
TY_STATUS_OK = 0,
TY_STATUS_ERROR = -1001,
TY_STATUS_NOT_INITED = -1002,
TY_STATUS_NOT_IMPLEMENTED = -1003,
TY_STATUS_NOT_PERMITTED = -1004,
TY_STATUS_DEVICE_ERROR = -1005,
TY_STATUS_INVALID_PARAMETER = -1006,
TY_STATUS_INVALID_HANDLE = -1007,
TY_STATUS_INVALID_COMPONENT = -1008,
TY_STATUS_INVALID_FEATURE = -1009,
TY_STATUS_WRONG_TYPE = -1010,
TY_STATUS_WRONG_SIZE = -1011,
TY_STATUS_OUT_OF_MEMORY = -1012,
TY_STATUS_OUT_OF_RANGE = -1013,
TY_STATUS_TIMEOUT = -1014,
TY_STATUS_WRONG_MODE = -1015,
TY_STATUS_BUSY = -1016,
TY_STATUS_IDLE = -1017,
TY_STATUS_NO_DATA = -1018,
TY_STATUS_NO_BUFFER = -1019,
TY_STATUS_NULL_POINTER = -1020,
TY_STATUS_READONLY_FEATURE = -1021,
TY_STATUS_INVALID_DESCRIPTOR= -1022,
TY_STATUS_INVALID_INTERFACE = -1023,
TY_STATUS_FIRMWARE_ERROR = -1024,
/* ret_code from remote device */
TY_STATUS_DEV_EPERM = -1,
TY_STATUS_DEV_EIO = -5,
TY_STATUS_DEV_ENOMEM = -12,
TY_STATUS_DEV_EBUSY = -16,
TY_STATUS_DEV_EINVAL = -22,
/* endof ret_code from remote device */
}TY_STATUS_LIST;
typedef int32_t TY_STATUS;
typedef enum TY_FW_ERRORCODE_LIST:uint32_t
{
TY_FW_ERRORCODE_CAM0_NOT_DETECTED = 0x00000001,
TY_FW_ERRORCODE_CAM1_NOT_DETECTED = 0x00000002,
TY_FW_ERRORCODE_CAM2_NOT_DETECTED = 0x00000004,
TY_FW_ERRORCODE_POE_NOT_INIT = 0x00000008,
TY_FW_ERRORCODE_RECMAP_NOT_CORRECT = 0x00000010,
TY_FW_ERRORCODE_LOOKUPTABLE_NOT_CORRECT = 0x00000020,
TY_FW_ERRORCODE_DRV8899_NOT_INIT = 0x00000040,
TY_FW_ERRORCODE_CONFIG_NOT_FOUND = 0x00010000,
TY_FW_ERRORCODE_CONFIG_NOT_CORRECT = 0x00020000,
TY_FW_ERRORCODE_XML_NOT_FOUND = 0x00040000,
TY_FW_ERRORCODE_XML_NOT_CORRECT = 0x00080000,
TY_FW_ERRORCODE_XML_OVERRIDE_FAILED = 0x00100000,
TY_FW_ERRORCODE_CAM_INIT_FAILED = 0x00200000,
TY_FW_ERRORCODE_LASER_INIT_FAILED = 0x00400000,
}TY_FW_ERRORCODE_LIST;
typedef uint32_t TY_FW_ERRORCODE;
typedef enum TY_EVENT_LIST :int32_t
{
TY_EVENT_DEVICE_OFFLINE = -2001,
TY_EVENT_LICENSE_ERROR = -2002,
TY_EVENT_FW_INIT_ERROR = -2003,
}TY_ENENT_LIST;
typedef int32_t TY_EVENT;
typedef void* TY_INTERFACE_HANDLE;
typedef void* TY_DEV_HANDLE;
typedef enum TY_DEVICE_COMPONENT_LIST :uint32_t
{
TY_COMPONENT_DEVICE = 0x80000000,
TY_COMPONENT_DEPTH_CAM = 0x00010000,
TY_COMPONENT_IR_CAM_LEFT = 0x00040000,
TY_COMPONENT_IR_CAM_RIGHT = 0x00080000,
TY_COMPONENT_RGB_CAM_LEFT = 0x00100000,
TY_COMPONENT_RGB_CAM_RIGHT = 0x00200000,
TY_COMPONENT_LASER = 0x00400000,
TY_COMPONENT_IMU = 0x00800000,
TY_COMPONENT_BRIGHT_HISTO = 0x01000000,
TY_COMPONENT_STORAGE = 0x02000000,
TY_COMPONENT_RGB_CAM = TY_COMPONENT_RGB_CAM_LEFT
}TY_DEVICE_COMPONENT_LIST;
typedef uint32_t TY_COMPONENT_ID;
//------------------------------------------------------------------------------
typedef enum TY_FEATURE_TYPE_LIST :uint32_t
{
TY_FEATURE_INT = 0x1000,
TY_FEATURE_FLOAT = 0X2000,
TY_FEATURE_ENUM = 0x3000,
TY_FEATURE_BOOL = 0x4000,
TY_FEATURE_STRING = 0x5000,
TY_FEATURE_BYTEARRAY = 0x6000,
TY_FEATURE_STRUCT = 0x7000,
}TY_FEATURE_TYPE_LIST;
typedef uint32_t TY_FEATURE_TYPE;
typedef enum TY_FEATURE_ID_LIST :uint32_t
{
TY_STRUCT_CAM_INTRINSIC = 0x0000 | TY_FEATURE_STRUCT,
TY_STRUCT_EXTRINSIC_TO_DEPTH = 0x0001 | TY_FEATURE_STRUCT,
TY_STRUCT_EXTRINSIC_TO_IR_LEFT = 0x0002 | TY_FEATURE_STRUCT,
TY_STRUCT_CAM_DISTORTION = 0x0006 | TY_FEATURE_STRUCT,
TY_STRUCT_CAM_CALIB_DATA = 0x0007 | TY_FEATURE_STRUCT,
TY_STRUCT_CAM_RECTIFIED_INTRI = 0x0008 | TY_FEATURE_STRUCT,
TY_BYTEARRAY_CUSTOM_BLOCK = 0x000A | TY_FEATURE_BYTEARRAY,
TY_BYTEARRAY_ISP_BLOCK = 0x000B | TY_FEATURE_BYTEARRAY,
TY_INT_PERSISTENT_IP = 0x0010 | TY_FEATURE_INT,
TY_INT_PERSISTENT_SUBMASK = 0x0011 | TY_FEATURE_INT,
TY_INT_PERSISTENT_GATEWAY = 0x0012 | TY_FEATURE_INT,
TY_BOOL_GVSP_RESEND = 0x0013 | TY_FEATURE_BOOL,
TY_INT_PACKET_DELAY = 0x0014 | TY_FEATURE_INT,
TY_INT_ACCEPTABLE_PERCENT = 0x0015 | TY_FEATURE_INT,
TY_INT_NTP_SERVER_IP = 0x0016 | TY_FEATURE_INT,
TY_INT_PACKET_SIZE = 0x0017 | TY_FEATURE_INT,
TY_INT_LINK_CMD_TIMEOUT = 0x0018 | TY_FEATURE_INT,
TY_STRUCT_CAM_STATISTICS = 0x00ff | TY_FEATURE_STRUCT,
TY_INT_WIDTH_MAX = 0x0100 | TY_FEATURE_INT,
TY_INT_HEIGHT_MAX = 0x0101 | TY_FEATURE_INT,
TY_INT_OFFSET_X = 0x0102 | TY_FEATURE_INT,
TY_INT_OFFSET_Y = 0x0103 | TY_FEATURE_INT,
TY_INT_WIDTH = 0x0104 | TY_FEATURE_INT,
TY_INT_HEIGHT = 0x0105 | TY_FEATURE_INT,
TY_ENUM_IMAGE_MODE = 0x0109 | TY_FEATURE_ENUM,
TY_FLOAT_SCALE_UNIT = 0x010a | TY_FEATURE_FLOAT,
TY_ENUM_TRIGGER_POL = 0x0201 | TY_FEATURE_ENUM,
TY_INT_FRAME_PER_TRIGGER = 0x0202 | TY_FEATURE_INT,
TY_STRUCT_TRIGGER_PARAM = 0x0523 | TY_FEATURE_STRUCT,
TY_STRUCT_TRIGGER_PARAM_EX = 0x0525 | TY_FEATURE_STRUCT,
TY_STRUCT_TRIGGER_TIMER_LIST = 0x0526 | TY_FEATURE_STRUCT,
TY_STRUCT_TRIGGER_TIMER_PERIOD = 0x0527 | TY_FEATURE_STRUCT,
TY_BOOL_KEEP_ALIVE_ONOFF = 0x0203 | TY_FEATURE_BOOL,
TY_INT_KEEP_ALIVE_TIMEOUT = 0x0204 | TY_FEATURE_INT,
TY_BOOL_CMOS_SYNC = 0x0205 | TY_FEATURE_BOOL,
TY_INT_TRIGGER_DELAY_US = 0x0206 | TY_FEATURE_INT,
TY_BOOL_TRIGGER_OUT_IO = 0x0207 | TY_FEATURE_BOOL,
TY_INT_TRIGGER_DURATION_US = 0x0208 | TY_FEATURE_INT,
TY_ENUM_STREAM_ASYNC = 0x0209 | TY_FEATURE_ENUM,
TY_INT_CAPTURE_TIME_US = 0x0210 | TY_FEATURE_INT,
TY_ENUM_TIME_SYNC_TYPE = 0x0211 | TY_FEATURE_ENUM,
TY_BOOL_TIME_SYNC_READY = 0x0212 | TY_FEATURE_BOOL,
TY_BOOL_FLASHLIGHT = 0x0213 | TY_FEATURE_BOOL,
TY_INT_FLASHLIGHT_INTENSITY = 0x0214 | TY_FEATURE_INT,
TY_STRUCT_DO0_WORKMODE = 0x0215 | TY_FEATURE_STRUCT,
TY_STRUCT_DI0_WORKMODE = 0x0216 | TY_FEATURE_STRUCT,
TY_STRUCT_DO1_WORKMODE = 0x0217 | TY_FEATURE_STRUCT,
TY_STRUCT_DI1_WORKMODE = 0x0218 | TY_FEATURE_STRUCT,
TY_STRUCT_DO2_WORKMODE = 0x0219 | TY_FEATURE_STRUCT,
TY_STRUCT_DI2_WORKMODE = 0x0220 | TY_FEATURE_STRUCT,
TY_BOOL_AUTO_EXPOSURE = 0x0300 | TY_FEATURE_BOOL,
TY_INT_EXPOSURE_TIME = 0x0301 | TY_FEATURE_INT,
TY_BOOL_AUTO_GAIN = 0x0302 | TY_FEATURE_BOOL,
TY_INT_GAIN = 0x0303 | TY_FEATURE_INT,
TY_BOOL_AUTO_AWB = 0x0304 | TY_FEATURE_BOOL,
TY_STRUCT_AEC_ROI = 0x0305 | TY_FEATURE_STRUCT,
TY_INT_TOF_HDR_RATIO = 0x0306 | TY_FEATURE_INT,
TY_INT_TOF_JITTER_THRESHOLD = 0x0307 | TY_FEATURE_INT,
TY_INT_LASER_POWER = 0x0500 | TY_FEATURE_INT,
TY_BOOL_LASER_AUTO_CTRL = 0x0501 | TY_FEATURE_BOOL,
TY_BOOL_UNDISTORTION = 0x0510 | TY_FEATURE_BOOL,
TY_BOOL_BRIGHTNESS_HISTOGRAM = 0x0511 | TY_FEATURE_BOOL,
TY_BOOL_DEPTH_POSTPROC = 0x0512 | TY_FEATURE_BOOL,
TY_INT_R_GAIN = 0x0520 | TY_FEATURE_INT,
TY_INT_G_GAIN = 0x0521 | TY_FEATURE_INT,
TY_INT_B_GAIN = 0x0522 | TY_FEATURE_INT,
TY_INT_ANALOG_GAIN = 0x0524 | TY_FEATURE_INT,
TY_BOOL_HDR = 0x0525 | TY_FEATURE_BOOL,
TY_BYTEARRAY_HDR_PARAMETER = 0x0526 | TY_FEATURE_BYTEARRAY,
TY_BOOL_IMU_DATA_ONOFF = 0x0600 | TY_FEATURE_BOOL,
TY_STRUCT_IMU_ACC_BIAS = 0x0601 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_ACC_MISALIGNMENT = 0x0602 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_ACC_SCALE = 0x0603 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_GYRO_BIAS = 0x0604 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_GYRO_MISALIGNMENT = 0x0605 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_GYRO_SCALE = 0x0606 | TY_FEATURE_STRUCT,
TY_STRUCT_IMU_CAM_TO_IMU = 0x0607 | TY_FEATURE_STRUCT,
TY_ENUM_IMU_FPS = 0x0608 | TY_FEATURE_ENUM,
TY_INT_SGBM_IMAGE_NUM = 0x0610 | TY_FEATURE_INT,
TY_INT_SGBM_DISPARITY_NUM = 0x0611 | TY_FEATURE_INT,
TY_INT_SGBM_DISPARITY_OFFSET = 0x0612 | TY_FEATURE_INT,
TY_INT_SGBM_MATCH_WIN_HEIGHT = 0x0613 | TY_FEATURE_INT,
TY_INT_SGBM_SEMI_PARAM_P1 = 0x0614 | TY_FEATURE_INT,
TY_INT_SGBM_SEMI_PARAM_P2 = 0x0615 | TY_FEATURE_INT,
TY_INT_SGBM_UNIQUE_FACTOR = 0x0616 | TY_FEATURE_INT,
TY_INT_SGBM_UNIQUE_ABSDIFF = 0x0617 | TY_FEATURE_INT,
TY_INT_SGBM_COST_PARAM = 0x0618 | TY_FEATURE_INT,
TY_BOOL_SGBM_HFILTER_HALF_WIN = 0x0619 | TY_FEATURE_BOOL,
TY_INT_SGBM_MATCH_WIN_WIDTH = 0x061A | TY_FEATURE_INT,
TY_BOOL_SGBM_MEDFILTER = 0x061B | TY_FEATURE_BOOL,
TY_BOOL_SGBM_LRC = 0x061C | TY_FEATURE_BOOL,
TY_INT_SGBM_LRC_DIFF = 0x061D | TY_FEATURE_INT,
TY_INT_SGBM_MEDFILTER_THRESH = 0x061E | TY_FEATURE_INT,
TY_INT_SGBM_SEMI_PARAM_P1_SCALE = 0x061F | TY_FEATURE_INT,
TY_ENUM_DEPTH_QUALITY = 0x0900 | TY_FEATURE_ENUM,
TY_INT_FILTER_THRESHOLD = 0x0901 | TY_FEATURE_INT,
TY_INT_TOF_CHANNEL = 0x0902 | TY_FEATURE_INT,
TY_INT_TOF_MODULATION_THRESHOLD = 0x0903 | TY_FEATURE_INT,
TY_STRUCT_TOF_FREQ = 0x0904 | TY_FEATURE_STRUCT,
TY_BOOL_TOF_ANTI_INTERFERENCE = 0x0905 | TY_FEATURE_BOOL,
}TY_FEATURE_ID_LIST;
typedef uint32_t TY_FEATURE_ID;
typedef enum TY_DEPTH_QUALITY_LIST :uint32_t
{
TY_DEPTH_QUALITY_BASIC = 1,
TY_DEPTH_QUALITY_MEDIUM = 2,
TY_DEPTH_QUALITY_HIGH = 4,
}TY_DEPTH_QUALITY_LIST;
typedef uint32_t TY_DEPTH_QUALITY;
typedef enum TY_TRIGGER_POL_LIST :uint32_t
{
TY_TRIGGER_POL_FALLINGEDGE = 0,
TY_TRIGGER_POL_RISINGEDGE = 1,
}TY_TRIGGER_POL_LIST;
typedef uint32_t TY_TRIGGER_POL;
typedef enum TY_INTERFACE_TYPE_LIST :uint32_t
{
TY_INTERFACE_UNKNOWN = 0,
TY_INTERFACE_RAW = 1,
TY_INTERFACE_USB = 2,
TY_INTERFACE_ETHERNET = 4,
TY_INTERFACE_IEEE80211 = 8,
TY_INTERFACE_ALL = 0xffff,
}TY_INTERFACE_TYPE_LIST;
typedef uint32_t TY_INTERFACE_TYPE;
typedef enum TY_ACCESS_MODE_LIST :uint32_t
{
TY_ACCESS_READABLE = 0x1,
TY_ACCESS_WRITABLE = 0x2,
}TY_ACCESS_MODE_LIST;
typedef uint8_t TY_ACCESS_MODE;
typedef enum TY_STREAM_ASYNC_MODE_LIST :uint32_t
{
TY_STREAM_ASYNC_OFF = 0,
TY_STREAM_ASYNC_DEPTH = 1,
TY_STREAM_ASYNC_RGB = 2,
TY_STREAM_ASYNC_DEPTH_RGB = 3,
TY_STREAM_ASYNC_ALL = 0xff,
}TY_STREAM_ASYNC_MODE_LIST;
typedef uint8_t TY_STREAM_ASYNC_MODE;
//------------------------------------------------------------------------------
typedef enum TY_PIXEL_BITS_LIST :uint32_t {
TY_PIXEL_8BIT = 0x1 << 28,
TY_PIXEL_16BIT = 0x2 << 28,
TY_PIXEL_24BIT = 0x3 << 28,
TY_PIXEL_32BIT = 0x4 << 28,
TY_PIXEL_10BIT = 0x5 << 28,
TY_PIXEL_12BIT = 0x6 << 28,
TY_PIXEL_14BIT = 0x7 << 28,
TY_PIXEL_48BIT = (uint32_t)0x8 << 28,
TY_PIXEL_64BIT = (uint32_t)0xa << 28,
}TY_PIXEL_BITS_LIST;
typedef uint32_t TY_PIXEL_BITS;
typedef enum TY_PIXEL_FORMAT_LIST :uint32_t {
TY_PIXEL_FORMAT_UNDEFINED = 0,
TY_PIXEL_FORMAT_MONO = (TY_PIXEL_8BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_BAYER8GB = (TY_PIXEL_8BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_BAYER8BG = (TY_PIXEL_8BIT | (0x2 << 24)),
TY_PIXEL_FORMAT_BAYER8GR = (TY_PIXEL_8BIT | (0x3 << 24)),
TY_PIXEL_FORMAT_BAYER8RG = (TY_PIXEL_8BIT | (0x4 << 24)),
TY_PIXEL_FORMAT_BAYER8GRBG = TY_PIXEL_FORMAT_BAYER8GB,
TY_PIXEL_FORMAT_BAYER8RGGB = TY_PIXEL_FORMAT_BAYER8BG,
TY_PIXEL_FORMAT_BAYER8GBRG = TY_PIXEL_FORMAT_BAYER8GR,
TY_PIXEL_FORMAT_BAYER8BGGR = TY_PIXEL_FORMAT_BAYER8RG,
TY_PIXEL_FORMAT_CSI_MONO10 = (TY_PIXEL_10BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER10GRBG = (TY_PIXEL_10BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER10RGGB = (TY_PIXEL_10BIT | (0x2 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER10GBRG = (TY_PIXEL_10BIT | (0x3 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER10BGGR = (TY_PIXEL_10BIT | (0x4 << 24)),
TY_PIXEL_FORMAT_CSI_MONO12 = (TY_PIXEL_12BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER12GRBG = (TY_PIXEL_12BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER12RGGB = (TY_PIXEL_12BIT | (0x2 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER12GBRG = (TY_PIXEL_12BIT | (0x3 << 24)),
TY_PIXEL_FORMAT_CSI_BAYER12BGGR = (TY_PIXEL_12BIT | (0x4 << 24)),
TY_PIXEL_FORMAT_DEPTH16 = (TY_PIXEL_16BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_YVYU = (TY_PIXEL_16BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_YUYV = (TY_PIXEL_16BIT | (0x2 << 24)),
TY_PIXEL_FORMAT_MONO16 = (TY_PIXEL_16BIT | (0x3 << 24)),
TY_PIXEL_FORMAT_TOF_IR_MONO16 = (TY_PIXEL_64BIT | (0x4 << 24)),
TY_PIXEL_FORMAT_RGB = (TY_PIXEL_24BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_BGR = (TY_PIXEL_24BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_JPEG = (TY_PIXEL_24BIT | (0x2 << 24)),
TY_PIXEL_FORMAT_MJPG = (TY_PIXEL_24BIT | (0x3 << 24)),
TY_PIXEL_FORMAT_RGB48 = (TY_PIXEL_48BIT | (0x0 << 24)),
TY_PIXEL_FORMAT_BGR48 = (TY_PIXEL_48BIT | (0x1 << 24)),
TY_PIXEL_FORMAT_XYZ48 = (TY_PIXEL_48BIT | (0x2 << 24)),
}TY_PIXEL_FORMAT_LIST;
typedef uint32_t TY_PIXEL_FORMAT;
typedef enum TY_RESOLUTION_MODE_LIST :uint32_t
{
TY_RESOLUTION_MODE_160x100 = (160<<12)+100,
TY_RESOLUTION_MODE_160x120 = (160<<12)+120,
TY_RESOLUTION_MODE_240x320 = (240<<12)+320,
TY_RESOLUTION_MODE_320x180 = (320<<12)+180,
TY_RESOLUTION_MODE_320x200 = (320<<12)+200,
TY_RESOLUTION_MODE_320x240 = (320<<12)+240,
TY_RESOLUTION_MODE_480x640 = (480<<12)+640,
TY_RESOLUTION_MODE_640x360 = (640<<12)+360,
TY_RESOLUTION_MODE_640x400 = (640<<12)+400,
TY_RESOLUTION_MODE_640x480 = (640<<12)+480,
TY_RESOLUTION_MODE_960x1280 = (960<<12)+1280,
TY_RESOLUTION_MODE_1280x720 = (1280<<12)+720,
TY_RESOLUTION_MODE_1280x800 = (1280<<12)+800,
TY_RESOLUTION_MODE_1280x960 = (1280<<12)+960,
TY_RESOLUTION_MODE_1920x1080 = (1920<<12)+1080,
TY_RESOLUTION_MODE_2560x1920 = (2560<<12)+1920,
TY_RESOLUTION_MODE_2592x1944 = (2592<<12)+1944,
TY_RESOLUTION_MODE_1920x1440 = (1920<<12)+1440,
TY_RESOLUTION_MODE_240x96 = (240<<12)+96,
}TY_RESOLUTION_MODE_LIST;
typedef int32_t TY_RESOLUTION_MODE;
#define TY_DECLARE_IMAGE_MODE0(pix, res) \
TY_IMAGE_MODE_##pix##_##res = TY_PIXEL_FORMAT_##pix | TY_RESOLUTION_MODE_##res
#define TY_DECLARE_IMAGE_MODE1(pix) \
TY_DECLARE_IMAGE_MODE0(pix, 160x100), \
TY_DECLARE_IMAGE_MODE0(pix, 160x120), \
TY_DECLARE_IMAGE_MODE0(pix, 320x180), \
TY_DECLARE_IMAGE_MODE0(pix, 320x200), \
TY_DECLARE_IMAGE_MODE0(pix, 320x240), \
TY_DECLARE_IMAGE_MODE0(pix, 480x640), \
TY_DECLARE_IMAGE_MODE0(pix, 640x360), \
TY_DECLARE_IMAGE_MODE0(pix, 640x400), \
TY_DECLARE_IMAGE_MODE0(pix, 640x480), \
TY_DECLARE_IMAGE_MODE0(pix, 960x1280), \
TY_DECLARE_IMAGE_MODE0(pix, 1280x720), \
TY_DECLARE_IMAGE_MODE0(pix, 1280x960), \
TY_DECLARE_IMAGE_MODE0(pix, 1280x800), \
TY_DECLARE_IMAGE_MODE0(pix, 1920x1080), \
TY_DECLARE_IMAGE_MODE0(pix, 2560x1920), \
TY_DECLARE_IMAGE_MODE0(pix, 2592x1944), \
TY_DECLARE_IMAGE_MODE0(pix, 1920x1440), \
TY_DECLARE_IMAGE_MODE0(pix, 240x96)
typedef enum TY_IMAGE_MODE_LIST:uint32_t
{
TY_DECLARE_IMAGE_MODE1(MONO),
TY_DECLARE_IMAGE_MODE1(MONO16),
TY_DECLARE_IMAGE_MODE1(TOF_IR_MONO16),
TY_DECLARE_IMAGE_MODE1(DEPTH16),
TY_DECLARE_IMAGE_MODE1(YVYU),
TY_DECLARE_IMAGE_MODE1(YUYV),
TY_DECLARE_IMAGE_MODE1(RGB),
TY_DECLARE_IMAGE_MODE1(JPEG),
TY_DECLARE_IMAGE_MODE1(BAYER8GB),
TY_DECLARE_IMAGE_MODE1(BAYER8BG),
TY_DECLARE_IMAGE_MODE1(BAYER8GR),
TY_DECLARE_IMAGE_MODE1(BAYER8RG),
TY_DECLARE_IMAGE_MODE1(BAYER8GRBG),
TY_DECLARE_IMAGE_MODE1(BAYER8RGGB),
TY_DECLARE_IMAGE_MODE1(BAYER8GBRG),
TY_DECLARE_IMAGE_MODE1(BAYER8BGGR),
TY_DECLARE_IMAGE_MODE1(CSI_MONO10),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER10GRBG),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER10RGGB),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER10GBRG),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER10BGGR),
TY_DECLARE_IMAGE_MODE1(CSI_MONO12),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER12GRBG),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER12RGGB),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER12GBRG),
TY_DECLARE_IMAGE_MODE1(CSI_BAYER12BGGR),
TY_DECLARE_IMAGE_MODE1(MJPG),
TY_DECLARE_IMAGE_MODE1(RGB48),
TY_DECLARE_IMAGE_MODE1(BGR48),
TY_DECLARE_IMAGE_MODE1(BGR),
TY_DECLARE_IMAGE_MODE1(XYZ48)
}TY_IMAGE_MODE_LIST;
typedef uint32_t TY_IMAGE_MODE;
#undef TY_DECLARE_IMAGE_MODE0
#undef TY_DECLARE_IMAGE_MODE1
typedef enum TY_TRIGGER_MODE_LIST :uint32_t
{
TY_TRIGGER_MODE_OFF = 0,
TY_TRIGGER_MODE_SLAVE = 1,
TY_TRIGGER_MODE_M_SIG = 2,
TY_TRIGGER_MODE_M_PER = 3,
TY_TRIGGER_MODE_SIG_PASS = 18,
TY_TRIGGER_MODE_PER_PASS = 19,
TY_TRIGGER_MODE_TIMER_LIST = 20,
TY_TRIGGER_MODE_TIMER_PERIOD= 21,
TY_TRIGGER_MODE_PER_PASS2 = 30,
TY_TRIGGER_WORK_MODE31 = 31,
TY_TRIGGER_MODE_SIG_LASER = 34,
}TY_TRIGGER_MODE_LIST;
typedef int16_t TY_TRIGGER_MODE;
typedef enum TY_TIME_SYNC_TYPE_LIST :uint32_t
{
TY_TIME_SYNC_TYPE_NONE = 0,
TY_TIME_SYNC_TYPE_HOST = 1,
TY_TIME_SYNC_TYPE_NTP = 2,
TY_TIME_SYNC_TYPE_PTP = 3,
TY_TIME_SYNC_TYPE_CAN = 4,
TY_TIME_SYNC_TYPE_PTP_MASTER = 5,
}TY_TIME_SYNC_TYPE_LIST;
typedef uint32_t TY_TIME_SYNC_TYPE;
typedef enum: uint32_t{
/* depends on external power supply */
TY_EXT_SUP = 0,
TY_DO_5V = 1,
TY_DO_12V = 2,
} TY_E_VOLT_T_LIST;
typedef uint32_t TY_E_VOLT_T;
typedef enum: uint32_t{
TY_DO_LOW = 0,
TY_DO_HIGH = 1,
TY_DO_PWM = 2,
TY_DO_CAM_TRIG = 3,
}TY_E_DO_MODE_LIST;
typedef uint32_t TY_E_DO_MODE;
typedef enum: uint32_t{
/* DI polling by user, No interrupt */
TY_DI_POLL = 0,
/* DI negative edge interrupt mode */
TY_DI_NE_INT = 1,
/* DI positive edge inerrupt mode */
TY_DI_PE_INT = 2,
}TY_E_DI_MODE_LIST;
typedef uint32_t TY_E_DI_MODE;
typedef enum: uint32_t {
/* DI interrupt No op*/
TY_DI_INT_NO_OP = 0,
/* DI interrupt trig a capture action */
TY_DI_INT_TRIG_CAP = 1,
/* DI interrupt report a event to SDK */
TY_DI_INT_EVENT = 2,
}TY_E_DI_INT_ACTION_LIST;
typedef uint32_t TY_E_DI_INT_ACTION;
#pragma pack(1)
//------------------------------------------------------------------------------
// Struct
//------------------------------------------------------------------------------
typedef struct TY_VERSION_INFO
{
int32_t major;
int32_t minor;
int32_t patch;
int32_t reserved;
}TY_VERSION_INFO;
typedef struct TY_DEVICE_NET_INFO
{
char mac[32];
char ip[32];
char netmask[32];
char gateway[32];
char broadcast[32];
char reserved[96];
}TY_DEVICE_NET_INFO;
typedef struct TY_DEVICE_USB_INFO
{
int bus;
int addr;
char reserved[248];
}TY_DEVICE_USB_INFO;
typedef struct TY_INTERFACE_INFO
{
char name[32];
char id[32];
TY_INTERFACE_TYPE type;
char reserved[4];
TY_DEVICE_NET_INFO netInfo; // only meaningful when TYIsNetworkInterface(type)
}TY_INTERFACE_INFO;
typedef struct TY_DEVICE_BASE_INFO
{
TY_INTERFACE_INFO iface;
char id[32];
char vendorName[32];
char userDefinedName[32];
char modelName[32];
TY_VERSION_INFO hardwareVersion;
TY_VERSION_INFO firmwareVersion;
union {
TY_DEVICE_NET_INFO netInfo;
TY_DEVICE_USB_INFO usbInfo;
};
char buildHash[256];
char configVersion[256];
char reserved[256];
}TY_DEVICE_BASE_INFO;
typedef struct TY_FEATURE_INFO
{
bool isValid;
TY_ACCESS_MODE accessMode;
bool writableAtRun;
char reserved0[1];
TY_COMPONENT_ID componentID;
TY_FEATURE_ID featureID;
char name[32];
TY_COMPONENT_ID bindComponentID;
TY_FEATURE_ID bindFeatureID;
char reserved[252];
}TY_FEATURE_INFO;
typedef struct TY_INT_RANGE
{
int32_t min;
int32_t max;
int32_t inc;
int32_t reserved[1];
}TY_INT_RANGE;
typedef struct TY_FLOAT_RANGE
{
float min;
float max;
float inc;
float reserved[1];
}TY_FLOAT_RANGE;
typedef struct TY_BYTEARRAY_ATTR
{
int32_t size;
int32_t unit_size;
int32_t valid_size;
}TY_BYTEARRAY_ATTR;
typedef struct TY_ENUM_ENTRY
{
char description[64];
uint32_t value;
uint32_t reserved[3];
}TY_ENUM_ENTRY;
typedef struct TY_VECT_3F
{
float x;
float y;
float z;
}TY_VECT_3F;
typedef struct TY_CAMERA_INTRINSIC
{
float data[3*3];
}TY_CAMERA_INTRINSIC;
typedef struct TY_CAMERA_EXTRINSIC
{
float data[4*4];
}TY_CAMERA_EXTRINSIC;
typedef struct TY_CAMERA_DISTORTION
{
float data[12];
}TY_CAMERA_DISTORTION;
typedef struct TY_CAMERA_CALIB_INFO
{
int32_t intrinsicWidth;
int32_t intrinsicHeight;
TY_CAMERA_INTRINSIC intrinsic; // TY_STRUCT_CAM_INTRINSIC
TY_CAMERA_EXTRINSIC extrinsic; // TY_STRUCT_EXTRINSIC_TO_LEFT_IR
TY_CAMERA_DISTORTION distortion; // TY_STRUCT_CAM_DISTORTION
}TY_CAMERA_CALIB_INFO;
//@see sample SimpleView_TriggerMode
typedef struct TY_TRIGGER_PARAM
{
TY_TRIGGER_MODE mode;
int8_t fps;
int8_t rsvd;
}TY_TRIGGER_PARAM;
//@see sample SimpleView_TriggerMode, only for TY_TRIGGER_MODE_SIG_PASS/TY_TRIGGER_MODE_PER_PASS
typedef struct TY_TRIGGER_PARAM_EX
{
TY_TRIGGER_MODE mode;
union
{
struct
{
int8_t fps;
int8_t duty;
int32_t laser_stream;
int32_t led_stream;
int32_t led_expo;
int32_t led_gain;
};
struct
{
int32_t ir_gain[2];
};
int32_t rsvd[32];
};
}TY_TRIGGER_PARAM_EX;
//@see sample SimpleView_TriggerMode, only for TY_TRIGGER_MODE_TIMER_LIST
typedef struct TY_TRIGGER_TIMER_LIST
{
uint64_t start_time_us; // 0 for disable
uint32_t offset_us_count; // length of offset_us_list
uint32_t offset_us_list[50]; // used in TY_TRIGGER_MODE_TIMER_LIST mode
}TY_TRIGGER_TIMER_LIST;
//@see sample SimpleView_TriggerMode, only for TY_TRIGGER_MODE_TIMER_PERIOD
typedef struct TY_TRIGGER_TIMER_PERIOD
{
uint64_t start_time_us; // 0 for disable
uint32_t trigger_count;
uint32_t period_us; // used in TY_TRIGGER_MODE_TIMER_PERIOD mode
}TY_TRIGGER_TIMER_PERIOD;
typedef struct TY_AEC_ROI_PARAM
{
uint32_t x;
uint32_t y;
uint32_t w;
uint32_t h;
}TY_AEC_ROI_PARAM;
typedef struct TY_CAMERA_STATISTICS
{
uint64_t packetReceived;
uint64_t packetLost;
uint64_t imageOutputed;
uint64_t imageDropped;
uint8_t rsvd[1024];
}TY_CAMERA_STATISTICS;
typedef struct TY_IMU_DATA
{
uint64_t timestamp;
float acc_x;
float acc_y;
float acc_z;
float gyro_x;
float gyro_y;
float gyro_z;
float temperature;
float reserved[1];
}TY_IMU_DATA;
typedef struct TY_ACC_BIAS
{
float data[3];
}TY_ACC_BIAS;
typedef struct TY_ACC_MISALIGNMENT
{
float data[3 * 3];
}TY_ACC_MISALIGNMENT;
typedef struct TY_ACC_SCALE
{
float data[3 * 3];
}TY_ACC_SCALE;
typedef struct TY_GYRO_BIAS
{
float data[3];
}TY_GYRO_BIAS;
typedef struct TY_GYRO_MISALIGNMENT
{
float data[3 * 3];
}TY_GYRO_MISALIGNMENT;
typedef struct TY_GYRO_SCALE
{
float data[3 * 3];
}TY_GYRO_SCALE;
typedef struct TY_CAMERA_TO_IMU
{
float data[4 * 4];
}TY_CAMERA_TO_IMU;
typedef struct TY_TOF_FREQ
{
uint32_t freq1;
uint32_t freq2;
}TY_TOF_FREQ;
typedef enum TY_IMU_FPS_LIST
{
TY_IMU_FPS_100HZ = 0,
TY_IMU_FPS_200HZ,
TY_IMU_FPS_400HZ,
}TY_IMU_FPS_LIST;
//------------------------------------------------------------------------------
// Buffer & Callback
//------------------------------------------------------------------------------
typedef struct TY_IMAGE_DATA
{
uint64_t timestamp;
int32_t imageIndex;
int32_t status;
int32_t componentID;
int32_t size;
void* buffer;
int32_t width;
int32_t height;
int32_t pixelFormat;
int32_t reserved[9];
}TY_IMAGE_DATA;
typedef struct TY_FRAME_DATA
{
void* userBuffer;
int32_t bufferSize;
int32_t validCount;
int32_t reserved[6];
TY_IMAGE_DATA image[10];
}TY_FRAME_DATA;
typedef struct TY_EVENT_INFO
{
TY_EVENT eventId;
char message[124];
}TY_EVENT_INFO;
typedef struct TY_DO_WORKMODE {
/* TY_E_DO_MODE type of workmode */
TY_E_DO_MODE mode;
/* TY_E_VOLT_T type, voltage to output */
TY_E_VOLT_T volt;
/*
* frequency of PWM, Only valid when mode == PWM
* unit is Hz, Range is 1~1000
*/
uint32_t freq;
/*
* duty of PWM, Only valid when mode == PWM
* unit is %, Range is 1~100
*/
uint32_t duty;
/*
* Only valid in read op, write no effect
*/
uint32_t mode_supported;
uint32_t volt_supported;
uint32_t reserved[3];
}TY_DO_WORKMODE;
typedef struct TY_DI_WORKMODE {
/* DI workmode in type of TY_E_DI_MODE */
TY_E_DI_MODE mode;
/* interrupt action, valid when mode in TY_DI_NE_INT TY_DI_PE_INT */
TY_E_DI_INT_ACTION int_act;
/* supported mode, Only valid when read */
uint32_t mode_supported;
/* supported action in int mode, Only valid when read */
uint32_t int_act_supported;
/* DI status, 0 low, 1 high, Only read back, can not write */
uint32_t status;
uint32_t reserved[3];
} TY_DI_WORKMODE;
#pragma pack()
typedef void (*TY_EVENT_CALLBACK) (TY_EVENT_INFO*, void* userdata);
typedef void (*TY_IMU_CALLBACK) (TY_IMU_DATA*, void* userdata);
//------------------------------------------------------------------------------
// inlines
//------------------------------------------------------------------------------
static inline bool TYIsNetworkInterface(int32_t interfaceType)
{
return (interfaceType == TY_INTERFACE_ETHERNET) ||
(interfaceType == TY_INTERFACE_IEEE80211);
}
static inline void TYIntToIPv4(uint32_t addr, uint8_t out[4])
{
out[0] = (addr>>24) & 0xff;
out[1] = (addr>>16) & 0xff;
out[2] = (addr>>8) & 0xff;
out[3] = (addr>>0) & 0xff;
}
static inline uint32_t TYIPv4ToInt(uint8_t ip[4])
{
return (ip[0] << 24) | (ip[1] << 16) | (ip[2] << 8) | ip[3];
}
static inline TY_IMAGE_DATA TYInitImageData(size_t size, void* buffer
, size_t width, size_t height)
{
TY_IMAGE_DATA out;
out.timestamp = 0;
out.imageIndex = 0;
out.status = 0;
out.componentID = 0;
out.size = size;
out.buffer = buffer;
out.width = width;
out.height = height;
out.pixelFormat = 0;
return out;
}
static inline TY_FEATURE_TYPE TYFeatureType(TY_FEATURE_ID id)
{
return id & 0xf000;
}
static inline int32_t TYPixelSize(TY_IMAGE_MODE imageMode)
{
return ((imageMode >> 28) & 0xf);
}
static inline int32_t TYBitsPerPixel(TY_IMAGE_MODE imageMode)
{
TY_PIXEL_BITS bits = imageMode & (0xf << 28);
switch(bits){
case TY_PIXEL_16BIT:
return 16;
case TY_PIXEL_24BIT:
return 24;
case TY_PIXEL_32BIT:
return 32;
case TY_PIXEL_48BIT:
return 48;
case TY_PIXEL_64BIT:
return 64;
case TY_PIXEL_10BIT:
return 10;
case TY_PIXEL_12BIT:
return 12;
case TY_PIXEL_8BIT:
default:
return 8;
}
}
static inline int32_t TYPixelLineSize(int width, TY_IMAGE_MODE imageMode)
{
return (width * TYBitsPerPixel(imageMode)) >> 3;
}
static inline TY_IMAGE_MODE TYImageMode(TY_PIXEL_FORMAT pix, TY_RESOLUTION_MODE res)
{
return pix | res;
}
static inline TY_RESOLUTION_MODE TYResolutionMode2(int width, int height){
return (TY_RESOLUTION_MODE)((width << 12) + height);
}
static inline TY_IMAGE_MODE TYImageMode2(TY_PIXEL_FORMAT pix, int width,int height)
{
return pix | TYResolutionMode2(width, height);
}
static inline TY_PIXEL_FORMAT TYPixelFormat(TY_IMAGE_MODE imageMode)
{
return imageMode & 0xff000000;
}
static inline TY_RESOLUTION_MODE TYResolutionMode(TY_IMAGE_MODE imageMode)
{
return imageMode & 0x00ffffff;
}
static inline int32_t TYImageWidth(TY_IMAGE_MODE imageMode)
{
return TYResolutionMode(imageMode) >> 12;
}
static inline int32_t TYImageHeight(TY_IMAGE_MODE imageMode)
{
return TYResolutionMode(imageMode) & 0x0fff;
}
//------------------------------------------------------------------------------
// C API
//------------------------------------------------------------------------------
#define TY_CAPI TY_EXTC TY_EXPORT TY_STATUS TY_STDC
TY_EXTC TY_EXPORT const char* TY_STDC TYErrorString (TY_STATUS errorID);
static inline TY_STATUS TYInitLib (void);
TY_CAPI TYDeinitLib (void);
TY_CAPI TYLibVersion (TY_VERSION_INFO* version);
TY_CAPI TYUpdateInterfaceList ();
TY_CAPI TYGetInterfaceNumber (uint32_t* pNumIfaces);
TY_CAPI TYGetInterfaceList (TY_INTERFACE_INFO* pIfaceInfos, uint32_t bufferCount, uint32_t* filledCount);
TY_CAPI TYHasInterface (const char* ifaceID, bool* value);
TY_CAPI TYOpenInterface (const char* ifaceID, TY_INTERFACE_HANDLE* outHandle);
TY_CAPI TYCloseInterface (TY_INTERFACE_HANDLE ifaceHandle);
TY_CAPI TYUpdateDeviceList (TY_INTERFACE_HANDLE ifaceHandle);
TY_CAPI TYUpdateAllDeviceList();
TY_CAPI TYGetDeviceNumber (TY_INTERFACE_HANDLE ifaceHandle, uint32_t* deviceNumber);
TY_CAPI TYGetDeviceList (TY_INTERFACE_HANDLE ifaceHandle, TY_DEVICE_BASE_INFO* deviceInfos, uint32_t bufferCount, uint32_t* filledDeviceCount);
TY_CAPI TYHasDevice (TY_INTERFACE_HANDLE ifaceHandle, const char* deviceID, bool* value);
TY_CAPI TYOpenDevice (TY_INTERFACE_HANDLE ifaceHandle, const char* deviceID, TY_DEV_HANDLE* outDeviceHandle, TY_FW_ERRORCODE* outFwErrorcode=NULL);
TY_CAPI TYOpenDeviceWithIP (TY_INTERFACE_HANDLE ifaceHandle, const char* IP, TY_DEV_HANDLE* deviceHandle);
TY_CAPI TYGetDeviceInterface (TY_DEV_HANDLE hDevice, TY_INTERFACE_HANDLE* pIface);
TY_CAPI TYForceDeviceIP (TY_INTERFACE_HANDLE ifaceHandle, const char* MAC, const char* newIP, const char* newNetMask, const char* newGateway);
TY_CAPI TYCloseDevice (TY_DEV_HANDLE hDevice, bool reboot=false);
TY_CAPI TYGetDeviceInfo (TY_DEV_HANDLE hDevice, TY_DEVICE_BASE_INFO* info);
TY_CAPI TYGetComponentIDs (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID* componentIDs);
TY_CAPI TYGetEnabledComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID* componentIDs);
TY_CAPI TYEnableComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs);
TY_CAPI TYDisableComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs);
TY_CAPI TYGetFrameBufferSize (TY_DEV_HANDLE hDevice, uint32_t* bufferSize);
TY_CAPI TYEnqueueBuffer (TY_DEV_HANDLE hDevice, void* buffer, uint32_t bufferSize);
TY_CAPI TYClearBufferQueue (TY_DEV_HANDLE hDevice);
TY_CAPI TYStartCapture (TY_DEV_HANDLE hDevice);
TY_CAPI TYStopCapture (TY_DEV_HANDLE hDevice);
TY_CAPI TYSendSoftTrigger (TY_DEV_HANDLE hDevice);
TY_CAPI TYRegisterEventCallback (TY_DEV_HANDLE hDevice, TY_EVENT_CALLBACK callback, void* userdata);
TY_CAPI TYRegisterImuCallback (TY_DEV_HANDLE hDevice, TY_IMU_CALLBACK callback, void* userdata);
TY_CAPI TYFetchFrame (TY_DEV_HANDLE hDevice, TY_FRAME_DATA* frame, int32_t timeout);
TY_CAPI TYHasFeature (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool* value);
TY_CAPI TYGetFeatureInfo (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FEATURE_INFO* featureInfo);
TY_CAPI TYGetIntRange (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_INT_RANGE* intRange);
TY_CAPI TYGetInt (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t* value);
TY_CAPI TYSetInt (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t value);
TY_CAPI TYGetFloatRange (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FLOAT_RANGE* floatRange);
TY_CAPI TYGetFloat (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float* value);
TY_CAPI TYSetFloat (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float value);
TY_CAPI TYGetEnumEntryCount (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* entryCount);
TY_CAPI TYGetEnumEntryInfo (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_ENUM_ENTRY* entries, uint32_t entryCount, uint32_t* filledEntryCount);
TY_CAPI TYGetEnum (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* value);
TY_CAPI TYSetEnum (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t value);
TY_CAPI TYGetBool (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool* value);
TY_CAPI TYSetBool (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool value);
TY_CAPI TYGetStringLength (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* size);
TY_CAPI TYGetString (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, char* buffer, uint32_t bufferSize);
TY_CAPI TYSetString (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const char* buffer);
TY_CAPI TYGetStruct (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void* pStruct, uint32_t structSize);
TY_CAPI TYSetStruct (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void* pStruct, uint32_t structSize);
TY_CAPI TYGetByteArraySize (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* pSize);
TY_CAPI TYGetDeviceFeatureNumber (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, uint32_t* size);
TY_CAPI TYGetDeviceFeatureInfo (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID
, TY_FEATURE_INFO* featureInfo, uint32_t entryCount, uint32_t* filledEntryCount);
TY_CAPI TYGetByteArray (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint8_t* pBuffer, uint32_t bufferSize);
TY_CAPI TYSetByteArray (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const uint8_t* pBuffer, uint32_t bufferSize);
TY_CAPI TYGetByteArrayAttr (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_BYTEARRAY_ATTR* pAttr);
//------------------------------------------------------------------------------
// Version check
//------------------------------------------------------------------------------
TY_CAPI _TYInitLib(void);
static inline TY_STATUS TYInitLib(void)
{
TY_VERSION_INFO soVersion;
TYLibVersion(&soVersion);
if(!(soVersion.major == TY_LIB_VERSION_MAJOR && soVersion.minor >= TY_LIB_VERSION_MINOR)){
abort(); // generate fault directly
}
return _TYInitLib();
}
//------------------------------------------------------------------------------
// Summary
//------------------------------------------------------------------------------
TY_EXTC TY_EXPORT const char* TY_STDC TYErrorString (TY_STATUS errorID);
inline TY_STATUS TYInitLib (void);
TY_CAPI TYDeinitLib (void);
TY_CAPI TYLibVersion (TY_VERSION_INFO* version);
TY_CAPI TYUpdateInterfaceList ();
TY_CAPI TYGetInterfaceNumber (uint32_t* pNumIfaces);
TY_CAPI TYGetInterfaceList (TY_INTERFACE_INFO* pIfaceInfos, uint32_t bufferCount, uint32_t* filledCount);
TY_CAPI TYHasInterface (const char* ifaceID, bool* value);
TY_CAPI TYOpenInterface (const char* ifaceID, TY_INTERFACE_HANDLE* outHandle);
TY_CAPI TYCloseInterface (TY_INTERFACE_HANDLE ifaceHandle);
TY_CAPI TYUpdateDeviceList (TY_INTERFACE_HANDLE ifaceHandle);
TY_CAPI TYGetDeviceNumber (TY_INTERFACE_HANDLE ifaceHandle, uint32_t* deviceNumber);
TY_CAPI TYGetDeviceList (TY_INTERFACE_HANDLE ifaceHandle, TY_DEVICE_BASE_INFO* deviceInfos, uint32_t bufferCount, uint32_t* filledDeviceCount);
TY_CAPI TYHasDevice (TY_INTERFACE_HANDLE ifaceHandle, const char* deviceID, bool* value);
TY_CAPI TYOpenDevice (TY_INTERFACE_HANDLE ifaceHandle, const char* deviceID, TY_DEV_HANDLE* outDeviceHandle, TY_FW_ERRORCODE* outFwErrorcode);
TY_CAPI TYOpenDeviceWithIP (TY_INTERFACE_HANDLE ifaceHandle, const char* IP, TY_DEV_HANDLE* deviceHandle);
TY_CAPI TYGetDeviceInterface (TY_DEV_HANDLE hDevice, TY_INTERFACE_HANDLE* pIface);
TY_CAPI TYForceDeviceIP (TY_INTERFACE_HANDLE ifaceHandle, const char* MAC, const char* newIP, const char* newNetMask, const char* newGateway);
TY_CAPI TYCloseDevice (TY_DEV_HANDLE hDevice, bool reboot);
TY_CAPI TYGetDeviceInfo (TY_DEV_HANDLE hDevice, TY_DEVICE_BASE_INFO* info);
TY_CAPI TYGetComponentIDs (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID* componentIDs);
TY_CAPI TYGetEnabledComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID* componentIDs);
TY_CAPI TYEnableComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs);
TY_CAPI TYDisableComponents (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs);
TY_CAPI TYGetFrameBufferSize (TY_DEV_HANDLE hDevice, uint32_t* outSize);
TY_CAPI TYEnqueueBuffer (TY_DEV_HANDLE hDevice, void* buffer, uint32_t bufferSize);
TY_CAPI TYClearBufferQueue (TY_DEV_HANDLE hDevice);
TY_CAPI TYStartCapture (TY_DEV_HANDLE hDevice);
TY_CAPI TYStopCapture (TY_DEV_HANDLE hDevice);
TY_CAPI TYSendSoftTrigger (TY_DEV_HANDLE hDevice);
TY_CAPI TYRegisterEventCallback (TY_DEV_HANDLE hDevice, TY_EVENT_CALLBACK callback, void* userdata);
TY_CAPI TYRegisterImuCallback (TY_DEV_HANDLE hDevice, TY_IMU_CALLBACK callback, void* userdata);
TY_CAPI TYFetchFrame (TY_DEV_HANDLE hDevice, TY_FRAME_DATA* frame, int32_t timeout);
TY_CAPI TYHasFeature (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool* value);
TY_CAPI TYGetFeatureInfo (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FEATURE_INFO* featureInfo);
TY_CAPI TYGetIntRange (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_INT_RANGE* intRange);
TY_CAPI TYGetInt (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t* value);
TY_CAPI TYSetInt (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t value);
TY_CAPI TYGetFloatRange (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FLOAT_RANGE* floatRange);
TY_CAPI TYGetFloat (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float* value);
TY_CAPI TYSetFloat (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float value);
TY_CAPI TYGetEnumEntryCount (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* entryCount);
TY_CAPI TYGetEnumEntryInfo (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_ENUM_ENTRY* entries, uint32_t entryCount, uint32_t* filledEntryCount);
TY_CAPI TYGetEnum (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* value);
TY_CAPI TYSetEnum (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t value);
TY_CAPI TYGetBool (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool* value);
TY_CAPI TYSetBool (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool value);
TY_CAPI TYGetStringLength (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* length);
TY_CAPI TYGetString (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, char* buffer, uint32_t bufferSize);
TY_CAPI TYSetString (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const char* buffer);
TY_CAPI TYGetStruct (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void* pStruct, uint32_t structSize);
TY_CAPI TYSetStruct (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void* pStruct, uint32_t structSize);
TY_CAPI TYGetByteArraySize (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t* pSize);
TY_CAPI TYGetByteArray (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint8_t* pBuffer, uint32_t bufferSize);
TY_CAPI TYSetByteArray (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const uint8_t* pBuffer, uint32_t bufferSize);
TY_CAPI TYGetByteArrayAttr (TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_BYTEARRAY_ATTR* pAttr);
#endif // TY_API_H_
TYSetBool
TY_CAPI TYSetBool(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool value)
Set value of bool feature.
TY_BYTEARRAY_ATTR::unit_size
int32_t unit_size
Definition: TYApi.h:719
TY_COMPONENT_IR_CAM_RIGHT
Right IR camera.
Definition: TYApi.h:198
TYHasDevice
TY_CAPI TYHasDevice(TY_INTERFACE_HANDLE ifaceHandle, const char *deviceID, bool *value)
Check whether the interface has the specified device.
TY_COMPONENT_RGB_CAM_LEFT
Left RGB camera.
Definition: TYApi.h:199
TY_ENUM_IMU_FPS
IMU fps, see TY_IMU_FPS_LIST.
Definition: TYApi.h:320
TYRegisterImuCallback
TY_CAPI TYRegisterImuCallback(TY_DEV_HANDLE hDevice, TY_IMU_CALLBACK callback, void *userdata)
Register imu callback. Register NULL to clean callback.
TY_RESOLUTION_MODE_320x180
0x001400b4
Definition: TYApi.h:468
TY_BOOL_BRIGHTNESS_HISTOGRAM
Output bright histogram.
Definition: TYApi.h:301
TY_RESOLUTION_MODE_320x200
0x001400c8
Definition: TYApi.h:469
TY_PIXEL_FORMAT_CSI_BAYER12BGGR
0x64000000
Definition: TYApi.h:443
TY_BYTEARRAY_ATTR::size
int32_t size
Bytes array size in bytes.
Definition: TYApi.h:718
TY_DEVICE_BASE_INFO::hardwareVersion
TY_VERSION_INFO hardwareVersion
deprecated
Definition: TYApi.h:671
TYSetByteArray
TY_CAPI TYSetByteArray(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const uint8_t *pBuffer, uint32_t bufferSize)
Write byte array to device.
TYGetByteArray
TY_CAPI TYGetByteArray(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint8_t *pBuffer, uint32_t bufferSize)
Read byte array from device.
TY_PIXEL_FORMAT_MJPG
0x33000000
Definition: TYApi.h:454
TY_STRUCT_IMU_GYRO_SCALE
IMU gyro scale matrix, see TY_GYRO_SCALE.
Definition: TYApi.h:318
TYCloseInterface
TY_CAPI TYCloseInterface(TY_INTERFACE_HANDLE ifaceHandle)
Close interface.
TY_RESOLUTION_MODE_640x480
0x002801e0
Definition: TYApi.h:474
TY_DEV_HANDLE
void * TY_DEV_HANDLE
Device Handle.
Definition: TYApi.h:186
TY_INT_HEIGHT
Image height.
Definition: TYApi.h:254
TYGetEnumEntryInfo
TY_CAPI TYGetEnumEntryInfo(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_ENUM_ENTRY *entries, uint32_t entryCount, uint32_t *filledEntryCount)
Get list of enum entries.
TY_BYTEARRAY_ATTR
struct TY_BYTEARRAY_ATTR TY_BYTEARRAY_ATTR
byte array data structure
TY_IMAGE_DATA::componentID
int32_t componentID
Where current data come from.
Definition: TYApi.h:974
TY_INT_LASER_POWER
Laser power level.
Definition: TYApi.h:297
TYGetStruct
TY_CAPI TYGetStruct(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void *pStruct, uint32_t structSize)
Get value of struct.
TY_DEVICE_BASE_INFO::firmwareVersion
TY_VERSION_INFO firmwareVersion
deprecated
Definition: TYApi.h:672
TY_PIXEL_FORMAT_BAYER8GB
0x11000000
Definition: TYApi.h:423
TY_FEATURE_INFO::isValid
bool isValid
true if feature exists, false otherwise
Definition: TYApi.h:684
TY_FRAME_DATA::bufferSize
int32_t bufferSize
Size of userBuffer.
Definition: TYApi.h:987
TY_ENUM_STREAM_ASYNC
stream async switch, see TY_STREAM_ASYNC_MODE
Definition: TYApi.h:274
TYSetStruct
TY_CAPI TYSetStruct(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, void *pStruct, uint32_t structSize)
Set value of struct.
TYGetDeviceInterface
TY_CAPI TYGetDeviceInterface(TY_DEV_HANDLE hDevice, TY_INTERFACE_HANDLE *pIface)
Get interface handle by device handle.
TY_FEATURE_INFO::bindFeatureID
TY_FEATURE_ID bindFeatureID
feature ID current feature bind to
Definition: TYApi.h:692
TYUpdateDeviceList
TY_CAPI TYUpdateDeviceList(TY_INTERFACE_HANDLE ifaceHandle)
Update current connected devices.
TY_PIXEL_FORMAT_CSI_BAYER10GBRG
0x53000000
Definition: TYApi.h:436
TY_STRUCT_TOF_FREQ
the frequency of tof, see TY_TOF_FREQ
Definition: TYApi.h:343
TY_STRUCT_TRIGGER_PARAM_EX
param of trigger, see TY_TRIGGER_PARAM_EX
Definition: TYApi.h:265
TY_CAMERA_EXTRINSIC
struct TY_CAMERA_EXTRINSIC TY_CAMERA_EXTRINSIC
TYGetEnum
TY_CAPI TYGetEnum(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t *value)
Get current value of enum feature.
TY_RESOLUTION_MODE_LIST
TY_RESOLUTION_MODE_LIST
predefined resolution list
Definition: TYApi.h:463
TY_INT_SGBM_MATCH_WIN_HEIGHT
SGBM match window height.
Definition: TYApi.h:325
TY_STRUCT_IMU_ACC_BIAS
IMU acc bias matrix, see TY_ACC_BIAS.
Definition: TYApi.h:313
TY_RESOLUTION_MODE_240x96
0x000f0060
Definition: TYApi.h:483
TY_ENUM_DEPTH_QUALITY
the quality of generated depth, see TY_DEPTH_QUALITY
Definition: TYApi.h:339
TY_CAMERA_INTRINSIC
struct TY_CAMERA_INTRINSIC TY_CAMERA_INTRINSIC
TY_TRIGGER_TIMER_LIST
Definition: TYApi.h:833
TY_BOOL_KEEP_ALIVE_ONOFF
Keep Alive switch.
Definition: TYApi.h:268
TY_COMPONENT_RGB_CAM
Some device has only one RGB camera, map it to left.
Definition: TYApi.h:206
TY_INT_PACKET_DELAY
microseconds
Definition: TYApi.h:242
TY_COMPONENT_DEVICE
Abstract component stands for whole device, always enabled.
Definition: TYApi.h:195
TY_PIXEL_FORMAT_BGR
0x31000000
Definition: TYApi.h:452
TY_BYTEARRAY_ISP_BLOCK
used for reading/writing fpn block
Definition: TYApi.h:236
TY_INT_TRIGGER_DURATION_US
Trigger duration time, in microseconds.
Definition: TYApi.h:273
TY_PIXEL_FORMAT_YVYU
0x21000000, yvyu422
Definition: TYApi.h:446
TYOpenInterface
TY_CAPI TYOpenInterface(const char *ifaceID, TY_INTERFACE_HANDLE *outHandle)
Open specified interface.
TY_INT_SGBM_UNIQUE_FACTOR
SGBM uniqueness factor param.
Definition: TYApi.h:328
TYSetFloat
TY_CAPI TYSetFloat(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float value)
Set value of float feature.
TYSetInt
TY_CAPI TYSetInt(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t value)
Set value of integer feature.
TY_TRIGGER_MODE_PER_PASS2
trigger mode 30,Alternate output depth image/ir image
Definition: TYApi.h:568
TY_BOOL_TIME_SYNC_READY
time sync done status
Definition: TYApi.h:277
TY_COMPONENT_STORAGE
virtual component for device storage
Definition: TYApi.h:204
TY_BOOL_SGBM_LRC
SGBM enable left right consist check.
Definition: TYApi.h:334
TY_COMPONENT_ID
uint32_t TY_COMPONENT_ID
component unique id
Definition: TYApi.h:208
TY_FLOAT_RANGE::inc
float inc
increaing step
Definition: TYApi.h:710
TYHasFeature
TY_CAPI TYHasFeature(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool *value)
Check whether a component has a specific feature.
TY_STRUCT_DI0_WORKMODE
DI_0 workmode, see TY_DI_WORKMODE.
Definition: TYApi.h:281
TY_INT_B_GAIN
Gain of B channel.
Definition: TYApi.h:306
TY_PIXEL_FORMAT_CSI_BAYER10GRBG
0x51000000
Definition: TYApi.h:434
TY_COMPONENT_RGB_CAM_RIGHT
Right RGB camera.
Definition: TYApi.h:200
TYGetDeviceFeatureInfo
TY_CAPI TYGetDeviceFeatureInfo(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_INFO *featureInfo, uint32_t entryCount, uint32_t *filledEntryCount)
Get the all features by comp id.
TY_RESOLUTION_MODE_160x100
0x000a0078
Definition: TYApi.h:465
TYGetComponentIDs
TY_CAPI TYGetComponentIDs(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID *componentIDs)
Get all components IDs.
TYEnqueueBuffer
TY_CAPI TYEnqueueBuffer(TY_DEV_HANDLE hDevice, void *buffer, uint32_t bufferSize)
Enqueue a user allocated buffer.
TY_COMPONENT_DEPTH_CAM
Depth camera.
Definition: TYApi.h:196
TY_RESOLUTION_MODE_640x400
0x00280190
Definition: TYApi.h:473
TY_STRUCT_CAM_RECTIFIED_INTRI
the rectified intrinsic. see TY_CAMERA_INTRINSIC
Definition: TYApi.h:234
TY_INT_EXPOSURE_TIME
Exposure time in percentage.
Definition: TYApi.h:289
TY_STRUCT_DI1_WORKMODE
DI_1 workmode, see TY_DI_WORKMODE.
Definition: TYApi.h:283
TY_BOOL_UNDISTORTION
Output undistorted image.
Definition: TYApi.h:300
TY_DEVICE_NET_INFO
device network information
Definition: TYApi.h:636
TY_COMPONENT_IR_CAM_LEFT
Left IR camera.
Definition: TYApi.h:197
TY_ACC_BIAS
Definition: TYApi.h:882
TY_STRUCT_DO2_WORKMODE
DO_2 workmode, see TY_DO_WORKMODE.
Definition: TYApi.h:284
TY_STRUCT_IMU_ACC_MISALIGNMENT
IMU acc misalignment matrix, see TY_ACC_MISALIGNMENT.
Definition: TYApi.h:314
TY_INT_FILTER_THRESHOLD
the threshold of the noise filter, 0 for disabled
Definition: TYApi.h:340
TY_BOOL_HDR
HDR func enable/disable.
Definition: TYApi.h:309
TY_CAMERA_CALIB_INFO
struct TY_CAMERA_CALIB_INFO TY_CAMERA_CALIB_INFO
TY_RESOLUTION_MODE_1280x800
0x00500320
Definition: TYApi.h:477
TY_PIXEL_FORMAT_RGB48
0x80000000
Definition: TYApi.h:456
TY_FEATURE_INFO::writableAtRun
bool writableAtRun
feature can be written while capturing
Definition: TYApi.h:686
TYClearBufferQueue
TY_CAPI TYClearBufferQueue(TY_DEV_HANDLE hDevice)
Clear the internal buffer queue, so that user can release all the buffer.
TYGetInt
TY_CAPI TYGetInt(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, int32_t *value)
Get value of integer feature.
TY_PIXEL_FORMAT_LIST
TY_PIXEL_FORMAT_LIST
pixel format definitions
Definition: TYApi.h:419
TY_FEATURE_TYPE_LIST
TY_FEATURE_TYPE_LIST
Feature Format Type definitions.
Definition: TYApi.h:213
TY_RESOLUTION_MODE_1920x1440
0x007805a0
Definition: TYApi.h:482
TYGetInterfaceList
TY_CAPI TYGetInterfaceList(TY_INTERFACE_INFO *pIfaceInfos, uint32_t bufferCount, uint32_t *filledCount)
Get interface info list.
TY_INTERFACE_HANDLE
void * TY_INTERFACE_HANDLE
Interface handle.
Definition: TYApi.h:185
TY_STRUCT_CAM_STATISTICS
statistical information, see TY_CAMERA_STATISTICS
Definition: TYApi.h:247
TY_GYRO_MISALIGNMENT
struct TY_GYRO_MISALIGNMENT TY_GYRO_MISALIGNMENT
TY_INT_TOF_HDR_RATIO
tof sensor hdr ratio for depth
Definition: TYApi.h:294
TYGetFrameBufferSize
TY_CAPI TYGetFrameBufferSize(TY_DEV_HANDLE hDevice, uint32_t *bufferSize)
Get total buffer size of one frame in current configuration.
TY_FEATURE_INFO
Definition: TYApi.h:682
TY_ENUM_TIME_SYNC_TYPE
see TY_TIME_SYNC_TYPE
Definition: TYApi.h:276
TY_STRUCT_IMU_ACC_SCALE
IMU acc scale matrix, see TY_ACC_SCALE.
Definition: TYApi.h:315
TYForceDeviceIP
TY_CAPI TYForceDeviceIP(TY_INTERFACE_HANDLE ifaceHandle, const char *MAC, const char *newIP, const char *newNetMask, const char *newGateway)
Force a ethernet device to use new IP address, useful when device use persistent IP and cannot be fou...
TY_GYRO_SCALE
Definition: TYApi.h:936
TY_PIXEL_FORMAT_BAYER8RG
0x14000000
Definition: TYApi.h:426
TYGetByteArraySize
TY_CAPI TYGetByteArraySize(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t *pSize)
Get the size of specified byte array zone .
TY_STRUCT_CAM_INTRINSIC
see TY_CAMERA_INTRINSIC
Definition: TYApi.h:229
TY_INT_G_GAIN
Gain of G channel.
Definition: TYApi.h:305
TYGetStringLength
TY_CAPI TYGetStringLength(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t *size)
Get internal buffer size of string feature.
TY_IMAGE_DATA::pixelFormat
int32_t pixelFormat
Pixel format, see TY_PIXEL_FORMAT_LIST.
Definition: TYApi.h:979
TY_INT_GAIN
Sensor Gain.
Definition: TYApi.h:291
TY_FRAME_DATA::validCount
int32_t validCount
Number of valid data.
Definition: TYApi.h:988
TYRegisterEventCallback
TY_CAPI TYRegisterEventCallback(TY_DEV_HANDLE hDevice, TY_EVENT_CALLBACK callback, void *userdata)
Register device status callback. Register NULL to clean callback.
TY_TRIGGER_MODE_OFF
not trigger mode, continuous mode
Definition: TYApi.h:560
TY_ACCESS_MODE_LIST
TY_ACCESS_MODE_LIST
Definition: TYApi.h:379
TY_INT_CAPTURE_TIME_US
capture time in multi-ir
Definition: TYApi.h:275
TY_TRIGGER_POL_LIST
TY_TRIGGER_POL_LIST
set external trigger signal edge
Definition: TYApi.h:357
TY_PIXEL_FORMAT_CSI_BAYER12GRBG
0x61000000
Definition: TYApi.h:440
TY_RESOLUTION_MODE_320x240
0x001400f0
Definition: TYApi.h:470
TY_RESOLUTION_MODE_640x360
0x00280168
Definition: TYApi.h:472
TY_PIXEL_FORMAT_BGR48
0x81000000
Definition: TYApi.h:457
TY_PIXEL_FORMAT_RGB
0x30000000
Definition: TYApi.h:451
TY_PIXEL_FORMAT_BAYER8BG
0x12000000
Definition: TYApi.h:424
TY_BOOL_AUTO_AWB
Auto white balance.
Definition: TYApi.h:292
TY_PIXEL_FORMAT_TOF_IR_MONO16
0xa4000000,
Definition: TYApi.h:449
TY_RESOLUTION_MODE_2560x1920
0x00a00780
Definition: TYApi.h:480
TY_PIXEL_FORMAT_XYZ48
0x82000000
Definition: TYApi.h:458
TYGetEnabledComponents
TY_CAPI TYGetEnabledComponents(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID *componentIDs)
Get all enabled components IDs.
TY_INT_SGBM_DISPARITY_OFFSET
SGBM disparity offset.
Definition: TYApi.h:324
TYFetchFrame
TY_CAPI TYFetchFrame(TY_DEV_HANDLE hDevice, TY_FRAME_DATA *frame, int32_t timeout)
Fetch one frame.
TY_AEC_ROI_PARAM
Definition: TYApi.h:848
TY_STRUCT_CAM_DISTORTION
see TY_CAMERA_DISTORTION
Definition: TYApi.h:232
TY_GYRO_BIAS
struct TY_GYRO_BIAS TY_GYRO_BIAS
TY_VECT_3F
Definition: TYApi.h:734
TYStopCapture
TY_CAPI TYStopCapture(TY_DEV_HANDLE hDevice)
Stop capture.
TY_ENUM_ENTRY
struct TY_ENUM_ENTRY TY_ENUM_ENTRY
TYGetByteArrayAttr
TY_CAPI TYGetByteArrayAttr(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_BYTEARRAY_ATTR *pAttr)
Write byte array to device.
TY_INT_WIDTH
Image width.
Definition: TYApi.h:253
TY_EVENT_INFO
Definition: TYApi.h:994
TY_INT_KEEP_ALIVE_TIMEOUT
Keep Alive timeout.
Definition: TYApi.h:269
TY_BOOL_IMU_DATA_ONOFF
IMU Data Onoff.
Definition: TYApi.h:312
TYDisableComponents
TY_CAPI TYDisableComponents(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs)
Disable components.
TY_FLOAT_SCALE_UNIT
scale unit depth image is uint16 pixel format with default millimeter unit ,for some device can outpu...
Definition: TYApi.h:260
TY_INT_FRAME_PER_TRIGGER
Number of frames captured per trigger.
Definition: TYApi.h:263
TY_RESOLUTION_MODE_160x120
0x000a0078
Definition: TYApi.h:466
TY_DEVICE_NET_INFO
struct TY_DEVICE_NET_INFO TY_DEVICE_NET_INFO
device network information
TY_STRUCT_TRIGGER_PARAM
param of trigger, see TY_TRIGGER_PARAM
Definition: TYApi.h:264
TY_PIXEL_FORMAT_CSI_BAYER10BGGR
0x54000000
Definition: TYApi.h:437
TY_PIXEL_FORMAT_BAYER8GR
0x13000000
Definition: TYApi.h:425
TY_INTERFACE_INFO
struct TY_INTERFACE_INFO TY_INTERFACE_INFO
TY_INT_FLASHLIGHT_INTENSITY
flashlight intensity level [0, 63]
Definition: TYApi.h:279
TY_DEVICE_COMPONENT_LIST
TY_DEVICE_COMPONENT_LIST
Definition: TYApi.h:193
TY_INT_TOF_CHANNEL
the frequency channel of tof
Definition: TYApi.h:341
TY_STRUCT_IMU_CAM_TO_IMU
IMU camera to imu matrix, see TY_CAMERA_TO_IMU.
Definition: TYApi.h:319
TYStartCapture
TY_CAPI TYStartCapture(TY_DEV_HANDLE hDevice)
Start capture.
TY_INT_SGBM_UNIQUE_ABSDIFF
SGBM uniqueness min absolute diff.
Definition: TYApi.h:329
TYGetFloatRange
TY_CAPI TYGetFloatRange(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FLOAT_RANGE *floatRange)
Get value range of float feature.
TYUpdateInterfaceList
TY_CAPI TYUpdateInterfaceList()
Update current interfaces. call before TYGetInterfaceList.
TY_RESOLUTION_MODE_960x1280
0x003c0500
Definition: TYApi.h:475
TY_PIXEL_FORMAT_YUYV
0x22000000, yuyv422
Definition: TYApi.h:447
TY_IMAGE_DATA::width
int32_t width
Image width in pixels.
Definition: TYApi.h:977
TY_INTERFACE_INFO
Definition: TYApi.h:654
TY_DEVICE_BASE_INFO
struct TY_DEVICE_BASE_INFO TY_DEVICE_BASE_INFO
TY_ACC_SCALE
Definition: TYApi.h:905
TY_ENUM_TRIGGER_POL
Trigger POL, see TY_TRIGGER_POL_LIST.
Definition: TYApi.h:262
TY_TRIGGER_PARAM
Definition: TYApi.h:802
TYDeinitLib
TY_CAPI TYDeinitLib(void)
Deinit this library.
TYGetIntRange
TY_CAPI TYGetIntRange(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_INT_RANGE *intRange)
Get value range of integer feature.
TY_ACC_MISALIGNMENT
struct TY_ACC_MISALIGNMENT TY_ACC_MISALIGNMENT
TY_VERSION_INFO
Definition: TYApi.h:627
TY_PIXEL_FORMAT_CSI_MONO10
0x50000000
Definition: TYApi.h:433
TY_IMAGE_DATA::imageIndex
int32_t imageIndex
image index used in trigger mode
Definition: TYApi.h:972
TY_IMU_DATA
Definition: TYApi.h:865
TYLibVersion
TY_CAPI TYLibVersion(TY_VERSION_INFO *version)
Get current library version.
TY_IMAGE_DATA::size
int32_t size
Buffer size.
Definition: TYApi.h:975
TY_STRUCT_IMU_GYRO_MISALIGNMENT
IMU gyro misalignment matrix, see TY_GYRO_MISALIGNMENT.
Definition: TYApi.h:317
TY_INT_SGBM_MATCH_WIN_WIDTH
SGBM match window width.
Definition: TYApi.h:332
TYSendSoftTrigger
TY_CAPI TYSendSoftTrigger(TY_DEV_HANDLE hDevice)
Send a software trigger to capture a frame when device works in trigger mode.
TY_COMPONENT_IMU
Inertial Measurement Unit.
Definition: TYApi.h:202
TY_RESOLUTION_MODE_240x320
0x000f0140
Definition: TYApi.h:467
TY_TRIGGER_TIMER_PERIOD
Definition: TYApi.h:841
TY_INT_R_GAIN
Gain of R channel.
Definition: TYApi.h:304
TYGetDeviceFeatureNumber
TY_CAPI TYGetDeviceFeatureNumber(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, uint32_t *size)
Get the size of device features .
TY_INT_SGBM_DISPARITY_NUM
SGBM disparity num.
Definition: TYApi.h:323
TY_STATUS_LIST
TY_STATUS_LIST
API call return status.
Definition: TYApi.h:119
TY_FLOAT_RANGE
float range data structure
Definition: TYApi.h:706
TY_FEATURE_INFO::featureID
TY_FEATURE_ID featureID
feature unique id
Definition: TYApi.h:689
TYUpdateAllDeviceList
TY_CAPI TYUpdateAllDeviceList()
Update current connected devices.
TY_TOF_FREQ
Definition: TYApi.h:953
TY_STRUCT_TRIGGER_TIMER_PERIOD
param of trigger mode 21, see TY_TRIGGER_TIMER_PERIOD
Definition: TYApi.h:267
TY_BOOL_AUTO_EXPOSURE
Auto exposure switch.
Definition: TYApi.h:288
TY_BOOL_TRIGGER_OUT_IO
Trigger out IO.
Definition: TYApi.h:272
TY_GYRO_MISALIGNMENT
Definition: TYApi.h:925
TY_STRUCT_TRIGGER_TIMER_LIST
param of trigger mode 20, see TY_TRIGGER_TIMER_LIST
Definition: TYApi.h:266
TYOpenDevice
TY_CAPI TYOpenDevice(TY_INTERFACE_HANDLE ifaceHandle, const char *deviceID, TY_DEV_HANDLE *outDeviceHandle, TY_FW_ERRORCODE *outFwErrorcode=NULL)
Open device by device ID.
TY_BOOL_SGBM_HFILTER_HALF_WIN
SGBM enable half window size.
Definition: TYApi.h:331
TY_STRUCT_DO0_WORKMODE
DO_0 workmode, see TY_DO_WORKMODE.
Definition: TYApi.h:280
TYGetEnumEntryCount
TY_CAPI TYGetEnumEntryCount(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t *entryCount)
Get number of enum entries.
TY_DEVICE_USB_INFO
Definition: TYApi.h:646
TY_ACC_BIAS
struct TY_ACC_BIAS TY_ACC_BIAS
TY_FEATURE_ID
uint32_t TY_FEATURE_ID
feature unique id
Definition: TYApi.h:346
TY_RESOLUTION_MODE_1280x720
0x005002d0
Definition: TYApi.h:476
TY_ACC_MISALIGNMENT
Definition: TYApi.h:894
TY_STREAM_ASYNC_MODE_LIST
TY_STREAM_ASYNC_MODE_LIST
stream async mode
Definition: TYApi.h:387
TY_BOOL_SGBM_MEDFILTER
SGBM enable median filter.
Definition: TYApi.h:333
TY_INT_LINK_CMD_TIMEOUT
milliseconds
Definition: TYApi.h:246
TYHasInterface
TY_CAPI TYHasInterface(const char *ifaceID, bool *value)
Check if has interface.
TY_BOOL_LASER_AUTO_CTRL
Laser auto ctrl.
Definition: TYApi.h:298
TY_STRUCT_AEC_ROI
region of aec statistics, see TY_AEC_ROI_PARAM
Definition: TYApi.h:293
TY_CAMERA_STATISTICS
Definition: TYApi.h:856
TY_STRUCT_DI2_WORKMODE
DI_2 workmode, see TY_DI_WORKMODE.
Definition: TYApi.h:285
TY_PIXEL_FORMAT_CSI_BAYER12GBRG
0x63000000
Definition: TYApi.h:442
TY_FEATURE_INFO::componentID
TY_COMPONENT_ID componentID
owner of this feature
Definition: TYApi.h:688
TYCloseDevice
TY_CAPI TYCloseDevice(TY_DEV_HANDLE hDevice, bool reboot=false)
Close device by device handle.
TY_CAMERA_EXTRINSIC
Definition: TYApi.h:771
TY_RESOLUTION_MODE_1280x960
0x005003c0
Definition: TYApi.h:478
TYSetString
TY_CAPI TYSetString(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, const char *buffer)
Set value of string feature.
TY_IMAGE_DATA::status
int32_t status
Status of this buffer.
Definition: TYApi.h:973
TY_DI_WORKMODE
Definition: TYApi.h:1023
TY_BOOL_CMOS_SYNC
Cmos sync switch.
Definition: TYApi.h:270
TY_COMPONENT_BRIGHT_HISTO
virtual component for brightness histogram of ir
Definition: TYApi.h:203
TY_ENUM_ENTRY
Definition: TYApi.h:727
TY_FEATURE_ID_LIST
TY_FEATURE_ID_LIST
feature for component definitions
Definition: TYApi.h:227
TY_FRAME_DATA
Definition: TYApi.h:984
TY_COMPONENT_LASER
Laser.
Definition: TYApi.h:201
TY_STRUCT_IMU_GYRO_BIAS
IMU gyro bias matrix, see TY_GYRO_BIAS.
Definition: TYApi.h:316
TY_INT_RANGE::inc
int32_t inc
increaing step
Definition: TYApi.h:700
TY_GYRO_SCALE
struct TY_GYRO_SCALE TY_GYRO_SCALE
TY_INT_RANGE
Definition: TYApi.h:696
TY_FRAME_DATA::userBuffer
void * userBuffer
Pointer to user enqueued buffer, user should enqueue this buffer in the end of callback.
Definition: TYApi.h:986
TY_IMAGE_DATA::buffer
void * buffer
Pointer to data buffer.
Definition: TYApi.h:976
TY_PIXEL_FORMAT_JPEG
0x32000000
Definition: TYApi.h:453
TY_CAMERA_DISTORTION
struct TY_CAMERA_DISTORTION TY_CAMERA_DISTORTION
TYGetBool
TY_CAPI TYGetBool(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, bool *value)
Get value of bool feature.
TY_PIXEL_BITS_LIST
TY_PIXEL_BITS_LIST
Definition: TYApi.h:401
TY_CAMERA_TO_IMU
Definition: TYApi.h:948
TY_STRUCT_DO1_WORKMODE
DO_1 workmode, see TY_DO_WORKMODE.
Definition: TYApi.h:282
TY_TRIGGER_MODE_SLAVE
slave mode, receive soft/hardware triggers
Definition: TYApi.h:561
TY_TRIGGER_MODE_LIST
TY_TRIGGER_MODE_LIST
Definition: TYApi.h:558
TY_INT_TOF_JITTER_THRESHOLD
tof jitter threshold for depth
Definition: TYApi.h:295
TY_DEVICE_BASE_INFO
Definition: TYApi.h:664
TY_STRUCT_EXTRINSIC_TO_IR_LEFT
extrinsic between left IR and current compoent, see TY_CAMERA_EXTRINSIC
Definition: TYApi.h:231
TY_GYRO_BIAS
Definition: TYApi.h:914
TY_RESOLUTION_MODE_2592x1944
0x00a20798
Definition: TYApi.h:481
TY_PIXEL_FORMAT_CSI_BAYER10RGGB
0x52000000
Definition: TYApi.h:435
TY_INT_SGBM_SEMI_PARAM_P2
SGBM semi global param p2.
Definition: TYApi.h:327
TY_IMAGE_DATA::height
int32_t height
Image height in pixels.
Definition: TYApi.h:978
TY_ENUM_IMAGE_MODE
Resolution-PixelFromat mode, see TY_IMAGE_MODE_LIST.
Definition: TYApi.h:255
TY_FEATURE_INFO::accessMode
TY_ACCESS_MODE accessMode
feature access privilege
Definition: TYApi.h:685
TY_BYTEARRAY_CUSTOM_BLOCK
used for reading/writing custom block
Definition: TYApi.h:235
TYGetDeviceList
TY_CAPI TYGetDeviceList(TY_INTERFACE_HANDLE ifaceHandle, TY_DEVICE_BASE_INFO *deviceInfos, uint32_t bufferCount, uint32_t *filledDeviceCount)
Get device info list.
TY_PIXEL_FORMAT_DEPTH16
0x20000000
Definition: TYApi.h:445
TY_BOOL_TOF_ANTI_INTERFERENCE
cooperation if multi-device used
Definition: TYApi.h:344
TY_PIXEL_FORMAT_CSI_BAYER12RGGB
0x62000000
Definition: TYApi.h:441
TYSetEnum
TY_CAPI TYSetEnum(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, uint32_t value)
Set value of enum feature.
TY_PIXEL_FORMAT_MONO16
0x23000000,
Definition: TYApi.h:448
TY_CAMERA_CALIB_INFO
Definition: TYApi.h:791
TY_TRIGGER_MODE_M_PER
master mode 2, periodic sending one trigger signals, &#39;fps&#39; param should be set
Definition: TYApi.h:563
TYGetString
TY_CAPI TYGetString(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, char *buffer, uint32_t bufferSize)
Get value of string feature.
TYEnableComponents
TY_CAPI TYEnableComponents(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentIDs)
Enable components.
TY_RESOLUTION_MODE_480x640
0x001e0280
Definition: TYApi.h:471
TYGetDeviceNumber
TY_CAPI TYGetDeviceNumber(TY_INTERFACE_HANDLE ifaceHandle, uint32_t *deviceNumber)
Get number of current connected devices.
TYGetInterfaceNumber
TY_CAPI TYGetInterfaceNumber(uint32_t *pNumIfaces)
Get number of current interfaces.
TY_BOOL_FLASHLIGHT
flashlight on/off control
Definition: TYApi.h:278
TY_CAMERA_INTRINSIC
Definition: TYApi.h:753
TY_RESOLUTION_MODE_1920x1080
0x00780438
Definition: TYApi.h:479
TY_DO_WORKMODE
Definition: TYApi.h:1000
TY_INT_NTP_SERVER_IP
Ntp server IP.
Definition: TYApi.h:244
TY_INT_SGBM_LRC_DIFF
SGBM max diff.
Definition: TYApi.h:335
TY_BYTEARRAY_ATTR
byte array data structure
Definition: TYApi.h:716
TY_TIME_SYNC_TYPE_LIST
TY_TIME_SYNC_TYPE_LIST
type of time sync
Definition: TYApi.h:575
TY_IMAGE_MODE_LIST
TY_IMAGE_MODE_LIST
Predefined Image Mode List image mode controls image resolution & format predefined image modes named...
Definition: TYApi.h:514
TY_IMAGE_DATA
Definition: TYApi.h:969
TY_PIXEL_FORMAT_MONO
0x10000000
Definition: TYApi.h:421
TY_INT_SGBM_SEMI_PARAM_P1
SGBM semi global param p1.
Definition: TYApi.h:326
TYGetFloat
TY_CAPI TYGetFloat(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, float *value)
Get value of float feature.
TYGetDeviceInfo
TY_CAPI TYGetDeviceInfo(TY_DEV_HANDLE hDevice, TY_DEVICE_BASE_INFO *info)
Get base info of the open device.
TY_STRUCT_CAM_CALIB_DATA
see TY_CAMERA_CALIB_INFO
Definition: TYApi.h:233
TY_BYTEARRAY_HDR_PARAMETER
HDR parameters.
Definition: TYApi.h:310
TY_INT_TOF_MODULATION_THRESHOLD
the threshold of the tof modulation
Definition: TYApi.h:342
TY_INT_SGBM_SEMI_PARAM_P1_SCALE
SGBM semi global param p1 scale.
Definition: TYApi.h:337
TY_INT_SGBM_COST_PARAM
SGBM cost param.
Definition: TYApi.h:330
TY_IMAGE_DATA::timestamp
uint64_t timestamp
Timestamp in microseconds.
Definition: TYApi.h:971
TY_ACC_SCALE
struct TY_ACC_SCALE TY_ACC_SCALE
TY_INT_SGBM_MEDFILTER_THRESH
SGBM median filter thresh.
Definition: TYApi.h:336
TYGetFeatureInfo
TY_CAPI TYGetFeatureInfo(TY_DEV_HANDLE hDevice, TY_COMPONENT_ID componentID, TY_FEATURE_ID featureID, TY_FEATURE_INFO *featureInfo)
Get feature info.
TY_TRIGGER_PARAM_EX
Definition: TYApi.h:810
TY_PIXEL_FORMAT_CSI_MONO12
0x60000000
Definition: TYApi.h:439
TY_INT_SGBM_IMAGE_NUM
SGBM image channel num.
Definition: TYApi.h:322
TY_INT_ANALOG_GAIN
Analog gain.
Definition: TYApi.h:308
TYErrorString
TY_EXTC TY_EXPORT const char *TY_STDC TYErrorString(TY_STATUS errorID)
Get error information.
TY_CAMERA_DISTORTION
Definition: TYApi.h:783
TY_TRIGGER_MODE_M_SIG
master mode 1, sending one trigger signal once received a soft/hardware trigger
Definition: TYApi.h:562
TY_FEATURE_INFO::bindComponentID
TY_COMPONENT_ID bindComponentID
component ID current feature bind to
Definition: TYApi.h:691
TYOpenDeviceWithIP
TY_CAPI TYOpenDeviceWithIP(TY_INTERFACE_HANDLE ifaceHandle, const char *IP, TY_DEV_HANDLE *deviceHandle)
Open device by device IP, useful when a device is not listed.
TY_BOOL_DEPTH_POSTPROC
Do depth image postproc.
Definition: TYApi.h:302
TY_INT_TRIGGER_DELAY_US
Trigger delay time, in microseconds.
Definition: TYApi.h:271
TY_INTERFACE_TYPE_LIST
TY_INTERFACE_TYPE_LIST
Definition: TYApi.h:366
TY_STRUCT_EXTRINSIC_TO_DEPTH
extrinsic between depth cam and current component , see TY_CAMERA_EXTRINSIC
Definition: TYApi.h:230
TY_FLOAT_RANGE
struct TY_FLOAT_RANGE TY_FLOAT_RANGE
float range data structure
TY_CAMERA_TO_IMU
struct TY_CAMERA_TO_IMU TY_CAMERA_TO_IMU
TY_BOOL_AUTO_GAIN
Auto gain switch.
Definition: TYApi.h:290