support for the new source/sink implementations

pull/3471/head
kallaballa 2 years ago
parent 5c4f7f6114
commit 5c1260be6e
  1. 9
      modules/v4d/include/opencv2/v4d/v4d.hpp

@ -87,8 +87,8 @@ class CV_EXPORTS V4D {
std::mutex glCtxMtx_; std::mutex glCtxMtx_;
std::map<int32_t,GLContext*> glContexts_; std::map<int32_t,GLContext*> glContexts_;
bool closed_ = false; bool closed_ = false;
Source source_; cv::Ptr<Source> source_;
Sink sink_; cv::Ptr<Sink> sink_;
concurrent::threadpool pool_; concurrent::threadpool pool_;
cv::UMat currentReaderFrame_; cv::UMat currentReaderFrame_;
cv::UMat nextReaderFrame_; cv::UMat nextReaderFrame_;
@ -102,6 +102,7 @@ class CV_EXPORTS V4D {
bool showFPS_ = true; bool showFPS_ = true;
bool printFPS_ = true; bool printFPS_ = true;
bool showTracking_ = true; bool showTracking_ = true;
uint64_t currentSeqNr_ = 0;
public: public:
/*! /*!
* Creates a V4D object which is the central object to perform visualizations with. * Creates a V4D object which is the central object to perform visualizations with.
@ -208,7 +209,7 @@ public:
* Set the current #cv::viz::Source object. Usually created using #makeCaptureSource(). * Set the current #cv::viz::Source object. Usually created using #makeCaptureSource().
* @param src A #cv::viz::Source object. * @param src A #cv::viz::Source object.
*/ */
CV_EXPORTS void setSource(const Source& src); CV_EXPORTS void setSource(Source& src);
/*! /*!
* Checks if the current #cv::viz::Source is ready. * Checks if the current #cv::viz::Source is ready.
* @return true if it is ready. * @return true if it is ready.
@ -218,7 +219,7 @@ public:
* Set the current #cv::viz::Sink object. Usually created using #makeWriterSink(). * Set the current #cv::viz::Sink object. Usually created using #makeWriterSink().
* @param sink A #cv::viz::Sink object. * @param sink A #cv::viz::Sink object.
*/ */
CV_EXPORTS void setSink(const Sink& sink); CV_EXPORTS void setSink(Sink& sink);
/*! /*!
* Checks if the current #cv::viz::Sink is ready. * Checks if the current #cv::viz::Sink is ready.
* @return true if it is ready. * @return true if it is ready.

Loading…
Cancel
Save