78 explicit operator bool()
const {
return m_kind !=
kNone; }
230 m_kind =
static_cast<Kind>(
236 : m_handle(handle), m_kind(kind) {}
A base class for single image providing sources.
Definition ImageSource.hpp:22
An event generated by the library and provided to event listeners.
Definition VideoEvent.hpp:17
A sink for video that accepts a sequence of frames.
Definition VideoSink.hpp:24
A source for video that provides a sequence of frames.
Definition VideoSource.hpp:25
Definition BooleanTopic.hpp:24
@ CS_PROP_ENUM
Definition cscore_c.h:102
@ CS_PROP_NONE
Definition cscore_c.h:98
@ CS_PROP_INTEGER
Definition cscore_c.h:100
@ CS_PROP_BOOLEAN
Definition cscore_c.h:99
@ CS_PROP_STRING
Definition cscore_c.h:101
std::vector< std::string > GetChoices() const
Returns the possible values for the enum property value.
Definition VideoProperty.hpp:212
void Set(int value)
Sets property value.
Definition VideoProperty.hpp:123
Kind
Definition VideoProperty.hpp:41
std::string GetString() const
Returns the string property value.
Definition VideoProperty.hpp:175
int GetDefault() const
Returns property default value.
Definition VideoProperty.hpp:163
int GetStep() const
Returns property step size.
Definition VideoProperty.hpp:153
int GetMax() const
Returns property maximum value.
Definition VideoProperty.hpp:143
bool IsString() const
Returns true if property is a string.
Definition VideoProperty.hpp:99
bool IsBoolean() const
Returns true if property is a boolean.
Definition VideoProperty.hpp:85
std::string GetName() const
Returns property name.
Definition VideoProperty.hpp:61
int GetMin() const
Returns property minimum value.
Definition VideoProperty.hpp:133
friend class VideoSink
Definition VideoProperty.hpp:37
bool IsInteger() const
Returns true if property is an integer.
Definition VideoProperty.hpp:92
std::string_view GetString(wpi::util::SmallVectorImpl< char > &buf) const
Returns the string property value as a reference to the given buffer.
Definition VideoProperty.hpp:188
CS_Status GetLastStatus() const
Returns the last status.
Definition VideoProperty.hpp:222
void SetString(std::string_view value)
Sets the string property value.
Definition VideoProperty.hpp:200
friend class VideoEvent
Definition VideoProperty.hpp:36
friend class VideoSource
Definition VideoProperty.hpp:38
int Get() const
Returns property value.
Definition VideoProperty.hpp:113
Kind GetKind() const
Returns property kind.
Definition VideoProperty.hpp:71
friend class ImageSource
Definition VideoProperty.hpp:35
bool IsEnum() const
Returns true if property is an enum.
Definition VideoProperty.hpp:106
@ kBoolean
Boolean property.
Definition VideoProperty.hpp:45
@ kString
String property.
Definition VideoProperty.hpp:49
@ kInteger
Integer property.
Definition VideoProperty.hpp:47
@ kNone
No specific property.
Definition VideoProperty.hpp:43
@ kEnum
Enum property.
Definition VideoProperty.hpp:51
int GetPropertyMin(CS_Property property, CS_Status *status)
std::string GetPropertyName(CS_Property property, CS_Status *status)
int GetPropertyDefault(CS_Property property, CS_Status *status)
int GetPropertyMax(CS_Property property, CS_Status *status)
void SetStringProperty(CS_Property property, std::string_view value, CS_Status *status)
CS_PropertyKind GetPropertyKind(CS_Property property, CS_Status *status)
std::string GetStringProperty(CS_Property property, CS_Status *status)
void SetProperty(CS_Property property, int value, CS_Status *status)
int GetPropertyStep(CS_Property property, CS_Status *status)
std::vector< std::string > GetEnumPropertyChoices(CS_Property property, CS_Status *status)
int GetProperty(CS_Property property, CS_Status *status)
int CS_Status
Definition cscore_c.h:41
CS_Handle CS_Property
Definition cscore_c.h:44
CameraServer (cscore) namespace.
Definition CvSource.hpp:15