HInstanceDefines.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /*****************************************************************************
  2. * HInstanceDefines.h
  3. *****************************************************************************
  4. *
  5. * Project: HALCON/HLib
  6. * Description: defines for accessing to global context variables;
  7. *
  8. * (c) 1996-2020 by MVTec Software GmbH
  9. * www.mvtec.com
  10. *
  11. *****************************************************************************/
  12. #ifndef HINSTANCE_DEFINES_H
  13. #define HINSTANCE_DEFINES_H
  14. /* -------- H_INSTANCE_INFO_EXCLUSIVE - */
  15. #define HGdef_obj_images 2
  16. #define HGInpObjList 3
  17. #define HGInpObjNum 4
  18. #define HGnum_obj 7 /* for compatibility reasons */
  19. #define HGInpCtrlList 9
  20. #define HGctrl_inherited 10
  21. #define HGusedOCP 16
  22. #define HGOutpCtrlList 17
  23. #define HGStringMem 19
  24. #define HGLastStringMem 20
  25. #define HGMem_handle 21
  26. #define HGDB_handle 22
  27. /* -------- H_INSTANCE_INFO_SHARED ---- */
  28. #define HGinp_obj 23
  29. #define HGoutp_obj 24
  30. #define HGinp_ctrl 25
  31. #define HGoutp_ctrl 26
  32. #define HGNewFilter 27
  33. #define HGnf_inp_key 28
  34. #define HGnf_index 29
  35. #define HGnf_img_type 30
  36. #define HGnf_out 31
  37. #define HGnf_image1 32
  38. #define HGnf_image2 33
  39. #define HGnf_num 34
  40. #define HGnf_num_alloc 35
  41. #define HGmutex_NewFil 36
  42. #define HGCompactObj 41
  43. #define HGLangIntID 98
  44. /* -------- H_SYS_INFO_EXCLUSIVE ------ */
  45. #define HGimsize 37
  46. #define HGWidth 38
  47. #define HGHeight 39
  48. #define HGCurrentRL 40
  49. #define HGcompute_device 158
  50. #define HGcompute_device_id 159
  51. #define HGcompute_device_handle 160
  52. /* -------- H_SYS_INFO_SHARED --------- */
  53. /* CompactObj / 41 moved INSTANCE_INFO_SHARED */
  54. #define HGDBInit 42
  55. #define HGcheck 43
  56. #define HGNoObjResult 44
  57. #define HGEmptyObjResult 45
  58. #define HGWindowName 46
  59. #define HGIconName 47
  60. #define HGWinBackColor 48
  61. #define HGWinBorderColor 49
  62. #define HGXPackage 50
  63. #define HGBackingStore 51
  64. #define HGGraphicBorderWidth 52
  65. #define HGNumGrey 53
  66. #define HGNumGraphicColors 54
  67. #define HGNumGreyPercentage 55
  68. #define HGNumGraphicColorsPercentage 56
  69. #define HGUserDefinedColors 57
  70. #define HGDrawMode 58
  71. #define HGIgnoreColormap 59
  72. #define HGUpdateLUT 60
  73. #define HGInt2Bits 61
  74. #define HGStoreEmptyRegion 62
  75. #define HGClipRegion 63
  76. #define HGInitNewImage 64
  77. #define HGNeighbour 65
  78. #define HGFlushGraphic 66
  79. #define HGFlushFile 67
  80. #define HGTestRegImaInters 68
  81. #define HGPixelRatio 69
  82. #define HGWidthMult 70
  83. #define HGHeightMult 71
  84. #define HGZoomPixel 72
  85. #define HGPixelWidth 73
  86. #define HGPixelHeight 74
  87. #define HGGrStackSize 77
  88. #define HGTimeoutGroupAdd 170
  89. #define HGTimeoutGroupClear 171
  90. #define HGTimeoutOperatorBreak 172
  91. #define HGTimeoutOperatorCancel 173
  92. #define HGLegacyHandleMode 174
  93. #define HGTupleStringOperatorMode 175
  94. #define HGUseWindowThread 100
  95. #define HGHalconDir 166
  96. #define HGExamplesDir 165
  97. #define HGImageDir 75
  98. #define HG3DModelDir 164
  99. #define HGHelpDir 76
  100. /* Reference & HTML dir obsolete (77/78) */
  101. #define HGLicenseDir 79
  102. #define HGLUTDir 80
  103. #define HGFilterDir 81
  104. #define HGOCRDir 82
  105. #define HGCalibDir 83
  106. #define HGDLDir 167
  107. #define HGLS_R 84
  108. #define HGOnlyLines 85
  109. #define HGDoIntZoom 86
  110. #define HGUsedModules 87
  111. #define HGmutex_flexlm 88
  112. #define HGmutex_ChUsMod 89
  113. #define HGmutex_boot 90
  114. #define HGmutex_socket 92
  115. /* HGmutex_strtok, obsolete (93) */
  116. #define HGmutex_ltime 94
  117. #define HGmutex_graphics 96
  118. #define HGmutex_graphics_call 99
  119. #define HGmutex_fft 97
  120. /* HGmutex_metrology_model, obsolete (98) */
  121. #define HGmutex_transfer 161
  122. #define HGmutex_text_finder 162
  123. #define HGmutex_opengl 163
  124. #define HGmutex_gif 176
  125. #define HGmutex_load_on_demand 178
  126. /* LangIntID / 98 added to INSTANCE_INFO_SHARED */
  127. /* HGUseWindowThread / 100 added to H_SYS_INFO_SHARED */
  128. /* -------- HALCON_PROC_HANDLE -------- */
  129. #define HGproc_index 101
  130. /*--- H_INSTANCE_INFO_SHARED add on --- */
  131. #define HGnf_rem_inp_keys 110
  132. /*--- H_SYS_INFO_SHARED add on --- */
  133. #define HGHProcNum 140
  134. #define HGmutex_colorlut 150
  135. #define HGmutex_matrix 151
  136. /*--- HROInfo --- */
  137. #define HGVersion 152
  138. #define HGLastUpdate 153
  139. #define HGparallel 154
  140. #define HGcpu_num 155
  141. #define HGlocale_filename_encoding 156
  142. #define HGCancelDrawResult 157
  143. #define HGcudnn_deterministic 169
  144. #define HGonnx_reader_fuse_conv_relu 177
  145. /*--- CPU features in HROInfo, for HGVGet_CPUFeature ---*/
  146. #define HCPU_FEATURE_MMX 1
  147. #define HCPU_FEATURE_SSE 2
  148. #define HCPU_FEATURE_SSE2 3
  149. #define HCPU_FEATURE_SSE3 4
  150. #define HCPU_FEATURE_SSSE3 5
  151. #define HCPU_FEATURE_SSE41 6
  152. #define HCPU_FEATURE_SSE42 7
  153. #define HCPU_FEATURE_AVX 8
  154. #define HCPU_FEATURE_AVX2 9
  155. #define HCPU_FEATURE_AVX512F 10
  156. #define HCPU_FEATURE_AVX512BW 11
  157. #define HCPU_FEATURE_AVX512CD 12
  158. #define HCPU_FEATURE_AVX512DQ 13
  159. #define HCPU_FEATURE_AVX512ER 14
  160. /*--- CPU caches in HROInfo, for HGVGet_CPUCache ---*/
  161. #define HCPU_CACHE_LEVEL1_DATA 1
  162. #define HCPU_CACHE_LEVEL1_INST 2
  163. #define HCPU_CACHE_LEVEL2 3
  164. #define HCPU_CACHE_LEVEL3 4
  165. #endif /* #ifndef HINSTANCE_DEFINES_H */