mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
G-API: Introduce GAbstractStreamingExecutor
Now GStreamingExecutor is its subclass; others to come
This commit is contained in:
@@ -19,14 +19,14 @@
|
||||
// GStreamingCompiled private implementation ///////////////////////////////////
|
||||
void cv::GStreamingCompiled::Priv::setup(const GMetaArgs &_metaArgs,
|
||||
const GMetaArgs &_outMetas,
|
||||
std::unique_ptr<cv::gimpl::GStreamingExecutor> &&_pE)
|
||||
std::unique_ptr<cv::gimpl::GAbstractStreamingExecutor> &&_pE)
|
||||
{
|
||||
m_metas = _metaArgs;
|
||||
m_outMetas = _outMetas;
|
||||
m_exec = std::move(_pE);
|
||||
}
|
||||
|
||||
void cv::GStreamingCompiled::Priv::setup(std::unique_ptr<cv::gimpl::GStreamingExecutor> &&_pE)
|
||||
void cv::GStreamingCompiled::Priv::setup(std::unique_ptr<cv::gimpl::GAbstractStreamingExecutor> &&_pE)
|
||||
{
|
||||
m_exec = std::move(_pE);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#define OPENCV_GAPI_GSTREAMING_COMPILED_PRIV_HPP
|
||||
|
||||
#include <memory> // unique_ptr
|
||||
#include "executor/gstreamingexecutor.hpp"
|
||||
#include "executor/gabstractstreamingexecutor.hpp"
|
||||
|
||||
namespace cv {
|
||||
|
||||
@@ -26,7 +26,7 @@ class GAPI_EXPORTS GStreamingCompiled::Priv
|
||||
{
|
||||
GMetaArgs m_metas; // passed by user
|
||||
GMetaArgs m_outMetas; // inferred by compiler
|
||||
std::unique_ptr<cv::gimpl::GStreamingExecutor> m_exec;
|
||||
std::unique_ptr<cv::gimpl::GAbstractStreamingExecutor> m_exec;
|
||||
|
||||
// NB: Used by python wrapper to clarify input/output types
|
||||
GTypesInfo m_out_info;
|
||||
@@ -35,8 +35,8 @@ class GAPI_EXPORTS GStreamingCompiled::Priv
|
||||
public:
|
||||
void setup(const GMetaArgs &metaArgs,
|
||||
const GMetaArgs &outMetas,
|
||||
std::unique_ptr<cv::gimpl::GStreamingExecutor> &&pE);
|
||||
void setup(std::unique_ptr<cv::gimpl::GStreamingExecutor> &&pE);
|
||||
std::unique_ptr<cv::gimpl::GAbstractStreamingExecutor> &&pE);
|
||||
void setup(std::unique_ptr<cv::gimpl::GAbstractStreamingExecutor> &&pE);
|
||||
bool isEmpty() const;
|
||||
|
||||
const GMetaArgs& metas() const;
|
||||
|
||||
Reference in New Issue
Block a user