The following issues were found
modules/gapi/test/gapi_compile_args_tests.cpp
1 issues
Line: 39
static GMatDesc outMeta(GMatDesc in) { return in; }
};
GAPI_OCV_KERNEL(GOCVTestOp, GTestOp)
{
static void run(const cv::Mat &/* in */, cv::Mat &/* out */) { }
};
} // anonymous namespace
Reported by Cppcheck.
modules/gapi/test/gapi_desc_tests.cpp
1 issues
Line: 20
G_TYPED_KERNEL(KTest, <cv::GScalar(cv::GScalar)>, "org.opencv.test.scalar_kernel") {
static cv::GScalarDesc outMeta(cv::GScalarDesc in) { return in; }
};
GAPI_OCV_KERNEL(GOCVScalarTest, KTest)
{
static void run(const cv::Scalar &in, cv::Scalar &out) { out = in+cv::Scalar(1); }
};
}
Reported by Cppcheck.
modules/gapi/test/gapi_frame_tests.cpp
1 issues
Line: 22
}
};
GAPI_OCV_KERNEL(OCVBlurFrame, GBlurFrame) {
static void run(const cv::MediaFrame &in, cv::Mat& out) {
GAPI_Assert(in.desc().fmt == cv::MediaFormat::BGR);
cv::MediaFrame::View view = in.access(cv::MediaFrame::Access::R);
cv::blur(cv::Mat(in.desc().size, CV_8UC3, view.ptr[0], view.stride[0]),
out,
Reported by Cppcheck.
modules/gapi/test/gapi_gcompiled_tests.cpp
1 issues
Line: 67
};
} // anonymous namespace
TEST_F(GCompiledValidateMetaTyped, ValidMeta)
{
cv::Mat in = cv::Mat::eye(cv::Size(128, 32), CV_8UC1);
cv::Scalar sc(127);
auto f = m_cc.compile(cv::descr_of(in),
Reported by Cppcheck.
modules/gapi/test/gapi_gcomputation_tests.cpp
1 issues
Line: 37
}
};
GAPI_OCV_KERNEL(CustomResizeImpl, CustomResize)
{
static void run(const cv::Mat& in, cv::Size sz, double fx, double fy, int interp, cv::Mat &out)
{
cv::resize(in, out, sz, fx, fy, interp);
}
Reported by Cppcheck.
modules/gapi/test/gapi_gpu_test.cpp
1 issues
Line: 83
};
GAPI_GPU_KERNEL(GGPUSymm7x7_test, TSymm7x7_test)
{
static void run(const cv::UMat& in, const cv::Mat& kernel_coeff, int shift, cv::UMat &out)
{
if (cv::ocl::isOpenCLActivated())
{
Reported by Cppcheck.
modules/gapi/test/gapi_graph_meta_tests.cpp
1 issues
Line: 33
}
} // anonymous namespace
TEST(GraphMeta, Trad_AccessInput) {
cv::GMat in;
cv::GMat out1 = cv::gapi::blur(in, cv::Size(3,3));
cv::GOpaque<int> out2 = cv::gapi::streaming::meta<int>(in, "foo");
cv::GComputation graph(cv::GIn(in), cv::GOut(out1, out2));
Reported by Cppcheck.
modules/gapi/test/gapi_opaque_tests.cpp
1 issues
Line: 23
static GOpaqueDesc outMeta(const GMatDesc&) { return empty_gopaque_desc(); }
};
G_TYPED_KERNEL(FillMat, <GMat(cv::GOpaque<int>, int, int, cv::Size)>, "test.opaque.fill_mat")
{
static GMatDesc outMeta(const GOpaqueDesc&, int depth, int chan, cv::Size size)
{
return cv::GMatDesc{depth, chan, size};
}
Reported by Cppcheck.
modules/gapi/test/gapi_plaidml_pipelines.cpp
1 issues
Line: 42
std::move(trg_id)};
}
TEST(GAPI_PlaidML_Pipelines, SimpleArithmetic)
{
cv::Size size(1920, 1080);
int type = CV_8UC1;
cv::Mat in_mat1(size, type);
Reported by Cppcheck.
modules/gapi/test/gapi_planar_test.cpp
1 issues
Line: 23
}
};
G_TYPED_KERNEL(GResize3p3p, <GMatP(GMatP,Size,int)>, "test.resize3p3p") {
static GMatDesc outMeta(GMatDesc in, Size sz, int) {
GAPI_Assert(in.depth == CV_8U);
GAPI_Assert(in.chan == 3);
GAPI_Assert(in.planar);
return in.withSize(sz);
Reported by Cppcheck.