The following issues were found

modules/gapi/perf/common/gapi_render_perf_tests_inl.hpp
1 issues
syntax error
Error

Line: 23

              
} // namespace

PERF_TEST_P_(RenderTestFTexts, RenderFTextsPerformanceBGROCVTest)
{
    std::wstring text;
    cv::Size sz;
    cv::Point org;
    int fh = 0;

            

Reported by Cppcheck.

modules/gapi/perf/cpu/gapi_video_perf_tests_cpu.cpp
1 issues
syntax error
Error

Line: 30

              
namespace opencv_test
{
INSTANTIATE_TEST_CASE_MACRO_P(WITH_VIDEO(BuildOptFlowPyramidPerfTestCPU),
                              BuildOptFlowPyramidPerfTest,
                              Combine(Values("cv/optflow/rock_1.bmp",
                                             "cv/optflow/frames/1080p_01.png"),
                                      Values(7, 11),
                                      Values(1000),

            

Reported by Cppcheck.

modules/gapi/perf/internal/gapi_compiler_perf_tests.cpp
1 issues
syntax error
Error

Line: 16

              using namespace perf;

class CompilerPerfTest : public TestPerfParams<tuple<cv::Size, MatType>> {};
PERF_TEST_P_(CompilerPerfTest, TestPerformance)
{
  const auto params = GetParam();
  Size sz = get<0>(params);
  MatType type = get<1>(params);


            

Reported by Cppcheck.

modules/gapi/perf/perf_bench.cpp
1 issues
syntax error
Error

Line: 8

              {

struct SobelEdgeDetector:  public TestPerfParams<cv::Size> {};
PERF_TEST_P_(SobelEdgeDetector, Fluid)
{
    Size sz = GetParam();
    initMatsRandU(CV_8UC3, sz, CV_8UC3, false);

    GMat in;

            

Reported by Cppcheck.

modules/gapi/samples/face_detection_mtcnn.cpp
1 issues
syntax error
Error

Line: 223

                        "sample.custom.mtcnn_output");

using GFaces = cv::GArray<Face>;
G_API_OP(BuildFaces,
         <GFaces(cv::GMat, cv::GMat, float, float)>,
         "sample.custom.mtcnn.build_faces") {
         static cv::GArrayDesc outMeta(const cv::GMatDesc&,
                                       const cv::GMatDesc&,
                                       const float,

            

Reported by Cppcheck.

modules/gapi/samples/gaze_estimation.cpp
1 issues
syntax error
Error

Line: 55

              G_API_NET(HeadPose,  <   GMat3(cv::GMat)>, "head-pose");
G_API_NET(Gaze,      <cv::GMat(cv::GMat,cv::GMat,cv::GMat)>, "gaze-vector");

G_API_OP(Size, <GSize(cv::GMat)>, "custom.gapi.size") {
    static cv::GOpaqueDesc outMeta(const cv::GMatDesc &) {
        return cv::empty_gopaque_desc();
    }
};


            

Reported by Cppcheck.

modules/gapi/samples/infer_ie_onnx_hybrid.cpp
1 issues
syntax error
Error

Line: 32

              G_API_NET(Faces, <cv::GMat(cv::GMat)>, "face-detector");
G_API_NET(Emotions, <cv::GMat(cv::GMat)>, "emotions-recognition");

G_API_OP(PostProc, <cv::GArray<cv::Rect>(cv::GMat, cv::GMat)>, "custom.fd_postproc") {
    static cv::GArrayDesc outMeta(const cv::GMatDesc &, const cv::GMatDesc &) {
        return cv::empty_array_desc();
    }
};


            

Reported by Cppcheck.

modules/gapi/samples/infer_single_roi.cpp
1 issues
syntax error
Error

Line: 72

              using GSize       = cv::GOpaque<cv::Size>;
using GPrims      = cv::GArray<cv::gapi::wip::draw::Prim>;

G_API_OP(GetSize, <GSize(cv::GMat)>, "sample.custom.get-size") {
    static cv::GOpaqueDesc outMeta(const cv::GMatDesc &) {
        return cv::empty_gopaque_desc();
    }
};


            

Reported by Cppcheck.

modules/gapi/samples/infer_ssd_onnx.cpp
1 issues
syntax error
Error

Line: 26

              using GSize       = cv::GOpaque<cv::Size>;
using GPrims      = cv::GArray<cv::gapi::wip::draw::Prim>;

G_API_OP(GetSize, <GSize(cv::GMat)>, "sample.custom.get-size") {
    static cv::GOpaqueDesc outMeta(const cv::GMatDesc &) {
        return cv::empty_gopaque_desc();
    }
};
G_API_OP(ParseSSD, <GDetections(cv::GMat, GSize)>, "sample.custom.parse-ssd") {

            

Reported by Cppcheck.

modules/gapi/samples/privacy_masking_camera.cpp
1 issues
syntax error
Error

Line: 52

              
using GDetections = cv::GArray<cv::Rect>;

G_API_OP(ParseSSD, <GDetections(cv::GMat, cv::GMat, int)>, "custom.privacy_masking.postproc") {
    static cv::GArrayDesc outMeta(const cv::GMatDesc &, const cv::GMatDesc &, int) {
        return cv::empty_array_desc();
    }
};


            

Reported by Cppcheck.