|
CS_Source | cs::CreateRawSource (std::string_view name, bool isCv, const VideoMode &mode, CS_Status *status) |
|
CS_Sink | cs::CreateRawSink (std::string_view name, bool isCv, CS_Status *status) |
|
CS_Sink | cs::CreateRawSinkCallback (std::string_view name, bool isCv, 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) |
|
uint64_t | cs::GrabSinkFrameTimeoutLastTime (CS_Sink sink, WPI_RawFrame &image, double timeout, uint64_t lastFrameTime, CS_Status *status) |
|
| cs::RawSource::RawSource (std::string_view name, const VideoMode &mode) |
| Create a raw frame source.
|
|
| cs::RawSource::RawSource (std::string_view name, VideoMode::PixelFormat pixelFormat, int width, int height, int fps) |
| Create a raw frame source.
|
|
void | cs::RawSource::PutFrame (wpi::RawFrame &image) |
| Put a raw image and notify sinks.
|
|
| cs::RawSink::RawSink (std::string_view name) |
| Create a sink for accepting raw images.
|
|
| cs::RawSink::RawSink (std::string_view name, std::function< void(uint64_t time)> processFrame) |
| Create a sink for accepting raws images in a separate thread.
|
|
uint64_t | cs::RawSink::GrabFrame (wpi::RawFrame &image, double timeout=0.225) const |
| Wait for the next frame and get the image.
|
|
uint64_t | cs::RawSink::GrabFrameNoTimeout (wpi::RawFrame &image) const |
| Wait for the next frame and get the image.
|
|
uint64_t | cs::RawSink::GrabFrameLastTime (wpi::RawFrame &image, uint64_t lastFrameTime, double timeout=0.225) const |
| Wait for the next frame and get the image.
|
|
uint64_t cs::RawSink::GrabFrameLastTime |
( |
wpi::RawFrame & | image, |
|
|
uint64_t | lastFrameTime, |
|
|
double | timeout = 0.225 ) const |
|
inlinenodiscardprotected |
Wait for the next frame and get the image.
May block forever. The provided image will have three 8-bit channels stored in BGR order.
If lastFrameTime is provided and non-zero, the sink will fill image with the first frame from the source that is not equal to lastFrameTime. If lastFrameTime is zero, the time of the current frame owned by the CvSource is used, and this function will block until the connected CvSource provides a new frame.
- Returns
- Frame time, or 0 on error (call GetError() to obtain the error message); the frame time is in the same time base as wpi::Now(), and is in 1 us increments.