Loading...
Searching...
No Matches
cv::v4d::detail::SinkContext Class Reference

#include <opencv2/v4d/detail/sinkcontext.hpp>

Inheritance diagram for cv::v4d::detail::SinkContext:
cv::v4d::detail::V4DContext

Public Member Functions

 SinkContext (cv::Ptr< FrameBufferContext > fbContext)
 
virtual ~SinkContext ()
 
void copyContext ()
 
virtual void execute (std::function< void()> fn) override
 
CLExecContext_t getCLExecContext ()
 
bool hasContext ()
 
cv::UMatsinkBuffer ()
 
- Public Member Functions inherited from cv::v4d::detail::V4DContext
virtual ~V4DContext ()
 
virtual void execute (std::function< void()> fn)=0
 

Friends

class cv::v4d::V4D
 

Detailed Description

Provides a context for writing to a Sink

Constructor & Destructor Documentation

◆ SinkContext()

cv::v4d::detail::SinkContext::SinkContext ( cv::Ptr< FrameBufferContext fbContext)

Create the CLVAContext

Parameters
fbContextThe corresponding framebuffer context

◆ ~SinkContext()

virtual cv::v4d::detail::SinkContext::~SinkContext ( )
inlinevirtual

Member Function Documentation

◆ 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
fnThe functor that provides the data.
Returns
true if successful-

Implements cv::v4d::detail::V4DContext.

◆ getCLExecContext()

CLExecContext_t cv::v4d::detail::SinkContext::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
fnThe functor that consumes the data,

◆ sinkBuffer()

cv::UMat & cv::v4d::detail::SinkContext::sinkBuffer ( )

Friends And Related Function Documentation

◆ cv::v4d::V4D

friend class cv::v4d::V4D
friend

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