Add streams & its request

This commit is contained in:
John Zhao
2018-04-08 12:23:33 +08:00
parent d80189512d
commit 81caf45dba
10 changed files with 314 additions and 17 deletions

View File

@@ -212,6 +212,8 @@ inline std::ostream &operator<<(std::ostream &os, const Format &value) {
return os << to_string(value);
}
std::size_t bytes_per_pixel(const Format &value);
/**
* Stream request.
*/
@@ -224,6 +226,14 @@ struct MYNTEYE_API StreamRequest {
Format format;
/** frames per second */
std::uint16_t fps;
bool operator==(const StreamRequest &other) const {
return width == other.width && height == other.height &&
format == other.format && fps == other.fps;
}
bool operator!=(const StreamRequest &other) const {
return !(*this == other);
}
};
/**