forked from yhdgs/ArcFaceSDK_Delphi_Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
merrorDef.pas
104 lines (98 loc) · 4.65 KB
/
merrorDef.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
(* *******************************************************************************
* C to Pascal by NJTZ 2017.10.10 eMail:[email protected]
******************************************************************************** *)
unit merrorDef;
interface
uses
//C2PTypes,
Windows, Messages, SysUtils, Classes, amcomdef;
const
MERR_NONE = 0;
{$EXTERNALSYM MERR_NONE}
MOK = 0;
{$EXTERNALSYM MOK}
MERR_BASIC_BASE = $0001; //通用错误类型
{$EXTERNALSYM MERR_BASIC_BASE}
MERR_UNKNOWN = MERR_BASIC_BASE; //错误原因不明
{$EXTERNALSYM MERR_UNKNOWN}
MERR_INVALID_PARAM = MERR_BASIC_BASE + 1; //无效的参数
{$EXTERNALSYM MERR_INVALID_PARAM}
MERR_UNSUPPORTED = MERR_BASIC_BASE + 2; //引擎不支持
{$EXTERNALSYM MERR_UNSUPPORTED}
MERR_NO_MEMORY = MERR_BASIC_BASE + 3; //内存不足
{$EXTERNALSYM MERR_NO_MEMORY}
MERR_BAD_STATE = MERR_BASIC_BASE + 4; //状态错误
{$EXTERNALSYM MERR_BAD_STATE}
MERR_USER_CANCEL = MERR_BASIC_BASE + 5; //用户取消相关操作
{$EXTERNALSYM MERR_USER_CANCEL}
MERR_EXPIRED = MERR_BASIC_BASE + 6; //操作时间过期
{$EXTERNALSYM MERR_EXPIRED}
MERR_USER_PAUSE = MERR_BASIC_BASE + 7; //用户暂停操作
{$EXTERNALSYM MERR_USER_PAUSE}
MERR_BUFFER_OVERFLOW = MERR_BASIC_BASE + 8; //缓冲上溢
{$EXTERNALSYM MERR_BUFFER_OVERFLOW}
MERR_BUFFER_UNDERFLOW = MERR_BASIC_BASE + 9; //缓冲下溢
{$EXTERNALSYM MERR_BUFFER_UNDERFLOW}
MERR_NO_DISKSPACE = MERR_BASIC_BASE + 10; //存贮空间不足
{$EXTERNALSYM MERR_NO_DISKSPACE}
MERR_COMPONENT_NOT_EXIST = MERR_BASIC_BASE + 11; //组件不存在
{$EXTERNALSYM MERR_COMPONENT_NOT_EXIST}
MERR_GLOBAL_DATA_NOT_EXIST = MERR_BASIC_BASE + 12; //全局数据不存在
{$EXTERNALSYM MERR_GLOBAL_DATA_NOT_EXIST}
MERR_FSDK_BASE = $7000; //Free SDK通用错误类型
{$EXTERNALSYM MERR_FSDK_BASE}
MERR_FSDK_INVALID_APP_ID = MERR_FSDK_BASE + 1; //无效的App Id
{$EXTERNALSYM MERR_FSDK_INVALID_APP_ID}
MERR_FSDK_INVALID_SDK_ID = MERR_FSDK_BASE + 2; //无效的SDK key
{$EXTERNALSYM MERR_FSDK_INVALID_SDK_ID}
MERR_FSDK_INVALID_ID_PAIR = MERR_FSDK_BASE + 3; //AppId和SDKKey不匹配
{$EXTERNALSYM MERR_FSDK_INVALID_ID_PAIR}
MERR_FSDK_MISMATCH_ID_AND_SDK = MERR_FSDK_BASE + 4; //SDKKey 和使用的SDK 不匹配
{$EXTERNALSYM MERR_FSDK_MISMATCH_ID_AND_SDK}
MERR_FSDK_SYSTEM_VERSION_UNSUPPORTED = MERR_FSDK_BASE + 5; //系统版本不被当前SDK所支持
{$EXTERNALSYM MERR_FSDK_SYSTEM_VERSION_UNSUPPORTED}
MERR_FSDK_LICENCE_EXPIRED = MERR_FSDK_BASE + 6; //SDK有效期过期,需要重新下载更新
{$EXTERNALSYM MERR_FSDK_LICENCE_EXPIRED}
MERR_FSDK_APS_ERROR_BASE = $11000; //PhotoStyling 错误类型
{$EXTERNALSYM MERR_FSDK_APS_ERROR_BASE}
MERR_FSDK_APS_ENGINE_HANDLE = MERR_FSDK_APS_ERROR_BASE + 1; //引擎句柄非法
{$EXTERNALSYM MERR_FSDK_APS_ENGINE_HANDLE}
MERR_FSDK_APS_MEMMGR_HANDLE = MERR_FSDK_APS_ERROR_BASE + 2; //内存句柄非法
{$EXTERNALSYM MERR_FSDK_APS_MEMMGR_HANDLE}
MERR_FSDK_APS_DEVICEID_INVALID = MERR_FSDK_APS_ERROR_BASE + 3;
//Device ID 非法
{$EXTERNALSYM MERR_FSDK_APS_DEVICEID_INVALID}
MERR_FSDK_APS_DEVICEID_UNSUPPORTED = MERR_FSDK_APS_ERROR_BASE + 4;
//Device ID 不支持
{$EXTERNALSYM MERR_FSDK_APS_DEVICEID_UNSUPPORTED}
MERR_FSDK_APS_MODEL_HANDLE = MERR_FSDK_APS_ERROR_BASE + 5; //模板数据指针非法
{$EXTERNALSYM MERR_FSDK_APS_MODEL_HANDLE}
MERR_FSDK_APS_MODEL_SIZE = MERR_FSDK_APS_ERROR_BASE + 6; //模板数据长度非法
{$EXTERNALSYM MERR_FSDK_APS_MODEL_SIZE}
MERR_FSDK_APS_IMAGE_HANDLE = MERR_FSDK_APS_ERROR_BASE + 7; //图像结构体指针非法
{$EXTERNALSYM MERR_FSDK_APS_IMAGE_HANDLE}
MERR_FSDK_APS_IMAGE_FORMAT_UNSUPPORTED = MERR_FSDK_APS_ERROR_BASE + 8;
//图像格式不支持
{$EXTERNALSYM MERR_FSDK_APS_IMAGE_FORMAT_UNSUPPORTED}
MERR_FSDK_APS_IMAGE_PARAM = MERR_FSDK_APS_ERROR_BASE + 9; //图像参数非法
{$EXTERNALSYM MERR_FSDK_APS_IMAGE_PARAM}
MERR_FSDK_APS_IMAGE_SIZE = MERR_FSDK_APS_ERROR_BASE + 10; //图像尺寸大小超过支持范围
{$EXTERNALSYM MERR_FSDK_APS_IMAGE_SIZE}
MERR_FSDK_APS_DEVICE_AVX2_UNSUPPORTED = MERR_FSDK_APS_ERROR_BASE + 11;
//处理器不支持AVX2指令
{$EXTERNALSYM MERR_FSDK_APS_DEVICE_AVX2_UNSUPPORTED}
MERR_FSDK_FR_ERROR_BASE = $12000; //Face Recognition错误类型
{$EXTERNALSYM MERR_FSDK_FR_ERROR_BASE}
MERR_FSDK_FR_INVALID_MEMORY_INFO = MERR_FSDK_FR_ERROR_BASE + 1; //无效的输入内存
{$EXTERNALSYM MERR_FSDK_FR_INVALID_MEMORY_INFO}
MERR_FSDK_FR_INVALID_IMAGE_INFO = MERR_FSDK_FR_ERROR_BASE + 2; //无效的输入图像参数
{$EXTERNALSYM MERR_FSDK_FR_INVALID_IMAGE_INFO}
MERR_FSDK_FR_INVALID_FACE_INFO = MERR_FSDK_FR_ERROR_BASE + 3; //无效的脸部信息
{$EXTERNALSYM MERR_FSDK_FR_INVALID_FACE_INFO}
MERR_FSDK_FR_NO_GPU_AVAILABLE = MERR_FSDK_FR_ERROR_BASE + 4; //当前设备无GPU可用
{$EXTERNALSYM MERR_FSDK_FR_NO_GPU_AVAILABLE}
//待比较的两个人脸特征的版本不一致
MERR_FSDK_FR_MISMATCHED_FEATURE_LEVEL = MERR_FSDK_FR_ERROR_BASE + 5;
{$EXTERNALSYM MERR_FSDK_FR_MISMATCHED_FEATURE_LEVEL}
implementation
end.