|
|
@ -51,6 +51,14 @@ typedef struct _simdb_t simdb_t; |
|
|
|
#define REC_OFF_BM 16 /**< image bitmap */ |
|
|
|
#define REC_OFF_BM 16 /**< image bitmap */ |
|
|
|
/** @} */ |
|
|
|
/** @} */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* database record |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
typedef struct { |
|
|
|
|
|
|
|
uint64_t num; /**< record number in database */ |
|
|
|
|
|
|
|
unsigned char data[SIMDB_REC_LEN]; /**< record raw data */ |
|
|
|
|
|
|
|
} simdb_rec_t; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* block of sequental records of database |
|
|
|
* block of sequental records of database |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -60,14 +68,6 @@ typedef struct { |
|
|
|
unsigned char *data; /**< raw records data */ |
|
|
|
unsigned char *data; /**< raw records data */ |
|
|
|
} simdb_block_t; |
|
|
|
} simdb_block_t; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* database record |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
typedef struct { |
|
|
|
|
|
|
|
uint64_t num; /**< record number in database */ |
|
|
|
|
|
|
|
unsigned char data[SIMDB_REC_LEN]; /**< record raw data */ |
|
|
|
|
|
|
|
} simdb_rec_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* search parameters |
|
|
|
* search parameters |
|
|
|
* maxdiff_* fields should have value from 0.0 to 1.0 (0% - 100%) |
|
|
|
* maxdiff_* fields should have value from 0.0 to 1.0 (0% - 100%) |
|
|
|