You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int ovx_hal_mul(const T *a, size_t astep, const T *b, size_t bstep, T *c, size_t cstep, int w, int h, double scale)
193
177
{
194
-
if(skipSmallImages(w, h, VX_KERNEL_MULTIPLY))
178
+
if(skipSmallImages<VX_KERNEL_MULTIPLY>(w, h))
195
179
return CV_HAL_ERROR_NOT_IMPLEMENTED;
196
180
if (dimTooBig(w) || dimTooBig(h))
197
181
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -259,7 +243,7 @@ template int ovx_hal_mul<short>(const short *a, size_t astep, const short *b, si
259
243
260
244
intovx_hal_not(const uchar *a, size_t astep, uchar *c, size_t cstep, int w, int h)
261
245
{
262
-
if (skipSmallImages(w, h, VX_KERNEL_NOT))
246
+
if (skipSmallImages<VX_KERNEL_NOT>(w, h))
263
247
return CV_HAL_ERROR_NOT_IMPLEMENTED;
264
248
if (dimTooBig(w) || dimTooBig(h))
265
249
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -290,7 +274,7 @@ int ovx_hal_not(const uchar *a, size_t astep, uchar *c, size_t cstep, int w, int
290
274
291
275
intovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn)
292
276
{
293
-
if (skipSmallImages(len, 1, VX_KERNEL_CHANNEL_COMBINE))
277
+
if (skipSmallImages<VX_KERNEL_CHANNEL_COMBINE>(len, 1))
294
278
return CV_HAL_ERROR_NOT_IMPLEMENTED;
295
279
if (dimTooBig(len))
296
280
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -328,7 +312,7 @@ int ovx_hal_merge8u(const uchar **src_data, uchar *dst_data, int len, int cn)
328
312
329
313
intovx_hal_resize(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, double inv_scale_x, double inv_scale_y, int interpolation)
330
314
{
331
-
if (skipSmallImages(aw, ah, VX_KERNEL_SCALE_IMAGE))
315
+
if (skipSmallImages<VX_KERNEL_SCALE_IMAGE>(aw, ah))
332
316
return CV_HAL_ERROR_NOT_IMPLEMENTED;
333
317
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
334
318
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -381,7 +365,7 @@ int ovx_hal_resize(int atype, const uchar *a, size_t astep, int aw, int ah, ucha
381
365
382
366
intovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, constdouble M[6], int interpolation, int borderType, constdouble borderValue[4])
383
367
{
384
-
if (skipSmallImages(aw, ah, VX_KERNEL_WARP_AFFINE))
368
+
if (skipSmallImages<VX_KERNEL_WARP_AFFINE>(aw, ah))
385
369
return CV_HAL_ERROR_NOT_IMPLEMENTED;
386
370
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
387
371
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -443,7 +427,7 @@ int ovx_hal_warpAffine(int atype, const uchar *a, size_t astep, int aw, int ah,
443
427
444
428
intovx_hal_warpPerspectve(int atype, const uchar *a, size_t astep, int aw, int ah, uchar *b, size_t bstep, int bw, int bh, constdouble M[9], int interpolation, int borderType, constdouble borderValue[4])
445
429
{
446
-
if (skipSmallImages(aw, ah, VX_KERNEL_WARP_PERSPECTIVE))
430
+
if (skipSmallImages<VX_KERNEL_WARP_PERSPECTIVE>(aw, ah))
447
431
return CV_HAL_ERROR_NOT_IMPLEMENTED;
448
432
if (dimTooBig(aw) || dimTooBig(ah) || dimTooBig(bw) || dimTooBig(bh))
449
433
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -593,7 +577,7 @@ int ovx_hal_filterFree(cvhalFilter2D *filter_context)
593
577
594
578
intovx_hal_filter(cvhalFilter2D *filter_context, uchar *a, size_t astep, uchar *b, size_t bstep, int w, int h, int, int, int, int)
595
579
{
596
-
if (skipSmallImages(w, h, VX_KERNEL_CUSTOM_CONVOLUTION))
580
+
if (skipSmallImages<VX_KERNEL_CUSTOM_CONVOLUTION>(w, h))
597
581
return CV_HAL_ERROR_NOT_IMPLEMENTED;
598
582
if (dimTooBig(w) || dimTooBig(h))
599
583
return CV_HAL_ERROR_NOT_IMPLEMENTED;
@@ -819,7 +803,7 @@ int ovx_hal_morphFree(cvhalFilter2D *filter_context)
if (skipSmallImages(w, h, VX_KERNEL_DILATE_3x3))//Actually it make sense to separate checks if implementations of dilation and erosion have different performance gain
806
+
if (skipSmallImages<VX_KERNEL_DILATE_3x3>(w, h))//Actually it make sense to separate checks if implementations of dilation and erosion have different performance gain
0 commit comments