WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
cscore C++ object-oriented API

Recommended interface for C++, identical to Java API. More...

Classes

class  cs::VideoProperty
 A source or sink property. More...
 
class  cs::VideoSource
 A source for video that provides a sequence of frames. More...
 
class  cs::VideoCamera
 A source that represents a video camera. More...
 
class  cs::UsbCamera
 A source that represents a USB camera. More...
 
class  cs::HttpCamera
 A source that represents a MJPEG-over-HTTP (IP) camera. More...
 
class  cs::AxisCamera
 A source that represents an Axis IP camera. More...
 
class  cs::CvSource
 A source for user code to provide OpenCV images as video frames. More...
 
class  cs::VideoSink
 A sink for video that accepts a sequence of frames. More...
 
class  cs::MjpegServer
 A sink that acts as a MJPEG-over-HTTP network server. More...
 
class  cs::CvSink
 A sink for user code to accept video frames as OpenCV images. More...
 
class  cs::VideoEvent
 An event generated by the library and provided to event listeners. More...
 
class  cs::VideoListener
 An event listener. More...
 

Enumerations

enum  Kind {
  kNone = CS_PROP_NONE, kBoolean = CS_PROP_BOOLEAN, kInteger = CS_PROP_INTEGER, kString = CS_PROP_STRING,
  kEnum = CS_PROP_ENUM
}
 
enum  Kind { kUnknown = CS_SOURCE_UNKNOWN, kUsb = CS_SOURCE_USB, kHttp = CS_SOURCE_HTTP, kCv = CS_SOURCE_CV }
 
enum  cs::VideoSource::ConnectionStrategy { cs::VideoSource::kConnectionAutoManage = CS_CONNECTION_AUTO_MANAGE, cs::VideoSource::kConnectionKeepOpen = CS_CONNECTION_KEEP_OPEN, cs::VideoSource::kConnectionForceClose = CS_CONNECTION_FORCE_CLOSE }
 Connection strategy. More...
 
enum  WhiteBalance {
  kFixedIndoor = 3000, kFixedOutdoor1 = 4000, kFixedOutdoor2 = 5000, kFixedFluorescent1 = 5100,
  kFixedFlourescent2 = 5200
}
 
enum  HttpCameraKind { kUnknown = CS_HTTP_UNKNOWN, kMJPGStreamer = CS_HTTP_MJPGSTREAMER, kCSCore = CS_HTTP_CSCORE, kAxis = CS_HTTP_AXIS }
 
enum  Kind { kUnknown = CS_SINK_UNKNOWN, kMjpeg = CS_SINK_MJPEG, kCv = CS_SINK_CV }
 

Detailed Description

Recommended interface for C++, identical to Java API.

The classes are RAII and handle reference counting internally.

Enumeration Type Documentation

Connection strategy.

Used for SetConnectionStrategy().

Enumerator
kConnectionAutoManage 

Automatically connect or disconnect based on whether any sinks are connected to this source.

This is the default behavior.

kConnectionKeepOpen 

Try to keep the connection open regardless of whether any sinks are connected.

kConnectionForceClose 

Never open the connection.

If this is set when the connection is open, close the connection.