@@ -82,10 +82,13 @@ inline bool dimTooBig(int size)
82
82
}
83
83
84
84
// OpenVX calls have essential overhead so it make sense to skip them for small images
85
- template <int kernel_id> inline bool skipSmallImages (int w, int h) { return w*h < 7680 * 4320 ; }
86
- template <> inline bool skipSmallImages<VX_KERNEL_MULTIPLY>(int w, int h) { return w*h < 640 * 480 ; }
87
- template <> inline bool skipSmallImages<VX_KERNEL_COLOR_CONVERT>(int w, int h) { return w*h < 2048 * 1536 ; }
88
- template <> inline bool skipSmallImages<VX_KERNEL_INTEGRAL_IMAGE>(int w, int h) { return w*h < 640 * 480 ; }
85
+ template <int kernel_id> inline bool skipSmallImages (int w, int h) { return w*h < 7680 * 4320 ; }
86
+ template <> inline bool skipSmallImages<VX_KERNEL_MULTIPLY>(int w, int h) { return w*h < 640 * 480 ; }
87
+ template <> inline bool skipSmallImages<VX_KERNEL_COLOR_CONVERT>(int w, int h) { return w*h < 2048 * 1536 ; }
88
+ template <> inline bool skipSmallImages<VX_KERNEL_INTEGRAL_IMAGE>(int w, int h) { return w*h < 640 * 480 ; }
89
+ template <> inline bool skipSmallImages<VX_KERNEL_WARP_AFFINE>(int w, int h) { return w*h < 1280 * 720 ; }
90
+ template <> inline bool skipSmallImages<VX_KERNEL_WARP_PERSPECTIVE>(int w, int h) { return w*h < 320 * 240 ; }
91
+ template <> inline bool skipSmallImages<VX_KERNEL_CUSTOM_CONVOLUTION>(int w, int h) { return w*h < 320 * 240 ; }
89
92
90
93
inline void setConstantBorder (ivx::border_t &border, vx_uint8 val)
91
94
{
@@ -553,6 +556,7 @@ int ovx_hal_filterInit(cvhalFilter2D **filter_context, uchar *kernel_data, size_
553
556
for (int i = 0 ; i < kernel_width; ++i)
554
557
data.push_back (row[i]);
555
558
}
559
+ break ;
556
560
default :
557
561
return CV_HAL_ERROR_NOT_IMPLEMENTED;
558
562
}
0 commit comments