From 1d8dad659abf4e303ff4ff18f90fd3730ac18989 Mon Sep 17 00:00:00 2001 From: Richard Wells Date: Thu, 2 Jan 2025 18:36:14 +0000 Subject: [PATCH] Fix build issues in HAL causing OpenCV conformity check failure. --- adapters/opencv/kleidicv_hal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/opencv/kleidicv_hal.cpp b/adapters/opencv/kleidicv_hal.cpp index eb7d7a9f8..17e83e686 100644 --- a/adapters/opencv/kleidicv_hal.cpp +++ b/adapters/opencv/kleidicv_hal.cpp @@ -353,6 +353,7 @@ static int from_opencv(int opencv_border_type, return 0; } +#if KLEIDICV_EXPERIMENTAL_FEATURE_WARP_PERSPECTIVE // Converts an OpenCV interpolation type to a KleidiCV interpolation type. static int from_opencv(int opencv_interpolation, kleidicv_interpolation_type_t &interpolation_type) { @@ -371,6 +372,7 @@ static int from_opencv(int opencv_interpolation, return 0; } +#endif // KLEIDICV_EXPERIMENTAL_FEATURE_WARP_PERSPECTIVE struct SeparableFilter2DParams { size_t channels; @@ -1006,7 +1008,7 @@ int rotate(int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int angle) { int element_size = CV_ELEM_SIZE(src_type); - size_t multithread_min_elements = 0; + int multithread_min_elements = 0; switch (element_size) { case sizeof(uint8_t): multithread_min_elements = MULTITHREAD_MIN_ELEMENTS_ROTATE_U8; -- GitLab