From 72fedbe096288dce67a85eab2febfb0b44032196 Mon Sep 17 00:00:00 2001 From: Anton Potapov Date: Wed, 11 Mar 2020 11:23:15 +0300 Subject: [PATCH] GAPI - KW fixes - replace "unsafe" memcpy with "safe" :) std::copy_n to make KW happy --- modules/gapi/src/backends/fluid/gfluidimgproc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/gapi/src/backends/fluid/gfluidimgproc.cpp b/modules/gapi/src/backends/fluid/gfluidimgproc.cpp index ee0dd01969..2c685f0486 100644 --- a/modules/gapi/src/backends/fluid/gfluidimgproc.cpp +++ b/modules/gapi/src/backends/fluid/gfluidimgproc.cpp @@ -31,7 +31,7 @@ #include #include -#include +#include namespace cv { namespace gapi { @@ -1800,12 +1800,12 @@ GAPI_FLUID_KERNEL(GFluidBayerGR2RGB, cv::gapi::imgproc::GBayerGR2RGB, false) if (in.y() == -1) { run_bayergr2rgb_bg_impl(dst[1], src + border_size, width); - std::memcpy(dst[0], dst[1], width * 3); + std::copy_n(dst[1], width * 3, dst[0]); } else if (in.y() == height - LPI - 2 * border_size + 1) { run_bayergr2rgb_gr_impl(dst[0], src, width); - std::memcpy(dst[1], dst[0], width * 3); + std::copy_n(dst[0], width * 3, dst[1]); } else {