|
| CvSource (llvm::StringRef name, const VideoMode &mode) |
| Create an OpenCV source. More...
|
|
| CvSource (llvm::StringRef name, VideoMode::PixelFormat pixelFormat, int width, int height, int fps) |
| Create an OpenCV source. More...
|
|
void | PutFrame (cv::Mat &image) |
| Put an OpenCV image and notify sinks. More...
|
|
void | NotifyError (llvm::StringRef msg) |
| Signal sinks that an error has occurred. More...
|
|
void | SetConnected (bool connected) |
| Set source connection status. More...
|
|
void | SetDescription (llvm::StringRef description) |
| Set source description. More...
|
|
VideoProperty | CreateProperty (llvm::StringRef name, VideoProperty::Kind kind, int minimum, int maximum, int step, int defaultValue, int value) |
| Create a property. More...
|
|
VideoProperty | CreateIntegerProperty (llvm::StringRef name, int minimum, int maximum, int step, int defaultValue, int value) |
| Create an integer property. More...
|
|
VideoProperty | CreateBooleanProperty (llvm::StringRef name, bool defaultValue, bool value) |
| Create a boolean property. More...
|
|
VideoProperty | CreateStringProperty (llvm::StringRef name, llvm::StringRef value) |
| Create a string property. More...
|
|
void | SetEnumPropertyChoices (const VideoProperty &property, llvm::ArrayRef< std::string > choices) |
| Configure enum property choices. More...
|
|
template<typename T > |
void | SetEnumPropertyChoices (const VideoProperty &property, std::initializer_list< T > choices) |
| Configure enum property choices. More...
|
|
| 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. This is source-kind specific.
|
|
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 (llvm::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...
|
|
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 for user code to provide OpenCV images as video frames.