#include <opencv2/v4d/detail/sinkcontext.hpp>
Provides a context for writing to a Sink
◆ SinkContext()
Create the CLVAContext
- Parameters
-
fbContext | The corresponding framebuffer context |
◆ ~SinkContext()
virtual cv::v4d::detail::SinkContext::~SinkContext |
( |
| ) |
|
|
inlinevirtual |
◆ copyContext()
void cv::v4d::detail::SinkContext::copyContext |
( |
| ) |
|
◆ execute()
virtual void cv::v4d::detail::SinkContext::execute |
( |
std::function< void()> |
fn | ) |
|
|
overridevirtual |
Called to capture from a function object. The functor fn is passed a UMat which it writes to which in turn is captured to the framebuffer.
- Parameters
-
fn | The functor that provides the data. |
- Returns
- true if successful-
Implements cv::v4d::detail::V4DContext.
◆ getCLExecContext()
◆ hasContext()
bool cv::v4d::detail::SinkContext::hasContext |
( |
| ) |
|
Called to pass the frambuffer to a functor which consumes it (e.g. writes to a video file).
- Parameters
-
fn | The functor that consumes the data, |
◆ sinkBuffer()
cv::UMat & cv::v4d::detail::SinkContext::sinkBuffer |
( |
| ) |
|
◆ cv::v4d::V4D
The documentation for this class was generated from the following file: