mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #16081 from dmatveev:dm/ocv42_gapi_bugfixes
G-API: Fix various issues for 4.2 release * G-API: Fix issues reported by Coverity - Fixed: passing values by value instead of passing by reference * G-API: Fix redundant std::move()'s in return statements Fixes #15903 * G-API: Added a smarter handling of Stop messages in the pipeline - This should fix the "expected 100, got 99 frames" problem - Fixes #15882 * G-API: Pass enum instead of GKernelPackage in Streaming test parameters - Likely fixes #15836 * G-API: Address review issues in new bugfix comments
This commit is contained in:
committed by
Alexander Alekhin
parent
c89780dfe0
commit
9a18330f3a
@@ -118,7 +118,7 @@ void GModel::linkOut(Graph &g, ade::NodeHandle opH, ade::NodeHandle objH, std::s
|
||||
op.outs[out_port] = RcDesc{gm.rc, gm.shape, {}};
|
||||
}
|
||||
|
||||
std::vector<ade::NodeHandle> GModel::orderedInputs(ConstGraph &g, ade::NodeHandle nh)
|
||||
std::vector<ade::NodeHandle> GModel::orderedInputs(const ConstGraph &g, ade::NodeHandle nh)
|
||||
{
|
||||
std::vector<ade::NodeHandle> sorted_in_nhs(nh->inEdges().size());
|
||||
for (const auto& in_eh : nh->inEdges())
|
||||
@@ -130,7 +130,7 @@ std::vector<ade::NodeHandle> GModel::orderedInputs(ConstGraph &g, ade::NodeHandl
|
||||
return sorted_in_nhs;
|
||||
}
|
||||
|
||||
std::vector<ade::NodeHandle> GModel::orderedOutputs(ConstGraph &g, ade::NodeHandle nh)
|
||||
std::vector<ade::NodeHandle> GModel::orderedOutputs(const ConstGraph &g, ade::NodeHandle nh)
|
||||
{
|
||||
std::vector<ade::NodeHandle> sorted_out_nhs(nh->outEdges().size());
|
||||
for (const auto& out_eh : nh->outEdges())
|
||||
@@ -227,7 +227,7 @@ void GModel::redirectWriter(Graph &g, ade::NodeHandle from, ade::NodeHandle to)
|
||||
linkOut(g, op, to, output.port);
|
||||
}
|
||||
|
||||
GMetaArgs GModel::collectInputMeta(GModel::ConstGraph cg, ade::NodeHandle node)
|
||||
GMetaArgs GModel::collectInputMeta(const GModel::ConstGraph &cg, ade::NodeHandle node)
|
||||
{
|
||||
GAPI_Assert(cg.metadata(node).get<NodeType>().t == NodeType::OP);
|
||||
GMetaArgs in_meta_args(cg.metadata(node).get<Op>().args.size());
|
||||
@@ -254,7 +254,7 @@ ade::EdgeHandle GModel::getInEdgeByPort(const GModel::ConstGraph& cg,
|
||||
return *edge;
|
||||
}
|
||||
|
||||
GMetaArgs GModel::collectOutputMeta(GModel::ConstGraph cg, ade::NodeHandle node)
|
||||
GMetaArgs GModel::collectOutputMeta(const GModel::ConstGraph &cg, ade::NodeHandle node)
|
||||
{
|
||||
GAPI_Assert(cg.metadata(node).get<NodeType>().t == NodeType::OP);
|
||||
GMetaArgs out_meta_args(cg.metadata(node).get<Op>().outs.size());
|
||||
|
||||
Reference in New Issue
Block a user