|
| UsbCamera (wpi::StringRef name, int dev) |
| Create a source for a USB camera based on device number. More...
|
|
| UsbCamera (wpi::StringRef name, wpi::StringRef path) |
| Create a source for a USB camera based on device path. More...
|
|
std::string | GetPath () const |
| Get the path to the device.
|
|
void | SetConnectVerbose (int level) |
| Set how verbose the camera connection messages are. More...
|
|
void | SetBrightness (int brightness) |
| Set the brightness, as a percentage (0-100).
|
|
int | GetBrightness () |
| Get the brightness, as a percentage (0-100).
|
|
void | SetWhiteBalanceAuto () |
| Set the white balance to auto.
|
|
void | SetWhiteBalanceHoldCurrent () |
| Set the white balance to hold current.
|
|
void | SetWhiteBalanceManual (int value) |
| Set the white balance to manual, with specified color temperature.
|
|
void | SetExposureAuto () |
| Set the exposure to auto aperature.
|
|
void | SetExposureHoldCurrent () |
| Set the exposure to hold current.
|
|
void | SetExposureManual (int value) |
| Set the exposure to manual, as a percentage (0-100).
|
|
| VideoSource (const VideoSource &source) |
|
| VideoSource (VideoSource &&other) noexcept |
|
VideoSource & | operator= (VideoSource other) noexcept |
|
| operator bool () const |
|
int | GetHandle () const |
|
bool | operator== (const VideoSource &other) const |
|
bool | operator!= (const VideoSource &other) const |
|
Kind | GetKind () const |
| Get the kind of the source.
|
|
std::string | GetName () const |
| Get the name of the source. More...
|
|
std::string | GetDescription () const |
| Get the source description. More...
|
|
uint64_t | GetLastFrameTime () const |
| Get the last time a frame was captured. More...
|
|
bool | IsConnected () const |
| Is the source currently connected to whatever is providing the images?
|
|
VideoProperty | GetProperty (wpi::StringRef name) |
| Get a property. More...
|
|
std::vector< VideoProperty > | EnumerateProperties () const |
| Enumerate all properties of this source.
|
|
VideoMode | GetVideoMode () const |
| Get the current video mode.
|
|
bool | SetVideoMode (const VideoMode &mode) |
| Set the video mode. More...
|
|
bool | SetVideoMode (VideoMode::PixelFormat pixelFormat, int width, int height, int fps) |
| Set the video mode. More...
|
|
bool | SetPixelFormat (VideoMode::PixelFormat pixelFormat) |
| Set the pixel format. More...
|
|
bool | SetResolution (int width, int height) |
| Set the resolution. More...
|
|
bool | SetFPS (int fps) |
| Set the frames per second (FPS). More...
|
|
double | GetActualFPS () const |
| Get the actual FPS. More...
|
|
double | GetActualDataRate () const |
| Get the data rate (in bytes per second). More...
|
|
std::vector< VideoMode > | EnumerateVideoModes () const |
| Enumerate all known video modes for this source.
|
|
CS_Status | GetLastStatus () const |
|
std::vector< VideoSink > | EnumerateSinks () |
| Enumerate all sinks connected to this source. More...
|
|
A source that represents a USB camera.