ipp_utils.hpp 677 B

12345678910111213141516171819202122232425262728
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html
  4. #ifndef __IPP_HAL_UTILS_HPP__
  5. #define __IPP_HAL_UTILS_HPP__
  6. #include "ippversion.h"
  7. #ifndef IPP_VERSION_UPDATE // prior to 7.1
  8. #define IPP_VERSION_UPDATE 0
  9. #endif
  10. #define IPP_VERSION_X100 (IPP_VERSION_MAJOR * 100 + IPP_VERSION_MINOR*10 + IPP_VERSION_UPDATE)
  11. #ifdef HAVE_IPP_ICV
  12. # define ICV_BASE
  13. #if IPP_VERSION_X100 >= 201700
  14. # include "ippicv.h"
  15. #else
  16. # include "ipp.h"
  17. #endif
  18. #else
  19. # include "ipp.h"
  20. #endif
  21. #define CV_INSTRUMENT_FUN_IPP(FUN, ...) ((FUN)(__VA_ARGS__))
  22. #endif