VzenseNebula_enums.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #ifndef VZENSEDS_ENUMS_H
  2. #define VZENSEDS_ENUMS_H
  3. /**
  4. * @brief Specifies the type of image frame.
  5. */
  6. typedef enum{
  7. VzDepthFrame = 0, //!< Depth frame with 16 bits per pixel in millimeters.
  8. VzIRFrame = 1, //!< IR frame with 8 bits per pixel.
  9. VzColorFrame = 3, //!< Color frame with 24 bits per pixel in RGB/BGR format.
  10. VzTransformColorImgToDepthSensorFrame = 4, //!< Color frame with 24 bits per pixel in RGB/BGR format, that is transformed to depth sensor space where the resolution is the same as the depth frame's resolution.\n
  11. //!< This frame type can be enabled using ::VZ_SetTransformColorImgToDepthSensorEnabled().
  12. VzTransformDepthImgToColorSensorFrame = 5, //!< Depth frame with 16 bits per pixel, in millimeters, that is transformed to color sensor space where the resolution is same as the color frame's resolution.\n
  13. //!< This frame type can be enabled using ::VZ_SetTransformDepthImgToColorSensorEnabled().
  14. VzConfidenceFrame = 8, //!< Confidence frame with 16 bits per pixel.
  15. }VzFrameType;
  16. /**
  17. * @brief Specifies the image pixel format.
  18. */
  19. typedef enum{
  20. VzPixelFormatDepthMM16 = 0, //!< Depth image pixel format, 16 bits per pixel in mm.
  21. VzPixelFormatGray8 = 2, //!< Gray image pixel format, 8 bits per pixel.
  22. //Color
  23. VzPixelFormatRGB888 = 3, //!< Color image pixel format, 24 bits per pixel RGB format.
  24. VzPixelFormatBGR888 = 4 //!< Color image pixel format, 24 bits per pixel BGR format.
  25. }VzPixelFormat;
  26. /**
  27. * @brief Specifies the type of sensor.
  28. */
  29. typedef enum {
  30. VzToFSensor = 0x01, //!< ToF camera.
  31. VzColorSensor = 0x02 //!< Color camera.
  32. }VzSensorType;
  33. /**
  34. * @brief Return status codes for all APIs.\n
  35. * <code>VzRetOK = 0</code> means the API successfully completed its operation.\n
  36. * All other codes indicate a device, parameter, or API usage error.
  37. */
  38. typedef enum
  39. {
  40. VzRetOK = 0, //!< The function completed successfully.
  41. VzRetNoDeviceConnected = -1, //!< There is no depth camera connected or the camera has not been connected correctly. Check the hardware connection or try unplugging and re-plugging the USB cable.
  42. VzRetInvalidDeviceIndex = -2, //!< The input device index is invalid.
  43. VzRetDevicePointerIsNull = -3, //!< The device structure pointer is null.
  44. VzRetInvalidFrameType = -4, //!< The input frame type is invalid.
  45. VzRetFramePointerIsNull = -5, //!< The output frame buffer is null.
  46. VzRetNoPropertyValueGet = -6, //!< Cannot get the value for the specified property.
  47. VzRetNoPropertyValueSet = -7, //!< Cannot set the value for the specified property.
  48. VzRetPropertyPointerIsNull = -8, //!< The input property value buffer pointer is null.
  49. VzRetPropertySizeNotEnough = -9, //!< The input property value buffer size is too small to store the specified property value.
  50. VzRetInvalidDepthRange = -10, //!< The input depth range mode is invalid.
  51. VzRetGetFrameReadyTimeOut = -11, //!< Capture the next image frame time out.
  52. VzRetInputPointerIsNull = -12, //!< An input pointer parameter is null.
  53. VzRetCameraNotOpened = -13, //!< The camera has not been opened.
  54. vzRetInvalidCameraType = -14, //!< The specified type of camera is invalid.
  55. VzRetInvalidParams = -15, //!< One or more of the parameter values provided are invalid.
  56. VzRetCurrentVersionNotSupport = -16, //!< This feature is not supported in the current version.
  57. VzRetUpgradeImgError = -17, //!< There is an error in the upgrade file.
  58. VzRetUpgradeImgPathTooLong = -18, //!< Upgrade file path length greater than 260.
  59. VzRetUpgradeCallbackNotSet = -19, //!< VZ_SetUpgradeStatusCallback is not called.
  60. VzRetProductNotSupport = -20, //!< The current product does not support this operation.
  61. VzRetNoConfigFolder = -21, //!< No product profile found.
  62. VzRetWebServerStartError = -22, //!< WebServer Start/Restart error(IP or PORT).
  63. VzRetGetOverStayFrame = -23, //!< The time from frame ready to get frame is out of 1s
  64. VzRetCreateLogDirError = -24, //!< Create log directory error
  65. VzRetCreateLogFileError = -25, //!< Create log file error
  66. VzRetNoAdapterConnected = -100, //!< There is no adapter connected
  67. VzRetReInitialized = -101, //!< The SDK has been Initialized
  68. VzRetNoInitialized = -102, //!< The SDK has not been Initialized
  69. VzRetCameraOpened = -103, //!< The camera has been opened.
  70. VzRetCmdError = -104, //!< Set/Get cmd control error
  71. VzRetCmdSyncTimeOut = -105, //!< Set cmd ok.but time out for the sync return
  72. VzRetIPNotMatch = -106, //!< IP is not in the same network segment
  73. VzRetNotStopStream = -107, //!< Please invoke VZ_StopStream first to close the data stream
  74. VzRetNotStartStream = -108, //!< Please invoke VZ_StartStream first to get the data stream
  75. VzRetNoDriversFolder = -109, //!< Please invoke VZ_StartStream first to get the data stream
  76. VzRetOthers = -255, //!< An unknown error occurred.
  77. }VzReturnStatus;
  78. typedef enum {
  79. VzConnectUNKNOWN = 0,
  80. VzUnconnected = 1,
  81. VzConnected = 2,
  82. VzOpened = 3,
  83. VzUpgradeUnconnected = 4,
  84. VzUpgradeConnected = 5,
  85. }VzConnectStatus;
  86. typedef enum
  87. {
  88. VzActiveMode = 0x00, //enter the active mode
  89. VzHardwareTriggerMode = 0x01, //enter the hardware salve mode, at this time need to connect the hardware trigger wire, provide hardware signal, to trigger the image
  90. VzSoftwareTriggerMode = 0x02, //enter the software salve mode, at this time need to invoke VZ_SetSoftwareSlaveTrigger, to trigger the image
  91. }VzWorkMode;
  92. typedef enum
  93. {
  94. VzExposureControlMode_Auto = 0,
  95. VzExposureControlMode_Manual = 1,
  96. }VzExposureControlMode;
  97. #endif /* VZENSEDS_ENUMS_H */