SpeedUpPlus.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // 下列 ifdef 块是创建使从 DLL 导出更简单的
  2. // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 SPEEDUPPLUS_EXPORTS
  3. // 符号编译的。在使用此 DLL 的
  4. // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
  5. // SPEEDUPPLUS_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
  6. // 符号视为是被导出的。
  7. #ifdef SPEEDUPPLUS_EXPORTS
  8. #define SPEEDUPPLUS_API __declspec(dllexport)
  9. #else
  10. #define SPEEDUPPLUS_API __declspec(dllimport)
  11. #endif
  12. #ifndef SPEEDUPPLUS_EXPORTS
  13. #ifdef _WIN64
  14. #ifdef _DEBUG
  15. #pragma comment(lib, "SpeedUpPlusX64D.lib")
  16. #else
  17. #pragma comment(lib, "SpeedUpPlusX64.lib")
  18. #endif
  19. #else
  20. #ifdef _DEBUG
  21. #pragma comment(lib, "SpeedUpPlusD.lib")
  22. #else
  23. #pragma comment(lib, "SpeedUpPlus.lib")
  24. #endif
  25. #endif
  26. #endif
  27. #ifdef SPEEDUPPLUS_EXPORTS
  28. #define SPEEDUPPLUS_API __declspec(dllexport)
  29. #define SPEEDUPPLUS_C_API extern "C" __declspec(dllexport)
  30. #else
  31. #define SPEEDUPPLUS_API __declspec(dllimport)
  32. #define SPEEDUPPLUS_C_API extern "C" __declspec(dllimport)
  33. #endif
  34. SPEEDUPPLUS_C_API int SpeedUpPlusInitialization(/*unsigned short * pOffsetMap, unsigned short * pGainMap, int * GainAverage, */int PUtype, unsigned long size);
  35. SPEEDUPPLUS_C_API int SpeedUpPlusApplyCorrection(unsigned short * Image, unsigned int ZoomOrBinning);
  36. SPEEDUPPLUS_C_API int ResetCorrectionMap(unsigned short * OffsetMap, unsigned short * pGainMap, unsigned short * pGatelineMap, int * GainAverage);
  37. SPEEDUPPLUS_C_API int SpeedUpPlusExit();