NetSDK
1.0.0.0
NetSDK开发文档
errcode.h
浏览该文件的文档.
1
#ifndef __ERRCODE_H__
2
#define __ERRCODE_H__
3
4
/*****************************************************************
5
|----------------------------------------------------------------|
6
| 1 | APP_ID | MOD_ID | ERR_ID |
7
|----------------------------------------------------------------|
8
|<--><--7bits----><----8bits---><------------16bits------------->|
9
*****************************************************************/
10
11
#define SL_ERRCODE_DEFINE(appid, module, errid) \
12
((uint32_t)( (1 << 31) | ((appid) << 24) | ((module) << 16 ) | (errid) ))
13
14
#define SL_APPID_MAX 0x7F
15
#define SL_MODID_MAX 0xFF
16
#define SL_ERRID_MAX 0xFFFF
17
18
#define SL_APPID_COMMON SL_APPID_MAX
19
#define SL_APPID_SYSTEM 0x01
20
#define SL_APPID_CAMERA 0x02
21
22
#define SL_MODID_COMMON SL_MODID_MAX
23
#define SL_MODID_BASE 0x01
24
#define SL_MODID_FACEDB 0x02
25
#define SL_MODID_CVENGINE 0x03
26
27
/************************************************************************/
28
/* 公共错误码 */
29
/************************************************************************/
30
#define SL_ERROR_UNKNOWN (-1)
31
#define SL_ERROR_NOTFOUND (-2)
32
#define SL_ERROR_ILLEGAL_PARAM (-3)
33
#define SL_ERROR_NOMEM (-4)
34
#define SL_ERROR_NOBUF (-5)
35
#define SL_ERROR_BUF_FULL (-6)
36
#define SL_ERROR_BUF_EMPTY (-7)
37
#define SL_ERROR_NOPERM (-8)
38
#define SL_ERROR_NOT_SUPPORT (-9)
39
#define SL_ERROR_BUSY (-10)
40
#define SL_ERROR_NOTREADY (-11)
41
#define SL_ERROR_TIMEDOUT (-12)
42
#define SL_ERROR_DNS (-13)
43
#define SL_ERROR_CONNECT (-14)
46
/************************************************************************/
47
/* 人脸库错误码 */
48
/************************************************************************/
49
#define SL_ERROR_FACE_PIXEL_TOO_SMALL (0x82020001)
50
#define SL_ERROR_FACE_PIXEL_TOO_LARGE (0x82020002)
51
#define SL_ERROR_FACE_PIXEL_ALIGN (0x82020003)
52
#define SL_ERROR_FACE_SIZE_TOO_BIG (0x82020004)
53
#define SL_ERROR_FACE_QUALITY (0x82020005)
54
#define SL_ERROR_FACE_PITCH (0x82020006)
55
#define SL_ERROR_FACE_YAW (0x82020007)
56
#define SL_ERROR_FACE_ROLL (0x82020008)
57
#define SL_ERROR_FACE_BLUR (0x82020009)
58
#define SL_ERROR_FACE_NOT_DETECTED (0x8202000A)
59
#define SL_ERROR_FACE_MULTIPLE (0x8202000B)
60
#define SL_ERROR_FACE_MODEL (0x8202000C)
61
#define SL_ERROR_FACE_DB_OPEN (0x8202000D)
62
#define SL_ERROR_FACE_DB_INIT (0x8202000E)
63
#define SL_ERROR_FACE_DB_PREPARE (0x8202000F)
64
#define SL_ERROR_FACE_DB_READ (0x82020010)
65
#define SL_ERROR_FACE_DB_WRITE (0x82020011)
67
#endif // __ERRCODE_H__
inc
interface
errcode.h
生成于 2019年 九月 23日 星期一 15:54:16 , 为 NetSDK使用
1.8.16