PipelineDataCommon.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. #pragma once
  2. enum PIPELINE_MAINKEY
  3. {
  4. PIPELINE_MKEY_MEMMORY,
  5. PIPELINE_MKEY_IMAGE,
  6. PIPELINE_MKEY_LIST,
  7. PIPELINE_MKEY_END,
  8. };
  9. enum PIPELINE_MEMMORY_SUBKEY
  10. {
  11. PIPELINE_SKEY_MEMMORY_DEFAULT,
  12. };
  13. enum PIPELINE_IMAGE_SUBKEY
  14. {
  15. PIPELINE_SKEY_IMAGE_2D_GRAY,
  16. PIPELINE_SKEY_IMAGE_2D_RGB,
  17. PIPELINE_MKEY_IMAGE_END,
  18. };
  19. enum PIPELINE_LIST_SUBKEY
  20. {
  21. PIPELINE_SKEY_LIST_INT,
  22. PIPELINE_SKEY_LIST_FLOAT,
  23. PIPELINE_SKEY_LIST_DOUBLE,
  24. PIPELINE_SKEY_LIST_POINT,
  25. PIPELINE_MKEY_LIST_END,
  26. };
  27. //PIPELINE_SKEY_MEMORY
  28. typedef struct _PLMemory
  29. {
  30. PIPELINE_MAINKEY nMainKey;
  31. PIPELINE_MEMMORY_SUBKEY nSubKey;
  32. UINT nElementSize;
  33. UINT nElementCount;
  34. _PLMemory()
  35. {
  36. ZeroMemory(this, sizeof(_PLMemory));
  37. nMainKey = PIPELINE_MKEY_MEMMORY;
  38. nSubKey = PIPELINE_SKEY_MEMMORY_DEFAULT;
  39. }
  40. _PLMemory& operator=(const _PLMemory& fhd)
  41. {
  42. memcpy(this, &fhd, sizeof(_PLMemory));
  43. return *this;
  44. }
  45. }
  46. PIPELINE_MEMORYINFO;
  47. //PIPELINE_SKEY_2D_GRAY
  48. typedef struct _PLImage2DGrayInfo
  49. {
  50. PIPELINE_MAINKEY nMainKey;
  51. PIPELINE_IMAGE_SUBKEY nSubKey;
  52. UINT nWidth;
  53. UINT nHeight;
  54. UINT nBits;
  55. UINT nFrameId;
  56. _PLImage2DGrayInfo()
  57. {
  58. ZeroMemory(this, sizeof(_PLImage2DGrayInfo));
  59. nMainKey = PIPELINE_MKEY_IMAGE;
  60. nSubKey = PIPELINE_SKEY_IMAGE_2D_GRAY;
  61. }
  62. _PLImage2DGrayInfo& operator=(const _PLImage2DGrayInfo& fhd)
  63. {
  64. memcpy(this, &fhd, sizeof(_PLImage2DGrayInfo));
  65. return *this;
  66. }
  67. }
  68. PIPELINE_2DGRAYIMGINFO;
  69. //PIPELINE_SKEY_2D_GRAY
  70. typedef struct _PLImage2DRGBInfo
  71. {
  72. PIPELINE_MAINKEY nMainKey;
  73. PIPELINE_IMAGE_SUBKEY nSubKey;
  74. unsigned int nWidth;
  75. unsigned int nHeight;
  76. unsigned int nBitsperSample;
  77. unsigned int nSamplesperPixel;
  78. unsigned int nPlanarConfiguration;
  79. unsigned int nFrameId;
  80. _PLImage2DRGBInfo()
  81. {
  82. ZeroMemory(this, sizeof(_PLImage2DRGBInfo));
  83. nMainKey = PIPELINE_MKEY_IMAGE;
  84. nSubKey = PIPELINE_SKEY_IMAGE_2D_RGB;
  85. }
  86. _PLImage2DRGBInfo& operator=(const _PLImage2DRGBInfo& fhd)
  87. {
  88. memcpy(this, &fhd, sizeof(_PLImage2DRGBInfo));
  89. return *this;
  90. }
  91. }
  92. PIPELINE_2DRGBIMGINFO;
  93. //PIPELINE_SKEY_FLOATLIST
  94. typedef struct _PLFloatList
  95. {
  96. PIPELINE_MAINKEY nMainKey;
  97. PIPELINE_LIST_SUBKEY nSubKey;
  98. UINT nCount;
  99. _PLFloatList()
  100. {
  101. ZeroMemory(this, sizeof(_PLFloatList));
  102. nMainKey = PIPELINE_MKEY_LIST;
  103. nSubKey = PIPELINE_SKEY_LIST_FLOAT;
  104. }
  105. _PLFloatList& operator=(const _PLFloatList& fhd)
  106. {
  107. memcpy(this, &fhd, sizeof(_PLFloatList));
  108. return *this;
  109. }
  110. }
  111. PIPELINE_FLOATLISTINFO;
  112. //PIPELINE_SKEY_INTLIST
  113. typedef struct _PLIntParam
  114. {
  115. PIPELINE_MAINKEY nMainKey;
  116. PIPELINE_LIST_SUBKEY nSubKey;
  117. UINT nCount;
  118. _PLIntParam()
  119. {
  120. ZeroMemory(this, sizeof(_PLIntParam));
  121. nMainKey = PIPELINE_MKEY_LIST;
  122. nSubKey = PIPELINE_SKEY_LIST_INT;
  123. }
  124. _PLIntParam& operator=(const _PLIntParam& fhd)
  125. {
  126. memcpy(this, &fhd, sizeof(_PLIntParam));
  127. return *this;
  128. }
  129. }
  130. PIPELINE_INTLISTINFO;
  131. //PIPELINE_SKEY_POINTLIST
  132. typedef struct _PLPointList
  133. {
  134. PIPELINE_MAINKEY nMainKey;
  135. PIPELINE_LIST_SUBKEY nSubKey;
  136. UINT nCount;
  137. _PLPointList()
  138. {
  139. ZeroMemory(this, sizeof(_PLPointList));
  140. nMainKey = PIPELINE_MKEY_LIST;
  141. nSubKey = PIPELINE_SKEY_LIST_POINT;
  142. }
  143. _PLPointList& operator=(const _PLPointList& fhd)
  144. {
  145. memcpy(this, &fhd, sizeof(_PLPointList));
  146. return *this;
  147. }
  148. }
  149. PIPELINE_POINTLISTINFO;