ippwrapper.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #include "core/vector/ippwrapper.h"
  2. #ifndef NICE_USELIB_IPP
  3. const char *ippGetStatusString(IppStatus status)
  4. {
  5. switch(status) {
  6. case ippStsDataTypeErr:
  7. return "Bad or unsupported data type";
  8. case ippStsOutOfRangeErr:
  9. return "Argument is out of range or point is outside the image";
  10. case ippStsDivByZeroErr:
  11. return "An attempt to divide by zero";
  12. case ippStsMemAllocErr:
  13. return "Not enough memory allocated for the operation";
  14. case ippStsNullPtrErr:
  15. return "Null pointer error";
  16. case ippStsRangeErr:
  17. return "Bad values of bounds: the lower bound is greater than the upper bound";
  18. case ippStsSizeErr:
  19. return "Wrong value of data size";
  20. case ippStsBadArgErr:
  21. return "Function arg/param is bad";
  22. case ippStsNoMemErr:
  23. return "Not enough memory for the operation";
  24. case ippStsErr:
  25. return "Unknown error";
  26. case ippStsNoErr:
  27. return "No error";
  28. case ippStsDivByZero:
  29. return "Zero value(s) of the divisor in the function Div";
  30. default:
  31. return "Unknown error";
  32. }
  33. return "";
  34. }
  35. #endif