Add start/stop source

This commit is contained in:
John Zhao
2018-04-07 09:36:41 +08:00
parent f1b480e4c3
commit d80189512d
5 changed files with 86 additions and 0 deletions

View File

@@ -149,6 +149,21 @@ enum class Option : std::uint8_t {
LAST
};
/**
* @ingroup enumerations
* @brief Source allows the user to choose which data to be captured.
*/
enum class Source : std::uint8_t {
/** Video streaming of stereo, color, depth, etc. */
VIDEO_STREAMING,
/** Motion tracking of IMU (accelerometer, gyroscope) */
MOTION_TRACKING,
/** Enable everything together */
ALL,
/** Last guard */
LAST
};
#define MYNTEYE_ENUM_HELPERS(TYPE) \
const char *to_string(const TYPE &value); \
inline bool is_valid(const TYPE &value) { \
@@ -170,6 +185,7 @@ MYNTEYE_ENUM_HELPERS(Stream)
MYNTEYE_ENUM_HELPERS(Capabilities)
MYNTEYE_ENUM_HELPERS(Info)
MYNTEYE_ENUM_HELPERS(Option)
MYNTEYE_ENUM_HELPERS(Source)
#undef MYNTEYE_ENUM_HELPERS