1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 SPEEDUPPLUS_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // SPEEDUPPLUS_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifdef SPEEDUPPLUS_EXPORTS
- #define SPEEDUPPLUS_API __declspec(dllexport)
- #else
- #define SPEEDUPPLUS_API __declspec(dllimport)
- #endif
- #ifndef SPEEDUPPLUS_EXPORTS
- #ifdef _WIN64
- #ifdef _DEBUG
- #pragma comment(lib, "SpeedUpPlusX64D.lib")
- #else
- #pragma comment(lib, "SpeedUpPlusX64.lib")
- #endif
- #else
- #ifdef _DEBUG
- #pragma comment(lib, "SpeedUpPlusD.lib")
- #else
- #pragma comment(lib, "SpeedUpPlus.lib")
- #endif
- #endif
- #endif
- #ifdef SPEEDUPPLUS_EXPORTS
- #define SPEEDUPPLUS_API __declspec(dllexport)
- #define SPEEDUPPLUS_C_API extern "C" __declspec(dllexport)
- #else
- #define SPEEDUPPLUS_API __declspec(dllimport)
- #define SPEEDUPPLUS_C_API extern "C" __declspec(dllimport)
- #endif
- SPEEDUPPLUS_C_API int SpeedUpPlusInitialization(/*unsigned short * pOffsetMap, unsigned short * pGainMap, int * GainAverage, */int PUtype, unsigned long size);
- SPEEDUPPLUS_C_API int SpeedUpPlusApplyCorrection(unsigned short * Image, unsigned int ZoomOrBinning);
- SPEEDUPPLUS_C_API int ResetCorrectionMap(unsigned short * OffsetMap, unsigned short * pGainMap, unsigned short * pGatelineMap, int * GainAverage);
- SPEEDUPPLUS_C_API int SpeedUpPlusExit();
|