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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  2. #define __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  3. #include "../../lib/components/base/basicFunctionality.h"
  4. #include <queue>
  5. typedef struct S_IM_ITEM_DATA{
  6. uint32_t item_id;
  7. char md5[33];
  8. uint8_t process_type;
  9. uint32_t width;
  10. uint32_t height;
  11. uint8_t type;
  12. }IM_ITEM_DATA;
  13. typedef enum E_IM_ITEM_TYPES{
  14. IM_ITEM_TYPE_JPEG = 0,
  15. IM_ITEM_TYPE_PNG = 1,
  16. IM_ITEM_TYPE_GIF = 2,
  17. IM_ITEM_TYPE_AGIF = 3,
  18. IM_ITEM_TYPE_TIFF = 4
  19. }IM_ITEM_TYPES;
  20. typedef enum E_IM_PROCESS_TYPES{
  21. IM_PROC_TYPE_DNN = 0,
  22. IM_PROC_TYPE_FACE = 1
  23. }IM_PROCESS_TYPES;
  24. typedef struct S_IM_JOB{
  25. uint32_t dbID;
  26. uint8_t job_type;
  27. uint8_t image_type;
  28. uint32_t width;
  29. uint32_t height;
  30. uint32_t depth;
  31. char md5[33];
  32. }IM_JOB;
  33. typedef struct S_IM_CLASS_BOUNDARY_BOX{
  34. uint32_t classID;
  35. float weight;
  36. uint32_t x;
  37. uint32_t y;
  38. uint32_t width;
  39. uint32_t height;
  40. uint32_t depth;
  41. }IM_CLASS_BOUNDARY_BOX;
  42. typedef struct S_IM_RESULT{
  43. IM_JOB * pJOB;
  44. uint32_t nBoxCount;
  45. IM_CLASS_BOUNDARY_BOX * boxes;
  46. }IM_RESULT;
  47. typedef std::queue<IM_JOB *> IM_JOB_QUEUE;
  48. CSTR buildMd5Path( CSTR base, CSTR md5, mode_t mode = 0755, CSTR user=NULL, CSTR group=NULL );
  49. #endif