1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #18332 from TolyaTalamanov:at/wrap-GIn-GOut

[G-API] Wrap GIn & GOut

* Wrap GIn & GOut into python

* Remove extra brackets

* Use reinterpret_cast
This commit is contained in:
Anatoliy Talamanov
2020-09-17 22:00:03 +03:00
committed by GitHub
parent ea4b491a73
commit a07f064e50
6 changed files with 48 additions and 4 deletions
@@ -161,8 +161,8 @@ public:
*
* @sa @ref gapi_data_objects
*/
GComputation(GProtoInputArgs &&ins,
GProtoOutputArgs &&outs); // Arg-to-arg overload
GAPI_WRAP GComputation(GProtoInputArgs &&ins,
GProtoOutputArgs &&outs); // Arg-to-arg overload
// 2. Syntax sugar and compatibility overloads
/**
@@ -57,6 +57,8 @@ template<class Tag>
struct GIOProtoArgs
{
public:
// NB: Used by python wrapper
GIOProtoArgs() = default;
explicit GIOProtoArgs(const GProtoArgs& args) : m_args(args) {}
explicit GIOProtoArgs(GProtoArgs &&args) : m_args(std::move(args)) {}