WPILibC++
unspecified
|
A sink that acts as a MJPEG-over-HTTP network server. More...
#include <cscore_oo.h>
Public Member Functions | |
MjpegServer (wpi::StringRef name, wpi::StringRef listenAddress, int port) | |
Create a MJPEG-over-HTTP server sink. More... | |
MjpegServer (wpi::StringRef name, int port) | |
Create a MJPEG-over-HTTP server sink. More... | |
std::string | GetListenAddress () const |
Get the listen address of the server. | |
int | GetPort () const |
Get the port number of the server. | |
![]() | |
VideoSink (const VideoSink &sink) | |
VideoSink (VideoSink &&sink) noexcept | |
VideoSink & | operator= (VideoSink other) noexcept |
operator bool () const | |
int | GetHandle () const |
bool | operator== (const VideoSink &other) const |
bool | operator!= (const VideoSink &other) const |
Kind | GetKind () const |
Get the kind of the sink. | |
std::string | GetName () const |
Get the name of the sink. More... | |
std::string | GetDescription () const |
Get the sink description. This is sink-kind specific. | |
void | SetSource (VideoSource source) |
Configure which source should provide frames to this sink. More... | |
VideoSource | GetSource () const |
Get the connected source. More... | |
VideoProperty | GetSourceProperty (wpi::StringRef name) |
Get a property of the associated source. More... | |
CS_Status | GetLastStatus () const |
Additional Inherited Members | |
![]() | |
enum | Kind { kUnknown = CS_SINK_UNKNOWN, kMjpeg = CS_SINK_MJPEG, kCv = CS_SINK_CV } |
![]() | |
static std::vector< VideoSink > | EnumerateSinks () |
Enumerate all existing sinks. More... | |
![]() | |
VideoSink (CS_Sink handle) | |
![]() | |
CS_Status | m_status = 0 |
CS_Sink | m_handle |
A sink that acts as a MJPEG-over-HTTP network server.
|
inline |
Create a MJPEG-over-HTTP server sink.
name | Sink name (arbitrary unique identifier) |
listenAddress | TCP listen address (empty string for all addresses) |
port | TCP port number |
|
inline |
Create a MJPEG-over-HTTP server sink.
name | Sink name (arbitrary unique identifier) |
port | TCP port number |