6 #include "ueyeclass.hh"
26 int nRet = IS_CANT_OPEN_DEVICE;
31 nRet = is_InitCamera (&hu,0);
33 if (nRet == IS_SUCCESS)
37 is_EnableAutoExit(
m_hu, IS_DISABLE_AUTO_EXIT );
50 int nRet = IS_CANT_CLOSE_DEVICE;
54 nRet = is_ExitCamera (
m_hu);
64 return is_SetErrorReport (
m_hu, lMode);
70 return is_GetError(
m_hu,&lErr,&pcErrText);
74 return is_GetNumberOfCameras (plNumCameras);
80 *plDllVers = is_GetDLLVersion();
90 return IS_FUNCTION_NOT_SUPPORTED_YET;
99 return IS_FUNCTION_NOT_SUPPORTED_YET;
105 return is_GetColorDepth (
m_hu, plBpp, plColFormat);
111 return is_CameraStatus (
m_hu, lInfo, (ULONG)lValue);
117 return is_GetCameraType (
m_hu);
123 BIASERR(
"Not longer defined in SDK.");
131 BIASERR(
"Not longer defined in SDK.");
139 BIASERR(
"Not longer supported in current SDK.");
147 return is_Gamma(
m_hu, IS_GAMMA_CMD_SET, (
void *) &lGamma,
sizeof(
int));
154 return is_SetWhiteBalance(
m_hu, nMode);
160 return is_SetWhiteBalanceMultipliers(
m_hu, dblRed, dblGreen, dblBlue);
166 return is_SetColorMode (
m_hu, lMode);
172 return is_InitEvent (
m_hu, hEv, nWhich);
178 return is_EnableEvent (
m_hu, nWhich);
184 return is_DisableEvent (
m_hu, nWhich);
190 return is_ExitEvent (
m_hu, nWhich);
196 return is_EnableMessage(
m_hu, nWhich, hwnd);
202 return is_EnableAutoExit(
m_hu, nMode);
213 rectAOI.s32Width = lWidth;
214 rectAOI.s32Height = lHeight;
216 int nRet = is_AOI(
m_hu, IS_AOI_IMAGE_SET_AOI, (
void*)&rectAOI,
sizeof(rectAOI));
231 return is_AOI(
m_hu, IS_AOI_IMAGE_SET_POS, (
void *)&p,
sizeof(p));
238 return is_SetDisplayMode (
m_hu, Mode);
244 return is_SetHwnd (
m_hu, hWnd);
250 BIASERR(
"Not longer supported in current SDK.");
258 BIASERR(
"Not longer defined in SDK.");
266 BIASERR(
"Not longer supported in current SDK.");
274 return is_CaptureVideo (
m_hu, lWait);
280 return is_StopLiveVideo (
m_hu, lWait);
286 return is_FreezeVideo (
m_hu, lWait);
292 BIASERR(
"Not longer defined in SDK.");
300 return is_PixelClock(
m_hu, IS_PIXELCLOCK_CMD_GET_LIST, nPixelClockList, 150*
sizeof(UINT));
306 BIASERR(
"Not longer supported in current SDK.");
313 return is_AllocImageMem (
m_hu, lWidth, lHeight, lBpp, ppcImgMem, plID);
319 return is_FreeImageMem (
m_hu, pcMem, lID);
325 return is_SetImageMem (
m_hu, pcMem, lID);
331 return is_GetActiveImageMem (
m_hu, ppcImgMem, plID);
336 return is_GetActSeqBuf(
m_hu, &dummy, ppcImgMem,ppcImgMem);
341 return is_InquireImageMem (
m_hu, pcMem, lID, plX, plY, plBpp, plPitch);
347 int nRet = IS_SUCCESS;
350 *plIn = is_SetExternalTrigger (
m_hu, IS_GET_TRIGGER_INPUTS);
352 nRet = IS_NULL_POINTER;
361 BIASERR(
"Not longer supported in current SDK.");
376 BIASERR(
"Not longer supported in current SDK.");
384 return is_SetExternalTrigger (
m_hu, lMode);
390 int nRet = IS_SUCCESS;
393 nRet = is_GetCameraInfo (
m_hu, pInfo);
395 nRet = IS_NULL_POINTER;
403 int nRet = IS_SUCCESS;
406 nRet = is_ReadEEPROM (
m_hu, lAdr, pcBuf, lCount);
408 nRet = IS_INVALID_PARAMETER;
416 int nRet = IS_SUCCESS;
419 nRet = is_WriteEEPROM (
m_hu, lAdr, pcBuf, lCount);
421 nRet = IS_INVALID_PARAMETER;
429 BIASERR(
"Not longer supported in current SDK.");
437 BIASERR(
"Not longer supported in current SDK.");
445 BIASERR(
"Not longer supported in current SDK.");
453 return is_RenderBitmap(
m_hu, nMemID, hwnd, nMode);
459 BIASERR(
"Not longer defined in SDK.");
470 return is_PixelClock(
m_hu, IS_PIXELCLOCK_CMD_SET, (
void*)&nClock,
sizeof(nClock));
476 return is_SetFrameRate(
m_hu, dFr, pdFrNew);
482 return is_Exposure (
m_hu, IS_EXPOSURE_CMD_SET_EXPOSURE, (
void*)&EXP,
sizeof(EXP));
489 is_Exposure(
m_hu, IS_EXPOSURE_CMD_GET_EXPOSURE, (
void*)&newexp,
sizeof(newexp));
497 ret = is_SetHardwareGain(
m_hu, gainMaster, IS_IGNORE_PARAMETER, IS_IGNORE_PARAMETER, IS_IGNORE_PARAMETER);
504 ret = is_SetHardwareGain(
m_hu, gainMaster, gainRed, gainGreen, gainBlue);
512 BIASERR(
"Do not use this method, use SetGain(int) instead!");
513 ret = is_SetHardwareGain(
m_hu,(
int) gain,IS_IGNORE_PARAMETER,IS_IGNORE_PARAMETER,IS_IGNORE_PARAMETER);
519 return is_SetHardwareGain(
m_hu,IS_GET_MASTER_GAIN,IS_IGNORE_PARAMETER,IS_IGNORE_PARAMETER,IS_IGNORE_PARAMETER);
532 return is_GetSensorInfo(
m_hu, pInfo );
int StopLiveVideo(int lWait)
int SetExposureTime(double EXP, double *newEXP)
int GetActiveImageMem(char **ppcImgMem, int *plID)
int SetMainDisplayWindow(HWND hWnd)
int ReadDigitalPort(int *plIn)
int CaptureVideo(int lWait)
int SetBrightness(int lBright)
int SetGain(int gainMaster)
int GetCameraInfo(CAMINFO *pInfo)
int FreeImageMem(char *pcMem, int lID)
int SetPixelClock(unsigned int nClock)
int SetCaptureMode(int lMode)
int SetColorMode(int lMode)
int EnableAutoExit(int nMode)
int ReadTriggerPort(int *plIn)
int SetWhiteBalanceMultipliers(double dblRed, double dblGreen, double dblBlue)
int WriteEEPROM(int lAdr, char *pcBuf, int lCount)
int GetDllVersion(int *plDllVers)
int DisableEvent(int nWhich)
int SetImageMem(char *pcMem, int lID)
int SaveImage(char *pcFile)
int InquireImageMem(char *pcMem, int lID, int *plX, int *plY, int *plBpp, int *plPitch)
int CameraStatus(int lInfo, long lValue)
int SetWhiteBalance(int nMode)
int SetImageSize(int lWidth, int lHeight)
int InitCamera(int nId=0)
int SetFrameRate(double dFr, double *pdFrNew)
int EnableEvent(int nWhich)
int SaveImageMem(char *pcFile, char *pcMem, int lID)
int RenderBitmap(int nMemID, HWND hwnd, int nMode)
int FreezeVideo(int lWait)
int Renumerate(int reserved)
int SetEdgeEnhancement(int lMode)
int SetExternalTrigger(int lMode)
int SetDisplayMode(int Mode)
int SetContrast(int lCont)
int LoadImage(char *pcFile)
int SetDisplayKeyColor(int lKeyCol)
int GetAllPixelClocks(unsigned int *nPixelClockList)
int SetDisplayWindow(HWND hWnd)
int GetPciSlot(int *plSlot)
int GetColorDepth(int *plBpp, int *plColFormat)
int SetImagePos(int lPosX, int lPosY)
int ReadEEPROM(int lAdr, char *pcBuf, int lCount)
int GetErrorText(int lErr, char *pcErrText)
int GetSensorInfo(PSENSORINFO pInfo)
int InitEvent(HANDLE hEv, int nWhich)
int EnableMessage(int nWhich, HWND hwnd)
int GetActSeqBuffer(char **ppcImgMem, int *plID)
int ExitEvent(int nWhich)
int SetErrorReport(int lMode)
int WriteDigitalPort(int lOut)
int GetNumberOfCameras(int *plNumCameras)
int AllocImageMem(int lWidth, int lHeight, int lBpp, char **ppcImgMem, int *plID)