mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +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
@@ -47,12 +47,12 @@ void initGModel(ade::Graph& gr,
|
||||
gm.metadata().set(p);
|
||||
}
|
||||
|
||||
bool isConsumedBy(cv::gimpl::GModel::Graph gm, ade::NodeHandle data_nh, ade::NodeHandle op_nh) {
|
||||
bool isConsumedBy(const cv::gimpl::GModel::ConstGraph &gm, ade::NodeHandle data_nh, ade::NodeHandle op_nh) {
|
||||
auto oi = cv::gimpl::GModel::orderedInputs(gm, op_nh);
|
||||
return std::find(oi.begin(), oi.end(), data_nh) != oi.end();
|
||||
}
|
||||
|
||||
std::string opName(cv::gimpl::GModel::Graph gm, ade::NodeHandle op_nh) {
|
||||
std::string opName(const cv::gimpl::GModel::ConstGraph &gm, ade::NodeHandle op_nh) {
|
||||
return gm.metadata(op_nh).get<cv::gimpl::Op>().k.name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user