CUDA.Utility.hpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2024 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'CUDA.Utility.pas' rev: 36.00 (Windows)
  5. #ifndef CUDA_UtilityHPP
  6. #define CUDA_UtilityHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #if defined(__BORLANDC__) && !defined(__clang__)
  10. #pragma option -w- // All warnings off
  11. #pragma option -Vx // Zero-length empty class member
  12. #endif
  13. #pragma pack(push,8)
  14. #include <System.hpp>
  15. #include <SysInit.hpp>
  16. #include <Winapi.Windows.hpp>
  17. //-- user supplied -----------------------------------------------------------
  18. namespace Cuda
  19. {
  20. namespace Utility
  21. {
  22. //-- forward type declarations -----------------------------------------------
  23. //-- type declarations -------------------------------------------------------
  24. //-- var, const, procedure ---------------------------------------------------
  25. #define CUTILDLL L"cutil32.dll"
  26. extern DELPHI_PACKAGE char * __stdcall (*cutFindFilePath)(const char * filename, const char * executablePath);
  27. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPGMf)(const char * filename, System::PSingle &data, int &w, int &h);
  28. extern DELPHI_PACKAGE bool __stdcall (*cutSavePGMf)(const char * filename, System::PSingle data, int w, int h);
  29. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPGMub)(const char * filename, Winapi::Windows::PByte &data, int &w, int &h);
  30. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPPMub)(const char * filename, Winapi::Windows::PByte &data, int &w, int &h);
  31. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPPM4ub)(const char * filename, Winapi::Windows::PByte &data, int &w, int &h);
  32. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPGMi)(const char * filename, System::PInteger &data, int &w, int &h);
  33. extern DELPHI_PACKAGE bool __stdcall (*cutLoadPGMs)(const char * filename, PWORD &data, int &w, int &h);
  34. extern DELPHI_PACKAGE bool __stdcall (*cutSavePGMub)(const char * filename, Winapi::Windows::PByte data, int w, int h);
  35. extern DELPHI_PACKAGE bool __stdcall (*cutSavePPMub)(const char * filename, Winapi::Windows::PByte data, int w, int h);
  36. extern DELPHI_PACKAGE bool __stdcall (*cutSavePPM4ub)(const char * filename, Winapi::Windows::PByte data, int w, int h);
  37. extern DELPHI_PACKAGE bool __stdcall (*cutSavePGMi)(const char * filename, System::PInteger data, int w, int h);
  38. extern DELPHI_PACKAGE bool __stdcall (*cutSavePGMs)(const char * filename, PWORD data, int w, int h);
  39. extern DELPHI_PACKAGE bool __stdcall (*cutComparef)(const Winapi::Windows::PSingle reference, const Winapi::Windows::PSingle data, const unsigned len);
  40. extern DELPHI_PACKAGE bool __stdcall (*cutComparei)(const System::PInteger reference, const System::PInteger data, const unsigned len);
  41. extern DELPHI_PACKAGE bool __stdcall (*cutCompareuit)(const System::PInteger reference, const System::PInteger data, const unsigned len, const float epsilon, const float threshold);
  42. extern DELPHI_PACKAGE bool __stdcall (*cutCompareub)(const Winapi::Windows::PByte reference, const Winapi::Windows::PByte data, const unsigned len);
  43. extern DELPHI_PACKAGE bool __stdcall (*cutCompareubt)(const Winapi::Windows::PByte reference, const Winapi::Windows::PByte data, const unsigned len, const float epsilon, const float threshold);
  44. extern DELPHI_PACKAGE bool __stdcall (*cutCompareube)(const Winapi::Windows::PByte reference, const Winapi::Windows::PByte data, const unsigned len, const float epsilon);
  45. extern DELPHI_PACKAGE bool __stdcall (*cutComparefe)(const Winapi::Windows::PSingle reference, const Winapi::Windows::PSingle data, const unsigned len, const float epsilon);
  46. extern DELPHI_PACKAGE bool __stdcall (*cutComparefet)(const Winapi::Windows::PSingle reference, const Winapi::Windows::PSingle data, const unsigned len, const float epsilon, const float threshold);
  47. extern DELPHI_PACKAGE bool __stdcall (*cutCompareL2fe)(const Winapi::Windows::PSingle reference, const Winapi::Windows::PSingle data, const unsigned len, const float epsilon);
  48. extern DELPHI_PACKAGE bool __stdcall (*cutCreateTimer)(unsigned &name);
  49. extern DELPHI_PACKAGE bool __stdcall (*cutStartTimer)(const unsigned name);
  50. extern DELPHI_PACKAGE bool __stdcall (*cutStopTimer)(const unsigned name);
  51. extern DELPHI_PACKAGE bool __stdcall (*cutResetTimer)(const unsigned name);
  52. extern DELPHI_PACKAGE bool __stdcall (*cutDeleteTimer)(const unsigned name);
  53. extern DELPHI_PACKAGE float __stdcall (*cutGetTimerValue)(const unsigned name);
  54. extern DELPHI_PACKAGE float __stdcall (*cutGetAverageTimerValue)(const unsigned name);
  55. extern DELPHI_PACKAGE void __stdcall (*cutFree)(void * ptr);
  56. extern DELPHI_PACKAGE bool __fastcall InitCUTIL(void);
  57. extern DELPHI_PACKAGE void __fastcall CloseCUTIL(void);
  58. extern DELPHI_PACKAGE bool __fastcall InitCUTILFromLibrary(const System::WideString LibName);
  59. extern DELPHI_PACKAGE bool __fastcall IsCUTILInitialized(void);
  60. } /* namespace Utility */
  61. } /* namespace Cuda */
  62. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_CUDA_UTILITY)
  63. using namespace Cuda::Utility;
  64. #endif
  65. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_CUDA)
  66. using namespace Cuda;
  67. #endif
  68. #pragma pack(pop)
  69. #pragma option pop
  70. #pragma delphiheader end.
  71. //-- end unit ----------------------------------------------------------------
  72. #endif // CUDA_UtilityHPP