1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include "ie_preprocess_gapi_kernels.hpp"
8 #include "ie_preprocess_gapi_kernels_impl.hpp"
10 namespace InferenceEngine {
14 //----------------------------------------------------------------------
16 typedef MapperUnit<float, int> MapperUnit32F;
17 typedef MapperUnit<Q0_16, short> MapperUnit8U;
19 void calcRowArea_8U(uchar dst[], const uchar *src[], const Size &inSz, const Size &outSz,
20 Q0_16 yalpha, const MapperUnit8U& ymap, int xmaxdf, const short xindex[], const Q0_16 xalpha[],
23 void calcRowArea_32F(float dst[], const float *src[], const Size &inSz, const Size &outSz,
24 float yalpha, const MapperUnit32F& ymap, int xmaxdf, const int xindex[], const float xalpha[],
28 void calcRowArea_CVKL_U8_SSE42(const uchar * src[],
35 const uint16_t xalpha[],
36 const uint16_t yalpha[],
42 //----------------------------------------------------------------------
44 // Resize (bi-linear, 8U)
45 void calcRowLinear_8U(uint8_t *dst[],
46 const uint8_t *src0[],
47 const uint8_t *src1[],
57 void calcRowLinear_8UC3(std::array<std::array<uint8_t*, 4>, 3> &dst,
58 const uint8_t *src0[],
59 const uint8_t *src1[],
69 // Resize (bi-linear, 32F)
70 void calcRowLinear_32F(float *dst[],
80 //----------------------------------------------------------------------
82 void mergeRow_8UC2(const uint8_t in0[],
87 void mergeRow_8UC3(const uint8_t in0[],
93 void mergeRow_8UC4(const uint8_t in0[],
100 void mergeRow_32FC2(const float in0[],
105 void mergeRow_32FC3(const float in0[],
111 void mergeRow_32FC4(const float in0[],
118 void splitRow_8UC2(const uint8_t in[],
123 void splitRow_8UC3(const uint8_t in[],
129 void splitRow_8UC4(const uint8_t in[],
136 void splitRow_32FC2(const float in[],
141 void splitRow_32FC3(const float in[],
147 void splitRow_32FC4(const float in[],
154 } // namespace kernels
156 } // namespace InferenceEngine