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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  2. #define __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  3. #include <queue>
  4. typedef struct S_IM_ITEM_DATA{
  5. uint32_t item_id;
  6. char md5[33];
  7. uint32_t width;
  8. uint32_t height;
  9. uint8_t type;
  10. }IM_ITEM_DATA;
  11. typedef enum E_IM_ITEM_TYPES{
  12. IM_ITEM_TYPE_JPEG = 0,
  13. IM_ITEM_TYPE_PNG = 1,
  14. IM_ITEM_TYPE_GIF = 2,
  15. IM_ITEM_TYPE_AGIF = 3,
  16. IM_ITEM_TYPE_TIFF = 4
  17. }IM_ITEM_TYPES;
  18. typedef struct S_IM_JOB{
  19. uint32_t dbID;
  20. uint8_t type;
  21. uint32_t width;
  22. uint32_t height;
  23. uint32_t depth;
  24. char md5[33];
  25. }IM_JOB;
  26. typedef struct S_IM_CLASS_BOUNDARY_BOX{
  27. uint32_t classID;
  28. float weight;
  29. uint32_t x;
  30. uint32_t y;
  31. uint32_t width;
  32. uint32_t height;
  33. uint32_t depth;
  34. }IM_CLASS_BOUNDARY_BOX;
  35. typedef struct S_IM_RESULT{
  36. IM_JOB * pJOB;
  37. uint32_t nBoxCount;
  38. IM_CLASS_BOUNDARY_BOX * boxes;
  39. }IM_RESULT;
  40. typedef std::queue<IM_JOB *> IM_JOB_QUEUE;
  41. #endif