A sink for video that accepts a sequence of frames.
More...
#include <wpi/cs/VideoSink.hpp>
A sink for video that accepts a sequence of frames.
◆ Kind
| Enumerator |
|---|
| kUnknown | Unknown sink type.
|
| kMjpeg | MJPEG video sink.
|
| kCv | CV video sink.
|
| kRaw | Raw video sink.
|
◆ VideoSink() [1/4]
| wpi::cs::VideoSink::VideoSink |
( |
| ) |
|
|
defaultnoexcept |
◆ VideoSink() [2/4]
| wpi::cs::VideoSink::VideoSink |
( |
const VideoSink & | sink | ) |
|
|
inline |
◆ VideoSink() [3/4]
| wpi::cs::VideoSink::VideoSink |
( |
VideoSink && | other | ) |
|
|
inlinenoexcept |
◆ ~VideoSink()
| wpi::cs::VideoSink::~VideoSink |
( |
| ) |
|
|
inline |
◆ VideoSink() [4/4]
| wpi::cs::VideoSink::VideoSink |
( |
CS_Sink | handle | ) |
|
|
inlineexplicitprotected |
◆ EnumerateProperties()
| std::vector< VideoProperty > wpi::cs::VideoSink::EnumerateProperties |
( |
| ) |
const |
Enumerate all properties of this sink.
◆ EnumerateSinks()
| std::vector< VideoSink > wpi::cs::VideoSink::EnumerateSinks |
( |
| ) |
|
|
static |
Enumerate all existing sinks.
- Returns
- Vector of sinks.
◆ GetConfigJson()
| std::string wpi::cs::VideoSink::GetConfigJson |
( |
| ) |
const |
|
inline |
Get a JSON configuration string.
- Returns
- JSON configuration string
◆ GetConfigJsonObject()
| wpi::util::json wpi::cs::VideoSink::GetConfigJsonObject |
( |
| ) |
const |
Get a JSON configuration object.
- Returns
- JSON configuration object
◆ GetDescription()
| std::string wpi::cs::VideoSink::GetDescription |
( |
| ) |
const |
|
inline |
Get the sink description.
This is sink-kind specific.
◆ GetHandle()
| int wpi::cs::VideoSink::GetHandle |
( |
| ) |
const |
|
inline |
◆ GetKind()
| Kind wpi::cs::VideoSink::GetKind |
( |
| ) |
const |
|
inline |
Get the kind of the sink.
◆ GetLastStatus()
| CS_Status wpi::cs::VideoSink::GetLastStatus |
( |
| ) |
const |
|
inline |
◆ GetName()
| std::string wpi::cs::VideoSink::GetName |
( |
| ) |
const |
|
inline |
Get the name of the sink.
The name is an arbitrary identifier provided when the sink is created, and should be unique.
◆ GetProperty()
| VideoProperty wpi::cs::VideoSink::GetProperty |
( |
std::string_view | name | ) |
|
|
inline |
Get a property of the sink.
- Parameters
-
- Returns
- Property (kind Property::kNone if no property with the given name exists)
◆ GetSource()
Get the connected source.
- Returns
- Connected source (empty if none connected).
◆ GetSourceProperty()
| VideoProperty wpi::cs::VideoSink::GetSourceProperty |
( |
std::string_view | name | ) |
|
|
inline |
Get a property of the associated source.
- Parameters
-
- Returns
- Property (kind Property::kNone if no property with the given name exists or no source connected)
◆ operator bool()
| wpi::cs::VideoSink::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=()
◆ operator==()
| bool wpi::cs::VideoSink::operator== |
( |
const VideoSink & | other | ) |
const |
|
inline |
◆ SetConfigJson() [1/2]
| bool wpi::cs::VideoSink::SetConfigJson |
( |
const wpi::util::json & | config | ) |
|
|
inline |
Set properties from a JSON configuration object.
- Parameters
-
- Returns
- True if set successfully
◆ SetConfigJson() [2/2]
| bool wpi::cs::VideoSink::SetConfigJson |
( |
std::string_view | config | ) |
|
|
inline |
Set properties from a JSON configuration string.
The format of the JSON input is:
{
"properties": [
{
"name": property name
"value": property value
}
]
}
- Parameters
-
- Returns
- True if set successfully
◆ SetSource()
| void wpi::cs::VideoSink::SetSource |
( |
VideoSource | source | ) |
|
|
inline |
Configure which source should provide frames to this sink.
Each sink can accept frames from only a single source, but a single source can provide frames to multiple clients.
- Parameters
-
◆ swap
◆ VideoEvent
◆ VideoSource
◆ m_handle
| CS_Sink wpi::cs::VideoSink::m_handle {0} |
|
protected |
◆ m_status
The documentation for this class was generated from the following file: