64 explicit operator bool()
const {
return m_handle != 0; }
221 swap(first.m_status, second.m_status);
222 swap(first.m_handle, second.m_handle);
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or glfw and nanopb were modified for use in Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation source
Definition ThirdPartyNotices.txt:123
@ name
Definition base.h:690
An event generated by the library and provided to event listeners.
Definition VideoEvent.hpp:17
A source or sink property.
Definition VideoProperty.hpp:34
wpi::util::json GetConfigJsonObject() const
Get a JSON configuration object.
VideoSink() noexcept=default
Kind GetKind() const
Get the kind of the sink.
Definition VideoSink.hpp:80
void SetSource(VideoSource source)
Configure which source should provide frames to this sink.
Definition VideoSink.hpp:178
VideoProperty GetProperty(std::string_view name)
Get a property of the sink.
Definition VideoSink.hpp:109
CS_Status GetLastStatus() const
Definition VideoSink.hpp:210
friend void swap(VideoSink &first, VideoSink &second) noexcept
Definition VideoSink.hpp:219
bool SetConfigJson(const wpi::util::json &config)
Set properties from a JSON configuration object.
Definition VideoSink.hpp:149
~VideoSink()
Definition VideoSink.hpp:52
int GetHandle() const
Returns the VideoSink handle.
Definition VideoSink.hpp:71
CS_Sink m_handle
Definition VideoSink.hpp:229
VideoSink(VideoSink &&other) noexcept
Definition VideoSink.hpp:45
CS_Status m_status
Definition VideoSink.hpp:228
VideoProperty GetSourceProperty(std::string_view name)
Get a property of the associated source.
Definition VideoSink.hpp:205
VideoSource GetSource() const
Get the connected source.
Definition VideoSink.hpp:192
Kind
Definition VideoSink.hpp:29
@ kMjpeg
MJPEG video sink.
Definition VideoSink.hpp:33
@ kCv
CV video sink.
Definition VideoSink.hpp:35
@ kUnknown
Unknown sink type.
Definition VideoSink.hpp:31
@ kRaw
Raw video sink.
Definition VideoSink.hpp:37
std::string GetName() const
Get the name of the sink.
Definition VideoSink.hpp:89
VideoSink & operator=(VideoSink other) noexcept
Definition VideoSink.hpp:47
std::string GetDescription() const
Get the sink description.
Definition VideoSink.hpp:97
bool operator==(const VideoSink &other) const
Definition VideoSink.hpp:73
std::vector< VideoProperty > EnumerateProperties() const
Enumerate all properties of this sink.
VideoSink(CS_Sink handle)
Definition VideoSink.hpp:226
friend class VideoEvent
Definition VideoSink.hpp:25
friend class VideoSource
Definition VideoSink.hpp:26
static std::vector< VideoSink > EnumerateSinks()
Enumerate all existing sinks.
bool SetConfigJson(std::string_view config)
Set properties from a JSON configuration string.
Definition VideoSink.hpp:138
std::string GetConfigJson() const
Get a JSON configuration string.
Definition VideoSink.hpp:159
@ CS_SINK_MJPEG
Definition cscore_c.h:130
@ CS_SINK_RAW
Definition cscore_c.h:132
@ CS_SINK_CV
Definition cscore_c.h:131
@ CS_SINK_UNKNOWN
Definition cscore_c.h:129
CS_Property GetSinkSourceProperty(CS_Sink sink, std::string_view name, CS_Status *status)
CS_Property GetSinkProperty(CS_Sink sink, std::string_view name, CS_Status *status)
std::string GetSinkConfigJson(CS_Sink sink, CS_Status *status)
void SetSinkSource(CS_Sink sink, CS_Source source, CS_Status *status)
CS_SinkKind GetSinkKind(CS_Sink sink, CS_Status *status)
std::string GetSinkDescription(CS_Sink sink, CS_Status *status)
bool SetSinkConfigJson(CS_Sink sink, std::string_view config, CS_Status *status)
CS_Sink CopySink(CS_Sink sink, CS_Status *status)
std::string GetSinkName(CS_Sink sink, CS_Status *status)
void ReleaseSink(CS_Sink sink, CS_Status *status)
CS_Source GetSinkSource(CS_Sink sink, CS_Status *status)
CS_Source CopySource(CS_Source source, CS_Status *status)
int CS_Status
Definition cscore_c.h:41
CS_Handle CS_Sink
Definition cscore_c.h:47
void swap(wpi::util::StringMap< T > &lhs, wpi::util::StringMap< T > &rhs)
Definition StringMap.hpp:775
CameraServer (cscore) namespace.
Definition CvSource.hpp:15