Recommended interface for C++, identical to Java API.
More...
Recommended interface for C++, identical to Java API.
The classes are RAII and handle reference counting internally.
◆ Kind
| Enumerator |
|---|
| kNone | No specific property.
|
| kBoolean | Boolean property.
|
| kInteger | Integer property.
|
| kString | String property.
|
| kEnum | Enum property.
|
◆ Get()
| int wpi::cs::VideoProperty::Get |
( |
| ) |
const |
|
inline |
Returns property value.
- Returns
- Property value.
◆ GetChoices()
| std::vector< std::string > wpi::cs::VideoProperty::GetChoices |
( |
| ) |
const |
|
inline |
Returns the possible values for the enum property value.
This function is enum-specific.
- Returns
- The possible values for the enum property value.
◆ GetDefault()
| int wpi::cs::VideoProperty::GetDefault |
( |
| ) |
const |
|
inline |
Returns property default value.
- Returns
- Property default value.
◆ GetKind()
| Kind wpi::cs::VideoProperty::GetKind |
( |
| ) |
const |
|
inline |
Returns property kind.
- Returns
- Property kind.
◆ GetLastStatus()
| CS_Status wpi::cs::VideoProperty::GetLastStatus |
( |
| ) |
const |
|
inline |
Returns the last status.
- Returns
- The last status.
◆ GetMax()
| int wpi::cs::VideoProperty::GetMax |
( |
| ) |
const |
|
inline |
Returns property maximum value.
- Returns
- Property maximum value.
◆ GetMin()
| int wpi::cs::VideoProperty::GetMin |
( |
| ) |
const |
|
inline |
Returns property minimum value.
- Returns
- Property minimum value.
◆ GetName()
| std::string wpi::cs::VideoProperty::GetName |
( |
| ) |
const |
|
inline |
Returns property name.
- Returns
- Property name.
◆ GetStep()
| int wpi::cs::VideoProperty::GetStep |
( |
| ) |
const |
|
inline |
Returns property step size.
- Returns
- Property step size.
◆ GetString() [1/2]
| std::string wpi::cs::VideoProperty::GetString |
( |
| ) |
const |
|
inline |
Returns the string property value.
This function is string-specific.
- Returns
- The string property value.
◆ GetString() [2/2]
Returns the string property value as a reference to the given buffer.
This function is string-specific.
- Parameters
-
| buf | The backing storage to which to write the property value. |
- Returns
- The string property value as a reference to the given buffer.
◆ IsBoolean()
| bool wpi::cs::VideoProperty::IsBoolean |
( |
| ) |
const |
|
inline |
Returns true if property is a boolean.
- Returns
- True if property is a boolean.
◆ IsEnum()
| bool wpi::cs::VideoProperty::IsEnum |
( |
| ) |
const |
|
inline |
Returns true if property is an enum.
- Returns
- True if property is an enum.
◆ IsInteger()
| bool wpi::cs::VideoProperty::IsInteger |
( |
| ) |
const |
|
inline |
Returns true if property is an integer.
- Returns
- True if property is an integer.
◆ IsString()
| bool wpi::cs::VideoProperty::IsString |
( |
| ) |
const |
|
inline |
Returns true if property is a string.
- Returns
- True if property is a string.
◆ operator bool()
| wpi::cs::VideoProperty::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Returns true if property is valid.
- Returns
- True if property is valid.
◆ Set()
| void wpi::cs::VideoProperty::Set |
( |
int | value | ) |
|
|
inline |
Sets property value.
- Parameters
-
◆ SetString()
| void wpi::cs::VideoProperty::SetString |
( |
std::string_view | value | ) |
|
|
inline |
Sets the string property value.
This function is string-specific.
- Parameters
-
| value | String property value. |
◆ VideoProperty()
| wpi::cs::VideoProperty::VideoProperty |
( |
| ) |
|
|
default |
◆ ImageSource
◆ VideoEvent
◆ VideoSink
◆ VideoSource