📄 fgstypes.h
字号:
#if !defined __FGS_TYPES_H_INCLUDED
#define __FGS_TYPES_H_INCLUDED
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef signed char int8;
typedef signed short int16;
typedef signed int int32;
/*!
Natural signed integer type.
*/
typedef int FgsInt;
typedef uint8 FgsBit;
/*!
Natural unsigned integer type.
*/
typedef unsigned int FgsUint;
/*!
Signed byte, word and dword..
*/
typedef int8 FgsInt8;
typedef int16 FgsInt16;
typedef int32 FgsInt32;
/*!
Unsigned byte, word and dword..
*/
typedef uint8 FgsUint8;
typedef uint16 FgsUint16;
typedef uint32 FgsUint32;
typedef uint8 FgsByte;
typedef uint16 FgsWord;
typedef uint32 FgsDword;
/*!
Floating point type.
*/
typedef float FgsFloat;
typedef FgsByte FgsBit;
/*!
Handle type to manipulate opaque structures.
*/
typedef void* FgsHandle;
typedef void* FgsHeap;
/*!
String type.
*/
typedef char* FgsString;
/*!
A boolean type
*/
typedef enum _fgs_bool_e
{
/*! false tag */
FgsFalse = 0,
/*! true tag */
FgsTrue = 1
} FgsBool;
typedef struct _fgs_point{
int x;
int y;
}FgsPoint;
typedef struct _fgs_rect{
int x;
int y;
int w;
int h;
}FgsRect;
typedef enum _fgs_field_type_e{
FgsFieldBit,
FgsFieldFloat,
}FgsFieldType;
/*!
Definitions for the different minutia types.
*/
typedef enum _fgs_minutia_type_e
{
FgsMinuEnding = 0,
FgsMinuBranching = 1,
FgsMinuCore = 2,
FgsMinuDelta = 3,
FgsMinuUndefined =4,
} FgsMinutiaType;
typedef FgsHandle FgsImage;
typedef FgsHandle FgsField;
typedef FgsHandle FgsMinutia;
typedef FgsHandle FgsStar;
typedef FgsHandle FgsMinutiaSet;
typedef FgsHandle FgsRefMask;
typedef FgsHandle FgsGaborBank;
typedef FgsHandle FgsSDC;
/*!
Error codes. An error code should be returned by each function from the
interface. The user of the API should always know when an operation did
not end up successfully.
*/
typedef enum _fgs_error_e
{
/*! an undefined error, use with parcimony */
FgsFailure = -1,
/*! no error */
FgsOK = 0,
/*! not enough memory */
FgsMemoryAlloc,
/*! an invalid parameter was used */
FgsBadParameter,
FgsTypeError,
/*! bad function calling */
FgsInvalidMemory,
FgsWrongFormat,
FgsOverflow,
FgsUnknown,
}FgsError;
#endif /* Fgs__FgsTYPES_HEADER__INCLUDED__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -