You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
#ifndef __IMAGE_MILL_DATA_STRUCTURES_HEADER__
|
|
#define __IMAGE_MILL_DATA_STRUCTURES_HEADER__
|
|
|
|
#include "../../lib/components/base/basicFunctionality.h"
|
|
#include <queue>
|
|
|
|
typedef struct S_IM_ITEM_DATA{
|
|
uint32_t item_id;
|
|
char md5[33];
|
|
uint8_t process_type;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
uint8_t type;
|
|
}IM_ITEM_DATA;
|
|
|
|
typedef enum E_IM_ITEM_TYPES{
|
|
IM_ITEM_TYPE_JPEG = 0,
|
|
IM_ITEM_TYPE_PNG = 1,
|
|
IM_ITEM_TYPE_GIF = 2,
|
|
IM_ITEM_TYPE_AGIF = 3,
|
|
IM_ITEM_TYPE_TIFF = 4
|
|
}IM_ITEM_TYPES;
|
|
|
|
typedef enum E_IM_PROCESS_TYPES{
|
|
IM_PROC_TYPE_DNN = 0,
|
|
IM_PROC_TYPE_FACE = 1
|
|
}IM_PROCESS_TYPES;
|
|
|
|
typedef struct S_IM_JOB{
|
|
uint32_t dbID;
|
|
uint8_t job_type;
|
|
uint8_t image_type;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
uint32_t depth;
|
|
char md5[33];
|
|
}IM_JOB;
|
|
|
|
typedef struct S_IM_CLASS_BOUNDARY_BOX{
|
|
uint32_t classID;
|
|
float weight;
|
|
uint32_t x;
|
|
uint32_t y;
|
|
uint32_t width;
|
|
uint32_t height;
|
|
uint32_t depth;
|
|
}IM_CLASS_BOUNDARY_BOX;
|
|
|
|
typedef struct S_IM_RESULT{
|
|
IM_JOB * pJOB;
|
|
uint32_t nBoxCount;
|
|
IM_CLASS_BOUNDARY_BOX * boxes;
|
|
}IM_RESULT;
|
|
|
|
typedef std::queue<IM_JOB *> IM_JOB_QUEUE;
|
|
|
|
CSTR buildMd5Path( CSTR base, CSTR md5, mode_t mode = 0755, CSTR user=NULL, CSTR group=NULL );
|
|
|
|
|
|
#endif
|