mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge pull request #13851 from TolyaTalamanov:at/new-kernel-package-design
G-API: Kernel package design (#13851) * Remove cv::unite_policy from API * Add check that all id in kernel package are unique * Refactor checker id procedure * Remove cv::gapi::GLookupOrder from API * Implement cv::gapi::use_only * Fix samples * Fix docs * Fix comments to review * Remove unite_policy * Fix GKernelPackage::backends() * Fix comments to review * Fix all_unique * Fix comments to review * Fix comments to review * Remove out of date tests
This commit is contained in:
committed by
Alexander Alekhin
parent
de977cc9c8
commit
935c02c0a3
@@ -381,7 +381,7 @@ static auto fluidResizeTestPackage = [](int interpolation, cv::Size szIn, cv::Si
|
||||
}break;
|
||||
default: CV_Assert(false);
|
||||
}
|
||||
return combine(pkg, fluidTestPackage, unite_policy::KEEP);
|
||||
return combine(pkg, fluidTestPackage);
|
||||
|
||||
#undef RESIZE_SWITCH
|
||||
#undef RESIZE_CASE
|
||||
@@ -743,7 +743,7 @@ TEST_P(NV12PlusResizeTest, Test)
|
||||
auto out = cv::gapi::resize(rgb, out_sz, 0, 0, interp);
|
||||
cv::GComputation c(cv::GIn(y, uv), cv::GOut(out));
|
||||
|
||||
auto pkg = cv::gapi::combine(fluidTestPackage, cv::gapi::core::fluid::kernels(), cv::unite_policy::KEEP);
|
||||
auto pkg = cv::gapi::combine(fluidTestPackage, cv::gapi::core::fluid::kernels());
|
||||
|
||||
c.apply(cv::gin(y_mat, uv_mat), cv::gout(out_mat)
|
||||
,cv::compile_args(pkg, cv::GFluidOutputRois{{to_own(roi)}}));
|
||||
@@ -822,8 +822,7 @@ TEST_P(Preproc4lpiTest, Test)
|
||||
cv::GComputation c(cv::GIn(y, uv), cv::GOut(out));
|
||||
|
||||
auto pkg = cv::gapi::combine(cv::gapi::core::fluid::kernels(),
|
||||
fluidResizeTestPackage(interp, in_sz, out_sz, 4),
|
||||
cv::unite_policy::REPLACE);
|
||||
fluidResizeTestPackage(interp, in_sz, out_sz, 4));
|
||||
|
||||
c.apply(cv::gin(y_mat, uv_mat), cv::gout(out_mat)
|
||||
,cv::compile_args(pkg, cv::GFluidOutputRois{{to_own(roi)}}));
|
||||
|
||||
Reference in New Issue
Block a user