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.
51 lines
1.3 KiB
51 lines
1.3 KiB
#ifndef __IMAGE_MILL_DATA_STRUCTURES_HEADER__
|
|
#define __IMAGE_MILL_DATA_STRUCTURES_HEADER__
|
|
|
|
#include <queue>
|
|
|
|
typedef struct S_IM_ITEM_DATA{
|
|
uint32_t item_id;
|
|
char md5[33];
|
|
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 struct S_IM_JOB{
|
|
uint32_t dbID;
|
|
uint8_t 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;
|
|
|
|
|
|
|
|
#endif
|