Add support for USB Webcams on Windows (#1390)

This commit is contained in:
Thad House
2018-11-17 23:16:35 -08:00
committed by Peter Johnson
parent 70a66fc943
commit 69cb53b51b
16 changed files with 2082 additions and 21 deletions

View File

@@ -69,7 +69,8 @@ enum CS_StatusValue {
CS_SOURCE_IS_DISCONNECTED = -2005,
CS_EMPTY_VALUE = -2006,
CS_BAD_URL = -2007,
CS_TELEMETRY_NOT_ENABLED = -2008
CS_TELEMETRY_NOT_ENABLED = -2008,
CS_UNSUPPORTED_MODE = -2009
};
/**

View File

@@ -79,6 +79,13 @@ struct VideoMode : public CS_VideoMode {
fps = fps_;
}
explicit operator bool() const { return pixelFormat == kUnknown; }
bool operator==(const VideoMode& other) const {
return pixelFormat == other.pixelFormat && width == other.width &&
height == other.height && fps == other.fps;
}
bool operator!=(const VideoMode& other) const { return !(*this == other); }
};
/**