WPILibC++ 2024.3.2
cscore_raw.h File Reference
#include <functional>
#include "cscore_c.h"
#include "cscore_oo.h"

Go to the source code of this file.

Classes

class  cs::RawSource
 A source for user code to provide video frames as raw bytes. More...
 
class  cs::RawSink
 A sink for user code to accept video frames as raw bytes. More...
 

Namespaces

namespace  cs
 CameraServer (cscore) namespace.
 

Functions

uint64_t CS_GrabRawSinkFrame (CS_Sink sink, struct WPI_RawFrame *rawImage, CS_Status *status)
 
uint64_t CS_GrabRawSinkFrameTimeout (CS_Sink sink, struct WPI_RawFrame *rawImage, double timeout, CS_Status *status)
 
CS_Sink CS_CreateRawSink (const char *name, CS_Status *status)
 
CS_Sink CS_CreateRawSinkCallback (const char *name, void *data, void(*processFrame)(void *data, uint64_t time), CS_Status *status)
 
void CS_PutRawSourceFrame (CS_Source source, const struct WPI_RawFrame *image, CS_Status *status)
 
CS_Source CS_CreateRawSource (const char *name, const CS_VideoMode *mode, CS_Status *status)
 
CS_Source cs::CreateRawSource (std::string_view name, const VideoMode &mode, CS_Status *status)
 
CS_Sink cs::CreateRawSink (std::string_view name, CS_Status *status)
 
CS_Sink cs::CreateRawSinkCallback (std::string_view name, std::function< void(uint64_t time)> processFrame, CS_Status *status)
 
void cs::PutSourceFrame (CS_Source source, const WPI_RawFrame &image, CS_Status *status)
 
uint64_t cs::GrabSinkFrame (CS_Sink sink, WPI_RawFrame &image, CS_Status *status)
 
uint64_t cs::GrabSinkFrameTimeout (CS_Sink sink, WPI_RawFrame &image, double timeout, CS_Status *status)