Add stream requests

This commit is contained in:
John Zhao
2018-04-06 09:28:17 +08:00
parent 3e56de0a45
commit f1b480e4c3
4 changed files with 18 additions and 0 deletions

View File

@@ -15,4 +15,7 @@ const std::map<Model, OptionSupports> option_supports_map = {
Option::MAX_EXPOSURE_TIME, Option::DESIRED_BRIGHTNESS, Option::IR_CONTROL,
Option::HDR_MODE, Option::ZERO_DRIFT_CALIBRATION, Option::ERASE_CHIP}}};
const std::map<Model, StreamRequests> stream_requests_map = {
{Model::STANDARD, {{Capabilities::STEREO, {752, 480, Format::YUYV, 25}}}}};
MYNTEYE_END_NAMESPACE

View File

@@ -4,6 +4,7 @@
#include <map>
#include <set>
#include <vector>
#include "mynteye/mynteye.h"
#include "mynteye/types.h"
@@ -18,6 +19,10 @@ extern const std::map<Model, StreamSupports> stream_supports_map;
extern const std::map<Model, CapabilitiesSupports> capabilities_supports_map;
extern const std::map<Model, OptionSupports> option_supports_map;
using StreamRequests = std::map<Capabilities, StreamRequest>;
extern const std::map<Model, StreamRequests> stream_requests_map;
MYNTEYE_END_NAMESPACE
#endif // MYNTEYE_INTERNAL_CONFIG_H_ NOLINT