⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orchid_e.h

📁 相机传输图像程序源代码 拜耳模式(RAW格式文件)与RGB图像数据互相转换函数库
💻 H
字号:
#ifndef _Orchid_E_H#define _Orchid_E_H#include <windows.h>#include <lvdef.h>#if defined(__cplusplus)  #define DLLENTRY extern "C"#else  #define DLLENTRY #endif#ifndef __WIN32__	#undef WINAPI	#define WINAPI#endif// possible error codes returned by the functions:#define LVX_ERR_SIZE_OVERFLOW     19000 // size of the buffer is too big#define LVX_ERR_UNALIGNED_ADDRESS 19001 // address or size not aligned to 32-bits#define LVX_ERR_INVALID_PARAM     19002 // some of the parameters is invalid#define LVX_ERR_WRITE_DISABLED    19003 // cannot write to protected areas#define LVX_ERR_CANNOT_LOAD_DAISY 19004 // Daisy DLL cannot be loaded// NOTE: All addresses and sizes in memory access functions are in bytes // and MUST be aligned to 4-byte boundary//--- Notifications -----------------------------------------------------------DLLENTRY int WINAPI lvx_AddInterruptNotify (int    hGrabber,                                            INTHANDLE hHandle,                                            DWORD  dwWhichInt,                                            DWORD* pdwNotifyId);DLLENTRY int WINAPI lvx_RemoveInterruptNotify(int   hGrabber,                                              DWORD dwNotifyId);DLLENTRY int WINAPI lvx_GetGrabberHandleByName(const char* pszGrabberName,                                               int iOrder);//--- General access to registers and fields ----------------------------------DLLENTRY int WINAPI lvx_GetDeviceHandle(int iDeviceType,                                        int iOrder);DLLENTRY int WINAPI lvx_GetDeviceHandleByName(const char* pszDeviceName,                                              int iOrder);DLLENTRY int WINAPI lvx_GetBoardIdByName(int hDevice,                                         const char* pszBoardName);DLLENTRY int WINAPI lvx_GetRegisterSetIdByName(int hDevice,                                               int iBoardId,                                               const char* pszRegSetName);DLLENTRY int WINAPI lvx_GetChipIdByName(int hDevice,                                        int iBoardId,                                        const char* pszRegSetName);DLLENTRY int WINAPI lvx_GetRegisterIdByName(int iRegSetId,                                            const char* pszRegisterName);DLLENTRY int WINAPI lvx_GetFieldIdByName(int iRegSetId,                                         const char* pszFieldName);DLLENTRY int WINAPI lvx_ReadRegister(int    hDevice,                                     int    iBoardId,                                     int    iChipId,                                     int    iRegisterId,                                     DWORD* pdwValue);DLLENTRY int WINAPI lvx_WriteRegister(int   hDevice,                                      int   iBoardId,                                      int   iChipId,                                      int   iRegisterId,                                      DWORD dwValue);DLLENTRY int WINAPI lvx_ReadRegisterBits(int    hDevice,                                         int    iBoardId,                                         int    iChipId,                                         int    iRegisterId,                                         DWORD* pdwValue,                                         int    iBitWidth,                                         int    iBitShift);DLLENTRY int WINAPI lvx_WriteRegisterBits(int   hDevice,                                          int   iBoardId,                                          int   iChipId,                                          int   iRegisterId,                                          DWORD dwValue,                                          int   iBitWidth,                                          int   iBitShift);//--- General access to whole memory space ------------------------------------DLLENTRY int WINAPI lvx_PpgReadDWord (int    hDevice,                                      DWORD  dwAddress,                                      DWORD* pdwValue);DLLENTRY int WINAPI lvx_PpgWriteDWord (int   hDevice,                                       DWORD dwAddress,                                       DWORD dwValue);DLLENTRY int WINAPI lvx_PpgReadBuffer (int    hDevice,                                       DWORD  dwAddress,                                       DWORD* pdwData,                                       DWORD  dwSize);DLLENTRY int WINAPI lvx_PpgWriteBuffer (int    hDevice,                                        DWORD  dwAddress,                                        DWORD* pdwData,                                        DWORD  dwSize);//--- Specific access on PicProdigy and PicPort Pro framegrabbers -------------DLLENTRY int WINAPI lvx_PpgReadFrameBuffer (int    hDevice,                                            DWORD  dwOffset,                                             DWORD* pdwData,                                             DWORD  dwSize);DLLENTRY int WINAPI lvx_PpgWriteFrameBuffer (int    hDevice,                                              int    dwOffset,                                              DWORD* pdwData,                                              DWORD  dwSize);//-----------------------------------------------------------------------------DLLENTRY void WINAPI lvx_SetSharedCriticalSection (void* pCriticalSection);//-----------------------------------------------------------------------------#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -