WPILibC++ 2023.4.3
Source Functions

Functions

CS_SourceKind cs::GetSourceKind (CS_Source source, CS_Status *status)
 
std::string cs::GetSourceName (CS_Source source, CS_Status *status)
 
std::string_view cs::GetSourceName (CS_Source source, wpi::SmallVectorImpl< char > &buf, CS_Status *status)
 
std::string cs::GetSourceDescription (CS_Source source, CS_Status *status)
 
std::string_view cs::GetSourceDescription (CS_Source source, wpi::SmallVectorImpl< char > &buf, CS_Status *status)
 
uint64_t cs::GetSourceLastFrameTime (CS_Source source, CS_Status *status)
 
void cs::SetSourceConnectionStrategy (CS_Source source, CS_ConnectionStrategy strategy, CS_Status *status)
 
bool cs::IsSourceConnected (CS_Source source, CS_Status *status)
 
bool cs::IsSourceEnabled (CS_Source source, CS_Status *status)
 
CS_Property cs::GetSourceProperty (CS_Source source, std::string_view name, CS_Status *status)
 
std::span< CS_Propertycs::EnumerateSourceProperties (CS_Source source, wpi::SmallVectorImpl< CS_Property > &vec, CS_Status *status)
 
VideoMode cs::GetSourceVideoMode (CS_Source source, CS_Status *status)
 
bool cs::SetSourceVideoMode (CS_Source source, const VideoMode &mode, CS_Status *status)
 
bool cs::SetSourcePixelFormat (CS_Source source, VideoMode::PixelFormat pixelFormat, CS_Status *status)
 
bool cs::SetSourceResolution (CS_Source source, int width, int height, CS_Status *status)
 
bool cs::SetSourceFPS (CS_Source source, int fps, CS_Status *status)
 
bool cs::SetSourceConfigJson (CS_Source source, std::string_view config, CS_Status *status)
 
bool cs::SetSourceConfigJson (CS_Source source, const wpi::json &config, CS_Status *status)
 
std::string cs::GetSourceConfigJson (CS_Source source, CS_Status *status)
 
wpi::json cs::GetSourceConfigJsonObject (CS_Source source, CS_Status *status)
 
std::vector< VideoModecs::EnumerateSourceVideoModes (CS_Source source, CS_Status *status)
 
std::span< CS_Sinkcs::EnumerateSourceSinks (CS_Source source, wpi::SmallVectorImpl< CS_Sink > &vec, CS_Status *status)
 
CS_Source cs::CopySource (CS_Source source, CS_Status *status)
 
void cs::ReleaseSource (CS_Source source, CS_Status *status)
 

Detailed Description

Function Documentation

◆ CopySource()

CS_Source cs::CopySource ( CS_Source  source,
CS_Status status 
)

◆ EnumerateSourceProperties()

std::span< CS_Property > cs::EnumerateSourceProperties ( CS_Source  source,
wpi::SmallVectorImpl< CS_Property > &  vec,
CS_Status status 
)

◆ EnumerateSourceSinks()

std::span< CS_Sink > cs::EnumerateSourceSinks ( CS_Source  source,
wpi::SmallVectorImpl< CS_Sink > &  vec,
CS_Status status 
)

◆ EnumerateSourceVideoModes()

std::vector< VideoMode > cs::EnumerateSourceVideoModes ( CS_Source  source,
CS_Status status 
)

◆ GetSourceConfigJson()

std::string cs::GetSourceConfigJson ( CS_Source  source,
CS_Status status 
)

◆ GetSourceConfigJsonObject()

wpi::json cs::GetSourceConfigJsonObject ( CS_Source  source,
CS_Status status 
)

◆ GetSourceDescription() [1/2]

std::string cs::GetSourceDescription ( CS_Source  source,
CS_Status status 
)

◆ GetSourceDescription() [2/2]

std::string_view cs::GetSourceDescription ( CS_Source  source,
wpi::SmallVectorImpl< char > &  buf,
CS_Status status 
)

◆ GetSourceKind()

CS_SourceKind cs::GetSourceKind ( CS_Source  source,
CS_Status status 
)

◆ GetSourceLastFrameTime()

uint64_t cs::GetSourceLastFrameTime ( CS_Source  source,
CS_Status status 
)

◆ GetSourceName() [1/2]

std::string cs::GetSourceName ( CS_Source  source,
CS_Status status 
)

◆ GetSourceName() [2/2]

std::string_view cs::GetSourceName ( CS_Source  source,
wpi::SmallVectorImpl< char > &  buf,
CS_Status status 
)

◆ GetSourceProperty()

CS_Property cs::GetSourceProperty ( CS_Source  source,
std::string_view  name,
CS_Status status 
)

◆ GetSourceVideoMode()

VideoMode cs::GetSourceVideoMode ( CS_Source  source,
CS_Status status 
)

◆ IsSourceConnected()

bool cs::IsSourceConnected ( CS_Source  source,
CS_Status status 
)

◆ IsSourceEnabled()

bool cs::IsSourceEnabled ( CS_Source  source,
CS_Status status 
)

◆ ReleaseSource()

void cs::ReleaseSource ( CS_Source  source,
CS_Status status 
)

◆ SetSourceConfigJson() [1/2]

bool cs::SetSourceConfigJson ( CS_Source  source,
const wpi::json config,
CS_Status status 
)

◆ SetSourceConfigJson() [2/2]

bool cs::SetSourceConfigJson ( CS_Source  source,
std::string_view  config,
CS_Status status 
)

◆ SetSourceConnectionStrategy()

void cs::SetSourceConnectionStrategy ( CS_Source  source,
CS_ConnectionStrategy  strategy,
CS_Status status 
)

◆ SetSourceFPS()

bool cs::SetSourceFPS ( CS_Source  source,
int  fps,
CS_Status status 
)

◆ SetSourcePixelFormat()

bool cs::SetSourcePixelFormat ( CS_Source  source,
VideoMode::PixelFormat  pixelFormat,
CS_Status status 
)

◆ SetSourceResolution()

bool cs::SetSourceResolution ( CS_Source  source,
int  width,
int  height,
CS_Status status 
)

◆ SetSourceVideoMode()

bool cs::SetSourceVideoMode ( CS_Source  source,
const VideoMode mode,
CS_Status status 
)