WPILibC++  unspecified
cs::HttpCameraImpl Class Reference
Inheritance diagram for cs::HttpCameraImpl:
Collaboration diagram for cs::HttpCameraImpl:

Classes

class  PropertyData
 

Public Member Functions

 HttpCameraImpl (wpi::StringRef name, CS_HttpCameraKind kind)
 
void Start ()
 
void SetProperty (int property, int value, CS_Status *status) override
 
void SetStringProperty (int property, wpi::StringRef value, CS_Status *status) override
 
void SetBrightness (int brightness, CS_Status *status) override
 
int GetBrightness (CS_Status *status) const override
 
void SetWhiteBalanceAuto (CS_Status *status) override
 
void SetWhiteBalanceHoldCurrent (CS_Status *status) override
 
void SetWhiteBalanceManual (int value, CS_Status *status) override
 
void SetExposureAuto (CS_Status *status) override
 
void SetExposureHoldCurrent (CS_Status *status) override
 
void SetExposureManual (int value, CS_Status *status) override
 
bool SetVideoMode (const VideoMode &mode, CS_Status *status) override
 
void NumSinksChanged () override
 
void NumSinksEnabledChanged () override
 
CS_HttpCameraKind GetKind () const
 
bool SetUrls (wpi::ArrayRef< std::string > urls, CS_Status *status)
 
std::vector< std::string > GetUrls () const
 
- Public Member Functions inherited from cs::SourceImpl
 SourceImpl (wpi::StringRef name)
 
 SourceImpl (const SourceImpl &oth)=delete
 
SourceImploperator= (const SourceImpl &oth)=delete
 
wpi::StringRef GetName () const
 
void SetDescription (wpi::StringRef description)
 
wpi::StringRef GetDescription (wpi::SmallVectorImpl< char > &buf) const
 
void SetConnected (bool connected)
 
bool IsConnected () const
 
int GetNumSinks () const
 
void AddSink ()
 
void RemoveSink ()
 
int GetNumSinksEnabled () const
 
void EnableSink ()
 
void DisableSink ()
 
uint64_t GetCurFrameTime ()
 
Frame GetCurFrame ()
 
Frame GetNextFrame ()
 
Frame GetNextFrame (double timeout)
 
void Wakeup ()
 
int GetPropertyIndex (wpi::StringRef name) const
 
wpi::ArrayRef< int > EnumerateProperties (wpi::SmallVectorImpl< int > &vec, CS_Status *status) const
 
CS_PropertyKind GetPropertyKind (int property) const
 
wpi::StringRef GetPropertyName (int property, wpi::SmallVectorImpl< char > &buf, CS_Status *status) const
 
int GetProperty (int property, CS_Status *status) const
 
int GetPropertyMin (int property, CS_Status *status) const
 
int GetPropertyMax (int property, CS_Status *status) const
 
int GetPropertyStep (int property, CS_Status *status) const
 
int GetPropertyDefault (int property, CS_Status *status) const
 
wpi::StringRef GetStringProperty (int property, wpi::SmallVectorImpl< char > &buf, CS_Status *status) const
 
std::vector< std::string > GetEnumPropertyChoices (int property, CS_Status *status) const
 
VideoMode GetVideoMode (CS_Status *status) const
 
virtual bool SetPixelFormat (VideoMode::PixelFormat pixelFormat, CS_Status *status)
 
virtual bool SetResolution (int width, int height, CS_Status *status)
 
virtual bool SetFPS (int fps, CS_Status *status)
 
std::vector< VideoModeEnumerateVideoModes (CS_Status *status) const
 
std::unique_ptr< ImageAllocImage (VideoMode::PixelFormat pixelFormat, int width, int height, size_t size)
 

Protected Member Functions

std::unique_ptr< PropertyImplCreateEmptyProperty (wpi::StringRef name) const override
 
bool CacheProperties (CS_Status *status) const override
 
void CreateProperty (wpi::StringRef name, wpi::StringRef httpParam, bool viaSettings, CS_PropertyKind kind, int minimum, int maximum, int step, int defaultValue, int value) const
 
template<typename T >
void CreateEnumProperty (wpi::StringRef name, wpi::StringRef httpParam, bool viaSettings, int defaultValue, int value, std::initializer_list< T > choices) const
 
- Protected Member Functions inherited from cs::SourceImpl
void PutFrame (VideoMode::PixelFormat pixelFormat, int width, int height, wpi::StringRef data, Frame::Time time)
 
void PutFrame (std::unique_ptr< Image > image, Frame::Time time)
 
void PutError (wpi::StringRef msg, Frame::Time time)
 
PropertyImplGetProperty (int property)
 
const PropertyImplGetProperty (int property) const
 
void NotifyPropertyCreated (int propIndex, PropertyImpl &prop)
 
void UpdatePropertyValue (int property, bool setString, int value, wpi::StringRef valueStr)
 

Additional Inherited Members

- Protected Attributes inherited from cs::SourceImpl
std::atomic_int m_numSinks {0}
 
std::atomic_int m_numSinksEnabled {0}
 
std::vector< std::unique_ptr< PropertyImpl > > m_propertyData
 
wpi::StringMap< int > m_properties
 
std::vector< VideoModem_videoModes
 
VideoMode m_mode
 
std::atomic_bool m_properties_cached {false}
 
wpi::mutex m_mutex
 

The documentation for this class was generated from the following files: