#ifndef _MV_CAMERA_CTRL_H_ #define _MV_CAMERA_CTRL_H_ #include "MvErrorDefine.h" #include "CameraParams.h" /** * @brief ¶¯Ì¬¿âµ¼Èëµ¼³ö¶¨Òå */ #ifndef MV_CAMCTRL_API #if (defined (_WIN32) || defined(WIN64)) #if defined(MV_CAMCTRL_EXPORTS) #define MV_CAMCTRL_API __declspec(dllexport) #else #define MV_CAMCTRL_API __declspec(dllimport) #endif #else #ifndef __stdcall #define __stdcall #endif #ifndef MV_CAMCTRL_API #define MV_CAMCTRL_API #endif #endif #endif #ifndef IN #define IN #endif #ifndef OUT #define OUT #endif #ifdef __cplusplus extern "C" { #endif /************************************************************************/ /* Ïà»úµÄ»ù±¾Ö¸ÁîºÍ²Ù×÷ */ /************************************************************************/ /************************************************************************ * @fn MV_CC_GetSDKVersion() * @brief »ñÈ¡SDK°æ±¾ºÅ * @param * @return ʼÖÕ·µ»Ø4×Ö½Ú°æ±¾ºÅ |Ö÷ |´Î |ÐÞÕý | ²âÊÔ| 8bits 8bits 8bits 8bits ************************************************************************/ MV_CAMCTRL_API unsigned int __stdcall MV_CC_GetSDKVersion(); /************************************************************************ * @fn MV_CC_EnumerateTls() * @brief »ñÈ¡Ö§³ÖµÄ´«Êä²ã * @return Ö§³ÖµÄ´«Êä²ã±àºÅ ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_EnumerateTls(); /************************************************************************ * @fn MV_CC_EnumDevices() * @brief ö¾ÙÉ豸 * @param nTLayerType [IN] ö¾Ù´«Êä²ã * @param pstDevList [OUT] É豸Áбí * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_EnumDevices(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST* pstDevList); /************************************************************************ * @fn MV_CC_EnumDevicesEx() * @brief ¸ù¾Ý³§ÉÌÃû×Öö¾ÙÉ豸 * @param nTLayerType [IN] ö¾Ù´«Êä²ã * @param pstDevList [OUT] É豸Áбí * @param pManufacturerName [IN] ³§ÉÌÃû×Ö * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST* pstDevList, IN const char* pManufacturerName); /************************************************************************ * @fn MV_CC_IsDeviceAccessible() * @brief É豸ÊÇ·ñ¿É´ï * @param pstDevInfo [IN] É豸ÐÅÏ¢½á¹¹Ìå * @param nAccessMode [IN] ·ÃÎÊȨÏÞ * @return ¿É´ï£¬·µ»Øtrue£»²»¿É´ï£¬·µ»Øfalse ************************************************************************/ MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceAccessible(IN MV_CC_DEVICE_INFO* pstDevInfo, IN unsigned int nAccessMode); /************************************************************************ * @fn MV_CC_CreateHandle() * @brief ´´½¨É豸¾ä±ú * @param handle [OUT] ¾ä±úµØÖ· * @param pstDevInfo [IN] É豸ÐÅÏ¢½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_CreateHandle(OUT void ** handle, IN const MV_CC_DEVICE_INFO* pstDevInfo); /************************************************************************ * @fn MV_CC_CreateHandleWithoutLog * @brief ´´½¨É豸¾ä±ú£¬²»Éú³ÉÈÕÖ¾ * @param handle [OUT] ¾ä±úµØÖ· * @param pstDevInfo [IN] É豸ÐÅÏ¢½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleWithoutLog(OUT void ** handle, IN const MV_CC_DEVICE_INFO* pstDevInfo); /************************************************************************ * @fn MV_CC_DestroyHandle() * @brief Ïú»ÙÉ豸¾ä±ú * @param handle [IN] ¾ä±ú * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_DestroyHandle(IN void * handle); /************************************************************************ * @fn MV_CC_OpenDevice() * @brief ´ò¿ªÉ豸 * @param handle [IN] ¾ä±ú * @param nAccessMode [IN] ·ÃÎÊȨÏÞ * @param nSwitchoverKey [IN] Çл»·ÃÎÊȨÏÞʱµÄÃÜÔ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ #ifdef __APPLE__ MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice(IN void* handle, IN unsigned int nAccessMode, IN unsigned short nSwitchoverKey); #else MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice(IN void* handle, IN unsigned int nAccessMode = MV_ACCESS_Exclusive, IN unsigned short nSwitchoverKey = 0); #endif /*********************************************************************** * @fn MV_CC_CloseDevice * @brief ¹Ø±ÕÏà»ú * @param handle [IN] ¾ä±ú * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_CloseDevice(IN void* handle); /*********************************************************************** * @fn MV_CC_RegisterImageCallBackEx * @brief ×¢²áͼÏñÊý¾Ý»Øµ÷£¬chunk * @param handle [IN] ¾ä±ú * @param cbOutput [IN] »Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackEx(void* handle, void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser), void* pUser); /*********************************************************************** * @fn MV_CC_RegisterImageCallbackForRGB * @brief ×¢²áͼÏñÊý¾Ý»Øµ÷£¬RGB * @param handle [IN] ¾ä±ú * @param cbOutput [IN] »Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForRGB(void* handle, void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser), void* pUser); /*********************************************************************** * @fn MV_CC_RegisterImageCallbackForBGR * @brief ×¢²áͼÏñÊý¾Ý»Øµ÷£¬BGR * @param handle [IN] ¾ä±ú * @param cbOutput [IN] »Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForBGR(void* handle, void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser), void* pUser); /*********************************************************************** * @fn MV_CC_StartGrabbing * @brief ¿ªÊ¼È¡Á÷ * @param handle [IN] ¾ä±ú * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_StartGrabbing(IN void* handle); /*********************************************************************** * @fn MV_CC_StopGrabbing * @brief ֹͣȡÁ÷ * @param handle [IN] ¾ä±ú * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_StopGrabbing(IN void* handle); /*********************************************************************** * @fn MV_CC_GetImageForRGB * @brief »ñÈ¡Ò»Ö¡RGBÊý¾Ý£¬´Ëº¯ÊýΪ²éѯʽ»ñÈ¡£¬Ã¿´Îµ÷ÓòéѯÄÚ²¿ »º´æÓÐÎÞÊý¾Ý£¬ÓÐÊý¾ÝÔò·¶Î§Êý¾Ý£¬ÎÞÊý¾Ý·µ»Ø´íÎóÂë * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pFrameInfo [OUT] ͼÏñÐÅÏ¢½á¹¹Ìå * @param nMsec [IN] µÈ´ý³¬Ê±Ê±¼ä * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetImageForRGB(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pFrameInfo, int nMsec); /*********************************************************************** * @fn MV_CC_GetImageForBGR * @brief »ñÈ¡Ò»Ö¡BGRÊý¾Ý£¬´Ëº¯ÊýΪ²éѯʽ»ñÈ¡£¬Ã¿´Îµ÷ÓòéѯÄÚ²¿ »º´æÓÐÎÞÊý¾Ý£¬ÓÐÊý¾ÝÔò·¶Î§Êý¾Ý£¬ÎÞÊý¾Ý·µ»Ø´íÎóÂë * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pFrameInfo [OUT] ͼÏñÐÅÏ¢½á¹¹Ìå * @param nMsec [IN] µÈ´ý³¬Ê±Ê±¼ä * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetImageForBGR(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pFrameInfo, int nMsec); /*********************************************************************** * @fn MV_CC_GetOneFrameTimeout * @brief ²ÉÓó¬Ê±»úÖÆ»ñȡһ֡ͼƬ£¬SDKÄÚ²¿µÈ´ýÖ±µ½ÓÐÊý¾Ýʱ·µ»Ø£¬ ´Ë½Ó¿Ú¿ÉÒÔÔö¼ÓÈ¡Á÷ƽÎÈÐÔ£¬ÊʺÏÓÃÓÚ¶ÔƽÎÈÐÔÒªÇó½Ï¸ßµÄ³¡ºÏ * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pFrameInfo [OUT] ͼÏñÐÅÏ¢½á¹¹Ìå * @param nMsec [IN] µÈ´ý³¬Ê±Ê±¼ä * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameTimeout(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pFrameInfo, unsigned int nMsec); /*********************************************************************** * @fn MV_CC_Display * @brief ÏÔʾһ֡ͼÏñ£¬×¢²áÏÔʾ´°¿Ú£¬ÄÚ²¿×Ô¶¯ÏÔʾ * @param handle [IN] ¾ä±ú * @param hWnd [IN] ÏÔʾ´°¿Ú¾ä±ú * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_Display(IN void* handle, void* hWnd); /*********************************************************************** * @fn MV_CC_SetImageNodeNum * @brief ÉèÖÃSDKÄÚ²¿Í¼Ïñ»º´æ½Úµã¸öÊý£¬·¶Î§[1, 30]£¬ÔÚץͼǰµ÷Óà * @param handle [IN] ¾ä±ú * @param nNum [IN] »º´æ½Úµã¸öÊý * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetImageNodeNum(IN void* handle, unsigned int nNum); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void* handle, IN OUT MV_IMAGE_BASIC_INFO* pstInfo); * @brief »ñȡͼÏñ»ù±¾ÐÅÏ¢ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MV_IMAGE_BASIC_INFO* pstInfo [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úͼÏñ»ù±¾ÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ²Î¿¼ CameraParam.h ÖÐµÄ MV_IMAGE_BASIC_INFO ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void* handle, IN OUT MV_IMAGE_BASIC_INFO* pstInfo); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo(IN void* handle, IN OUT MV_CC_DEVICE_INFO* pstDevInfo); * @brief »ñÈ¡É豸ÐÅÏ¢ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MV_CC_DEVICE_INFO* pstDevInfo [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÉ豸ÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ²Î¿¼ CameraParam.h ÖÐµÄ MV_CC_DEVICE_INFO ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo(IN void * handle, IN OUT MV_CC_DEVICE_INFO* pstDevInfo); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo(IN void* handle, IN OUT MV_ALL_MATCH_INFO* pstInfo); * @brief »ñÈ¡¸÷ÖÖÀàÐ͵ÄÐÅÏ¢ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MV_ALL_MATCH_INFO* pstInfo [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú¸÷ÖÖÀàÐ͵ÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ²Î¿¼ CameraParam.h ÖÐµÄ MV_ALL_MATCH_INFO ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo(IN void* handle, IN OUT MV_ALL_MATCH_INFO* pstInfo); /************************************************************************/ /* ÉèÖúͻñÈ¡Ïà»ú²ÎÊýµÄÍòÄÜ½Ó¿Ú */ /************************************************************************/ /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle, IN const char* strKey, OUT MVCC_INTVALUE *pIntValue); * @brief »ñÈ¡IntegerÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ£¬Èç»ñÈ¡¿í¶ÈÐÅÏ¢ÔòΪ"Width" * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÊôÐԽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle,IN const char* strKey,OUT MVCC_INTVALUE *pIntValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle, IN const char* strKey, IN unsigned int nValue); * @brief ÉèÖÃIntegerÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ£¬Èç»ñÈ¡¿í¶ÈÐÅÏ¢ÔòΪ"Width" * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»úµÄÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle,IN const char* strKey,IN unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetEnumValue(IN void* handle, IN const char* strKey, OUT MVCC_ENUMVALUE *pEnumValue); * @brief »ñÈ¡EnumÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ£¬Èç»ñÈ¡ÏñËظñʽÐÅÏ¢ÔòΪ"PixelFormat" * @param MVCC_ENUMVALUE* pEnumValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÊôÐԽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetEnumValue(IN void* handle,IN const char* strKey,OUT MVCC_ENUMVALUE *pEnumValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValue(IN void* handle, IN const char* strKey, IN unsigned int nValue); * @brief ÉèÖÃEnumÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ£¬Èç»ñÈ¡ÏñËظñʽÐÅÏ¢ÔòΪ"PixelFormat" * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»úµÄÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValue(IN void* handle,IN const char* strKey,IN unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFloatValue(IN void* handle, IN const char* strKey, OUT MVCC_FLOATVALUE *pFloatValue); * @brief »ñÈ¡FloatÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * @param MVCC_FLOATVALUE *pFloatValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÊôÐԽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetFloatValue(IN void* handle,IN const char* strKey,OUT MVCC_FLOATVALUE *pFloatValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFloatValue(IN void* handle, IN const char* strKey, IN float fValue); * @brief ÉèÖÃEnumÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * float fValue [IN] ÏëÒªÉèÖõÄÏà»úµÄÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetFloatValue(IN void* handle,IN const char* strKey,IN float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBoolValue(IN void* handle, IN const char* strKey, OUT bool *pBoolValue); * @brief »ñÈ¡BooleanÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * @param bool *pBoolValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBoolValue(IN void* handle,IN const char* strKey,OUT bool *pBoolValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBoolValue(IN void* handle, IN const char* strKey, IN bool bValue); * @brief ÉèÖÃBooleanÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * bool bValue [IN] ÏëÒªÉèÖõÄÏà»úµÄÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBoolValue(IN void* handle,IN const char* strKey,IN bool bValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetStringValue(IN void* handle, IN const char* strKey, OUT MVCC_STRINGVALUE *pStringValue); * @brief »ñÈ¡StringÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * @param MVCC_STRINGVALUE *pStringValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÊôÐԽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetStringValue(IN void* handle,IN const char* strKey,OUT MVCC_STRINGVALUE *pStringValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetStringValue(IN void* handle, IN const char* strKey, IN const char * sValue); * @brief ÉèÖÃStringÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * char * sValue [IN] ÏëÒªÉèÖõÄÏà»úµÄÊôÐÔÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetStringValue(IN void* handle,IN const char* strKey,IN const char * sValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetCommandValue(IN void* handle, IN const char* strKey); * @brief ÉèÖÃCommandÐÍÊôÐÔÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param char* strKey [IN] ÊôÐÔ¼üÖµ * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetCommandValue(IN void* handle,IN const char* strKey); /************************************************************************/ /* Ïà»ú²ÎÊý»ñÈ¡ºÍÉèÖ㬴ËÄ£¿éµÄËùÓнӿڣ¬½«Öð²½·ÏÆú£¬½¨ÒéÓÃÉÏÃæµÄÍòÄܽӿڴúÌæ */ /************************************************************************/ /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñȡͼÏñ¿í¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú¿í¶ÈµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * ·µ»ØµÄpstValue½á¹¹ÌåµÄÒâÒå * unsigned int nCurValue; // ´ú±íÏà»úµ±Ç°µÄ¿í¶ÈÖµ * unsigned int nMax; // ±íʾÏà»úÔÊÐíµÄ×î´ó¿ÉÉèÖõĿí¶ÈÖµ * unsigned int nMin; // ±íʾÏà»úÔÊÐíµÄ×îС¿ÉÉèÖõĿí¶ÈÖµ * unsigned int nInc; // ±íʾÏà»úÉèÖõĿí¶ÈÔöÁ¿±ØÐëÊÇnIncµÄ±¶Êý£¬·ñÔòÎÞЧ * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ÆäËûÕûÐͽṹÌå²ÎÊýµÄ½Ó¿Ú¿É²ÎÕÕ´Ë½Ó¿Ú ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃͼÏñ¿í¶È * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»ú¿í¶ÈµÄÖµ,×¢Òâ´Ë¿í¶ÈÖµ±ØÐëÊÇMV_CC_GetWidth½Ó¿Ú·µ»ØµÄpstValueÖеÄnIncµÄ±¶Êý²ÅÄÜÉèÖóɹ¦ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú¿í¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñȡͼÏñ¸ß¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú¸ß¶ÈµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢½«¸ß¶ÈÐÅÏ¢·µ»Øµ½½á¹¹ÌåÖУ¬Ê§°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃͼÏñ¸ß¶È * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»ú¿í¶ÈµÄÖµ,×¢Òâ´Ë¿í¶ÈÖµ±ØÐëÊÇMV_CC_GetWidth½Ó¿Ú·µ»ØµÄpstValueÖеÄnIncµÄ±¶Êý²ÅÄÜÉèÖóɹ¦ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú¸ß¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñȡͼÏñXÆ«ÒÆ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úXÆ«ÒƵÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃͼÏñAOIÆ«ÒÆ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»úAOIµÄÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úAOIÆ«Òƽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñȡͼÏñYÆ«ÒÆ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úYÆ«ÒƵÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃͼÏñAOIÆ«ÒÆ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÏà»úAOIµÄÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úAOIÆ«Òƽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÆعâÏÂÏÞ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÆعâÖµÏÂÏ޽ṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÆعâÖµÏÂÏÞ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÆعâÖµÏÂÏÞ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÆعâÏÂÏÞ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÆعâÉÏÏÞ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÆعâÖµÉÏÏ޽ṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÆعâÖµÉÏÏÞ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÆعâÖµÉÏÏÞ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÆعâÉÏÏÞ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÁÁ¶ÈÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÁÁ¶È½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÁÁ¶ÈÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÁÁ¶ÈÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÁÁ¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); * @brief »ñÈ¡Ö¡ÂÊ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_FLOATVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÖ¡ÂʵÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * ·µ»ØµÄpstValue½á¹¹ÌåµÄÒâÒå * float fCurValue; // ±íʾÏà»úµ±Ç°µÄÖ¡ÂÊ * float fMax; // ±íʾÏà»úÔÊÐíÉèÖõÄ×î´óÖ¡ÂÊ * float fMin; // ±íʾÏà»úÔÊÐíÉèÖõÄ×îС֡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ÆäËû¸¡µãÐͽṹÌå²ÎÊýµÄ½Ó¿Ú¿É²ÎÕÕ´Ë½Ó¿Ú ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue); * @brief ÉèÖÃÖ¡ÂÊ * @param void* handle [IN] Ïà»ú¾ä±ú * const float fValue [IN] ÏëÒªÉèÖõÄÏà»úÖ¡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÖ¡Âʽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); * @brief »ñÈ¡ÔöÒæ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_FLOATVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÔöÒæµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * ·µ»ØµÄpstValue½á¹¹ÌåµÄÒâÒå * float fCurValue; // ±íʾÏà»úµ±Ç°µÄÖ¡ÂÊ * float fMax; // ±íʾÏà»úÔÊÐíÉèÖõÄ×î´óÖ¡ÂÊ * float fMin; // ±íʾÏà»úÔÊÐíÉèÖõÄ×îС֡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ÆäËû¸¡µãÐͽṹÌå²ÎÊýµÄ½Ó¿Ú¿É²ÎÕÕ´Ë½Ó¿Ú ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue); * @brief ÉèÖÃÖ¡ÂÊ * @param void* handle [IN] Ïà»ú¾ä±ú * const float fValue [IN] ÏëÒªÉèÖõÄÏà»úÖ¡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÖ¡Âʽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); * @brief »ñÈ¡Æعâʱ¼ä * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_FLOATVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÆعâʱ¼äµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * ·µ»ØµÄpstValue½á¹¹ÌåµÄÒâÒå * float fCurValue; // ±íʾÏà»úµ±Ç°µÄÖ¡ÂÊ * float fMax; // ±íʾÏà»úÔÊÐíÉèÖõÄ×î´óÖ¡ÂÊ * float fMin; // ±íʾÏà»úÔÊÐíÉèÖõÄ×îС֡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ÆäËû¸¡µãÐͽṹÌå²ÎÊýµÄ½Ó¿Ú¿É²ÎÕÕ´Ë½Ó¿Ú ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue); * @brief ÉèÖÃÆعâʱ¼ä * @param void* handle [IN] Ïà»ú¾ä±ú * const float fValue [IN] ÏëÒªÉèÖõÄÏà»úÖ¡ÂÊ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÖ¡Âʽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡ÏñËظñʽ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйØÏñËظñʽµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * ·µ»ØµÄpstValue½á¹¹ÌåµÄÒâÒå * unsigned int nCurValue; // Ïà»úµ±Ç°µÄÏñËظñʽ£¬ÊÇö¾ÙÀàÐÍ,±ÈÈç˵PixelType_Gvsp_Mono8, ÕâÀï»ñµÃµÄÊÇÆäÕûÐÍÖµ,¾ßÌåÊýÖµ²ÎÕÕPixelType.hµÄMvGvspPixelTypeö¾ÙÀàÐÍ * unsigned int nSupportedNum; // Ïà»úÖ§³ÖµÄÏñËظñʽµÄ¸öÊý * unsigned int nSupportValue[MV_MAX_XML_SYMBOLIC_NUM]; // Ïà»úËùÓÐÖ§³ÖµÄÏñËظñʽ¶ÔÓ¦µÄÕûÐÍÖµÁÐ±í£¬ºóÃæÒªÉèÖÃÏñËظñʽʱ£¬²ÎÊý±ØÐëÊÇÕâ¸öÊý×éÖеÄÒ»ÖÖ£¬·ñÔòÎÞЧ * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ÆäËûö¾ÙÀàÐͲÎÊý½Ó¿Ú¿É²ÎÕմ˽ӿڣ¬ÓйØÏàÓ¦²ÎÊýµÄö¾ÙÀàÐͶÔÓ¦µÄÕûÐÍÖµÇë²éÕÒPixelType.h ºÍ CameraParams.hÖÐÏàÓ¦µÄ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÏñËظñʽ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõÄÏñËظñʽ¶ÔÓ¦µÄÕûÐÍÖµ£¬µ÷Óô˽ӿÚʱ¿ÉÒÔÖ±½ÓÌîдö¾ÙÖµ£¬ÈçMV_CC_SetPixelFormat(m_handle, PixelType_Gvsp_RGB8_Packed); * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÏñËظñʽ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë * * ÒªÉèÖõÄö¾ÙÀàÐͱØÐëÊÇGet½Ó¿Ú·µ»ØµÄnSupportValue[MV_MAX_XML_SYMBOLIC_NUM]ÖеÄÒ»ÖÖ£¬·ñÔò»áʧ°Ü ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡²É¼¯Ä£Ê½ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйزɼ¯Ä£Ê½µÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_ACQUISITION_MODE ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÏñËظñʽ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõIJɼ¯Ä£Ê½¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú²É¼¯Ä£Ê½½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡ÔöÒæģʽ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйØÔöÒæģʽµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_GAIN_MODE ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÔöÒæģʽ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõÄÔöÒæģʽ¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÔöÒæģʽ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡×Ô¶¯Æعâģʽ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйØ×Ô¶¯ÆعâģʽµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_EXPOSURE_AUTO_MODE ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃ×Ô¶¯Æعâģʽ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõÄ×Ô¶¯Æعâģʽ¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú×Ô¶¯Æعâģʽ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡´¥·¢Ä£Ê½ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйش¥·¢Ä£Ê½µÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_TRIGGER_MODE ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖô¥·¢Ä£Ê½ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõĴ¥·¢Ä£Ê½¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú´¥·¢Ä£Ê½½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); * @brief »ñÈ¡´¥·¢ÑÓʱ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_FLOATVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú´¥·¢ÑÓʱµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetFrameRate ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue); * @brief ÉèÖô¥·¢ÑÓʱ * @param void* handle [IN] Ïà»ú¾ä±ú * const float fValue [IN] ÏëÒªÉèÖõÄÏà»ú´¥·¢ÑÓʱ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú´¥·¢ÑÓʱ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡´¥·¢Ô´ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйش¥·¢Ô´µÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_TRIGGER_SOURCE ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖô¥·¢Ô´ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõĴ¥·¢Ô´¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú´¥·¢Ô´½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void* handle); * @brief Èí´¥·¢Ò»´Î£¨½Ó¿Ú½öÔÚÒÑÑ¡ÔñµÄ´¥·¢Ô´ÎªÈí¼þ´¥·¢Ê±ÓÐЧ£© * @param void* handle [IN] Ïà»ú¾ä±ú * @return ³É¹¦,·µ»ØMV_OK, ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void* handle); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡GammaÀàÐÍ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйØGammaÀàÐ͵ÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_GAMMA_SELECTOR ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃGammaÀàÐÍ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõÄGammaÀàÐͶÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úGammaÀàÐͽ«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); * @brief »ñÈ¡GammaÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_FLOATVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úGammaÖµµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetFrameRate ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue); * @brief ÉèÖÃGammaÖµ * @param void* handle [IN] Ïà»ú¾ä±ú * const float fValue [IN] ÏëÒªÉèÖõÄÏà»úGammaÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úGammaÖµ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡Èñ¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÈñ¶È½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÈñ¶È * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÈñ¶È * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÈñ¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡»Ò¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú»Ò¶È½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃ»Ò¶È * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖÃµÄ»Ò¶È * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú»Ò¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡±¥ºÍ¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú±¥ºÍ¶È½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖñ¥ºÍ¶È * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõı¥ºÍ¶È * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú±¥ºÍ¶È½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); * @brief »ñÈ¡×Ô¶¯°×ƽºâ * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_ENUMVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßµÄÓйØ×Ô¶¯°×ƽºâµÄÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢»ñµÃÏàÓ¦²ÎÊýÐÅÏ¢µÄ½á¹¹Ìå, ʧ°Ü, ·µ»Ø´íÎóÂë * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetPixelFormat£¬²Î¿¼ CameraParam.h ÖÐµÄ MV_CAM_BALANCEWHITE_AUTO ¶¨Òå ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃ×Ô¶¯°×ƽºâ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÒªÉèÖõÄ×Ô¶¯°×ƽºâ¶ÔÓ¦µÄÕûÐÍÖµ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú×Ô¶¯°×ƽºâ½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡°×ƽºâ ºì * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú°×ƽºâ ºì½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖð×ƽºâ ºì * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõİ×ƽºâ ºì * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú°×ƽºâ ºì½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡°×ƽºâ ÂÌ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú°×ƽºâ Â̽ṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖð×ƽºâ ÂÌ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõİ×ƽºâ ÂÌ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú°×ƽºâ Â̽«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡°×ƽºâ À¶ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»ú°×ƽºâ À¶½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖð×ƽºâ À¶ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõİ×ƽºâ À¶ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú°×ƽºâ À¶½«»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñȡˮӡÐÅÏ¢ÄÚ°üº¬µÄÐÅÏ¢ÀàÐÍ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úˮӡÐÅÏ¢ÄÚ°üº¬µÄÐÅÏ¢ÀàÐͽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃˮӡÐÅÏ¢ÄÚ°üº¬µÄÐÅÏ¢ÀàÐÍ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄˮӡÐÅÏ¢ÄÚ°üº¬µÄÐÅÏ¢ÀàÐÍ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úˮӡÐÅÏ¢ÄÚ°üº¬µÄÐÅÏ¢ÀàÐÍ»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue); * @brief »ñÈ¡É豸×Ô¶¨ÒåÃû×Ö * @param void* handle [IN] Ïà»ú¾ä±ú * MVCC_STRINGVALUE* pstValue [IN OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÃû×ֽṹÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒ»ñÈ¡µ½Ïà»úµÄ×Ô¶¨ÒåÃû×Ö£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue); * @brief ÉèÖÃÉ豸×Ô¶¨ÒåÃû×Ö * @param void* handle [IN] Ïà»ú¾ä±ú * IN const char* chValue [IN] É豸Ãû×Ö * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÉèÖÃÉ豸×Ô¶¨ÒåÃû×Ö£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡Ò»´Î´¥·¢µÄÖ¡Êý * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÒ»´Î´¥·¢µÄÖ¡Êý½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÒ»´Î´¥·¢µÄÖ¡Êý * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÒ»´Î´¥·¢µÄÖ¡Êý * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÒ»´Î´¥·¢µÄÖ¡Êý»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÐÐƵ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÐÐƵ½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÐÐƵ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÐÐƵ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÐÐƵ»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÐÄÌøÐÅÏ¢ * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÐÄÌøÐÅÏ¢½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÐÄÌøÐÅÏ¢ * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÐÄÌøÐÅÏ¢ * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÐÄÌøÐÅÏ¢»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue); /************************************************************************/ /* É豸Éý¼¶ ºÍ ¼Ä´æÆ÷¶Áд ºÍÒì³£¡¢Ê¼þ»Øµ÷ */ /************************************************************************/ // É豸±¾µØÉý¼¶ /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_LocalUpgrade(IN void* handle, const void *pFilePathName); * @brief É豸±¾µØÉý¼¶ * @param void* handle [IN] Ïà»ú¾ä±ú * @param void *pFilePathName [IN] ÎļþÃû * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_LocalUpgrade(IN void* handle, const void *pFilePathName); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetUpgradeProcess(IN void* handle, unsigned int* pnProcess); * @brief »ñÈ¡Éý¼¶½ø¶È * @param void* handle [IN] Ïà»ú¾ä±ú * @param unsigned int* pnProcess [OUT] ½ø¶È½ÓÊÕµØÖ· * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetUpgradeProcess(IN void* handle, unsigned int* pnProcess); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetOptimalPacketSize(IN void* handle); * @brief »ñÈ¡×î¼ÑµÄpacket size£¬¶ÔÓ¦GigEVisionÉ豸ÊÇ SCPS£¬¶ÔÓ¦U3VÉ豸ÊÇÿ´Î´ÓÇý¶¯¶ÁÈ¡µÄ°ü´óС * @param void* handle [IN] Ïà»ú¾ä±ú * @return ×î¼Ñpacketsize ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetOptimalPacketSize(IN void* handle); /************************************************************************ * @fn MV_CC_ReadMemory * @brief ¶ÁÄÚ´æ * @param handle£ºÉ豸¾ä±ú * @param pBuffer£º×÷Ϊ·µ»ØֵʹÓ㬱£´æ¶Áµ½µÄÄÚ´æÖµ£¨ÄÚ´æÖµÊÇ°´ÕÕ´ó¶Ëģʽ´æ´¢µÄ£© * @param nAddress£º´ý¶ÁÈ¡µÄÄÚ´æµØÖ·£¬¸ÃµØÖ·¿ÉÒÔ´ÓÉ豸µÄCamera.xmlÎļþÖлñÈ¡£¬ÐÎÈçxxx_RegAddrµÄxml½ÚµãÖµ £¨É豸µÄCamera.xmlÎļþ»áÔÚÉ豸´ò¿ªÖ®ºó×Ô¶¯Éú³ÉÔÚÓ¦ÓóÌÐòµÄµ±Ç°Ä¿Â¼ÖУ© * @param nLength£º´ý¶ÁÈ¡µÄÄڴ泤¶È * @return ¼û·µ»Ø´íÎóÂë *************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_ReadMemory(IN void* handle , void *pBuffer, int64_t nAddress, int64_t nLength); /************************************************************************ * @fn MV_CC_WriteMemory * @brief дÄÚ´æ * @param handle£ºÉ豸¾ä±ú * @param pBuffer£º´ýдÈëµÄÄÚ´æÖµ£¨×¢ÒâÄÚ´æÖµÒª°´ÕÕ´ó¶Ëģʽ´æ´¢£© * @param nAddress£º´ýдÈëµÄÄÚ´æµØÖ·£¬¸ÃµØÖ·¿ÉÒÔ´ÓÉ豸µÄCamera.xmlÎļþÖлñÈ¡£¬ÐÎÈçxxx_RegAddrµÄxml½ÚµãÖµ £¨É豸µÄCamera.xmlÎļþ»áÔÚÉ豸´ò¿ªÖ®ºó×Ô¶¯Éú³ÉÔÚÓ¦ÓóÌÐòµÄµ±Ç°Ä¿Â¼ÖУ© * @param nLength£º´ýдÈëµÄÄڴ泤¶È * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_WriteMemory(IN void* handle , const void *pBuffer, int64_t nAddress, int64_t nLength); // ×¢²áÒì³£ÏûÏ¢»Øµ÷£¬ÔÚ´ò¿ªÉ豸֮ºóµ÷Óà /************************************************************************ * @fn MV_CC_RegisterExceptionCallBack * @brief ×¢²áÒì³£ÏûÏ¢»Øµ÷£¬ÔÚ´ò¿ªÉ豸֮ºóµ÷Óà * @param handle£ºÉ豸¾ä±ú * @param cbException [IN] Òì³£»Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterExceptionCallBack(IN void* handle, void(__stdcall* cbException)(unsigned int nMsgType, void* pUser), void* pUser); /************************************************************************ * @fn MV_CC_RegisterEventCallBack * @brief ×¢²áʼþ»Øµ÷£¬ÔÚ´ò¿ªÉ豸֮ºóµ÷ÓÃ,Ö»Ö§³ÖGIGE * @param handle£ºÉ豸¾ä±ú * @param cbEvent [IN] Òì³£»Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBack(void* handle, void(__stdcall* cbEvent)(unsigned int nExternalEventId, void* pUser), void* pUser); /************************************************************************/ /* GigEVision É豸¶ÀÓÐµÄ½Ó¿Ú */ /************************************************************************/ /************************************************************************ * @fn MV_GIGE_ForceIpEx * @brief Ç¿ÖÆIP * @param handle£ºÉ豸¾ä±ú * @param nIP [IN] ÉèÖõÄIP * @param nSubNetMask [IN] ×ÓÍøÑÚÂë * @param nDefaultGateWay [IN] ĬÈÏÍø¹Ø * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIpEx(IN void* handle, unsigned int nIP, unsigned int nSubNetMask, unsigned int nDefaultGateWay); /************************************************************************ * @fn MV_GIGE_SetIpConfig * @brief ÅäÖÃIP·½Ê½ * @param handle£ºÉ豸¾ä±ú * @param nType [IN] IPÀàÐÍ£¬¼ûMV_IP_CFG_x * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetIpConfig(IN void* handle, unsigned int nType); /************************************************************************ * @fn MV_GIGE_SetNetTransMode * @brief ÉèÖýöʹÓÃijÖÖģʽ,type: MV_NET_TRANS_x£¬²»ÉèÖÃʱ£¬Ä¬ÈÏÓÅÏÈʹÓÃdriver * @param handle£ºÉ豸¾ä±ú * @param nType [IN] ÍøÂç´«Êäģʽ£¬¼ûMV_NET_TRANS_x * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetNetTransMode(IN void* handle, unsigned int nType); /************************************************************************ * @fn MV_GIGE_GetNetTransInfo * @brief »ñÈ¡ÍøÂç´«ÊäÐÅÏ¢ * @param handle£ºÉ豸¾ä±ú * @param pstInfo [OUT] ÐÅÏ¢½á¹¹Ìå * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_GetNetTransInfo(IN void* handle, MV_NETTRANS_INFO* pstInfo); /************************************************************************ * @fn MV_GIGE_SetGvcpTimeout * @brief ÉèÖÃGVCPÃüÁʱʱ¼ä * @param handle [IN] ¾ä±úµØÖ· * @param nMillisec [IN] ³¬Ê±Ê±¼ä£¬ÒÔºÁÃëλµ¥Î»£¬·¶Î§£º0-10000 * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvcpTimeout(void* handle, unsigned int nMillisec); /************************************************************************ * @fn MV_GIGE_SetResend * @brief ÉèÖÃÊÇ·ñ´ò¿ªÖØ·¢°üÖ§³Ö£¬¼°ÖØ·¢°üÉèÖà * @param handle [IN] ¾ä±úµØÖ· * @param bEnable [IN] ÊÇ·ñÖ§³ÖÖØ·¢°ü * @param nMaxResendPercent [IN] ×î´óÖØ·¢±È * @param nResendTimeout [IN] ÖØ·¢³¬Ê±Ê±¼ä * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetResend(void* handle, unsigned int bEnable, unsigned int nMaxResendPercent = 10, unsigned int nResendTimeout = 50); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÍøÂç°ü´óС * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÍøÂç°ü´óС½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÍøÂç°ü´óС * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÍøÂç°ü´óС * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÍøÂç°ü´óС»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); * @brief »ñÈ¡ÍøÂç°ü·¢Ëͼä¸ô * @param void* handle [IN] Ïà»ú¾ä±ú * @param MVCC_INTVALUE* pstValue [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕßÓйØÏà»úÍøÂç°ü·¢Ëͼä¸ô½á¹¹ÌåÖ¸Õë * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë * * ¿É²ÎÕÕ½Ó¿ÚMV_CC_GetWidth ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue); * @brief ÉèÖÃÍøÂç°ü·¢Ëͼä¸ô * @param void* handle [IN] Ïà»ú¾ä±ú * const unsigned int nValue [IN] ÏëÒªÉèÖõÄÍøÂç°ü·¢Ëͼä¸ô * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»úÍøÂç°ü·¢Ëͼä¸ô»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP); * @brief »ñÈ¡½ÓÊÕ¶ËIPµØÖ·£¬0xa9fe0102 ±íʾ 169.254.1.2 * @param void* handle [IN] Ïà»ú¾ä±ú * @param unsigned int* pnIP [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕß½ÓÊÕ¶ËIPµØÖ· * @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP); * @brief ÉèÖýÓÊÕ¶ËIPµØÖ· * @param void* handle [IN] Ïà»ú¾ä±ú * unsigned int nIP [IN] ÏëÒªÉèÖõĽÓÊÕ¶ËIPµØÖ· * @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú½ÓÊÕ¶ËIPµØÖ·»á¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort); * @brief »ñÈ¡·¢ËͶ˵Ķ˿ںŠ* @param void* handle [IN] Ïà»ú¾ä±ú * @param unsigned int* pnPort [IN][OUT] ·µ»Ø¸øµ÷ÓÃÕß·¢ËͶ˵Ķ˿ںŠ* @return ³É¹¦,·µ»ØMV_OK,ʧ°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort); /************************************************************************ * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort); * @brief ÉèÖ÷¢ËͶ˵Ķ˿ںŠ* @param void* handle [IN] Ïà»ú¾ä±ú * unsigned int nPort [IN] ÏëÒªÉèÖõķ¢ËͶ˵Ķ˿ںŠ* @return ³É¹¦,·µ»ØMV_OK,²¢ÇÒÏà»ú·¢ËͶ˵Ķ˿ںŻá¸ü¸ÄΪÏàÓ¦Öµ£¬Ê§°Ü,·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort); /************************************************************************/ /* XML½âÎöÊ÷µÄÉú³É */ /************************************************************************/ /*********************************************************************** * @fn MV_XML_GetGenICamXML * @brief »ñÈ¡Ïà»úÊôÐÔÊ÷XML * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pnDataLen [OUT] ʵ¼ÊÊý¾Ý´óС * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_GetGenICamXML(IN void* handle, IN OUT unsigned char* pData, IN unsigned int nDataSize, OUT unsigned int* pnDataLen); /*********************************************************************** * @fn MV_XML_GetRootNode * @brief »ñÈ¡¸ù½Úµã * @param handle [IN] ¾ä±ú * @param pstNode [OUT] ¸ù½ÚµãÐÅÏ¢½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_GetRootNode(IN void* handle, IN OUT MV_XML_NODE_FEATURE* pstNode); /*********************************************************************** * @fn MV_XML_GetChildren * @brief ´ÓxmlÖлñÈ¡Ö¸¶¨½ÚµãµÄËùÓÐ×ӽڵ㣬¸ù½ÚµãΪRoot * @param handle [IN] ¾ä±ú * @param pstNode [IN] ¸ù½ÚµãÐÅÏ¢½á¹¹Ìå * @param pstNodesList [OUT] ½ÚµãÁбí½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_GetChildren(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT MV_XML_NODES_LIST* pstNodesList); /*********************************************************************** * @fn MV_XML_GetNodeFeature * @brief »ñµÃµ±Ç°½ÚµãµÄÊôÐÔ * @param handle [IN] ¾ä±ú * @param pstNode [IN] ¸ù½ÚµãÐÅÏ¢½á¹¹Ìå * @param pstFeature [OUT] µ±Ç°½ÚµãÊôÐԽṹÌ壬 pstFeature ¾ßÌå½á¹¹ÌåÄÚÈݲο¼ MV_XML_FEATURE_x * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_GetNodeFeature(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT void* pstFeature); /*********************************************************************** * @fn MV_XML_UpdateNodeFeature * @brief ¸üнڵã * @param handle [IN] ¾ä±ú * @param enType [IN] ½ÚµãÀàÐÍ * @param pstFeature [OUT] µ±Ç°½ÚµãÊôÐԽṹÌå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_UpdateNodeFeature(IN void* handle, IN enum MV_XML_InterfaceType enType, IN void* pstFeature); // ÓнڵãÐèÒª¸üÐÂʱµÄ»Øµ÷º¯Êý // µ±µ÷ÓÃMV_XML_UpdateNodeFeature½Ó¿Ú¸üнڵãÊôÐÔʱ£¬×¢²áµÄ»Øµ÷º¯ÊýcbUpdate»áÔÚpstNodesListÖзµ»ØÓëÖ®Ïà¹ØÁªµÄ½Úµã /*********************************************************************** * @fn MV_XML_RegisterUpdateCallBack * @brief ×¢²á¸üлص÷ * @param handle [IN] ¾ä±ú * @param cbUpdate [IN] »Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_XML_RegisterUpdateCallBack(IN void* handle, IN void(__stdcall* cbUpdate)(enum MV_XML_InterfaceType enType, void* pstFeature, MV_XML_NODES_LIST* pstNodesList, void* pUser), IN void* pUser); /************************************************************************/ /* ¸½¼Ó½Ó¿Ú */ /************************************************************************/ /************************************************************************ * @fn MV_CC_SaveImageEx * @brief ±£´æͼƬ£¬Ö§³ÖBmpºÍJpeg.±àÂëÖÊÁ¿ÔÚ50-99֮ǰ * @param pSaveParam [IN][OUT] ±£´æͼƬ²ÎÊý½á¹¹Ìå pData; // [IN] ÊäÈëÊý¾Ý»º´æ nDataLen; // [IN] ÊäÈëÊý¾Ý´óС enPixelType; // [IN] ÊäÈëÊý¾ÝµÄÏñËظñʽ nWidth; // [IN] ͼÏñ¿í nHeight; // [IN] ͼÏñ¸ß pImageBuffer; // [OUT] Êä³öͼƬ»º´æ nImageLen; // [OUT] Êä³öͼƬ´óС nBufferSize; // [IN] ÌṩµÄÊä³ö»º³åÇø´óС enImageType; // [IN] Êä³öͼƬ¸ñʽ nJpgQuality; // [IN] ±àÂëÖÊÁ¿, (50-99] nReserved[4]; * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx(IN OUT MV_SAVE_IMAGE_PARAM_EX* pSaveParam); /************************************************************************ * @fn MV_CC_ConvertPixelType * @brief ÏñËظñʽת»» * @param pstCvtParam [IN][OUT] ±£´æͼƬ²ÎÊý½á¹¹Ìå unsigned short nWidth; // [IN] ͼÏñ¿í unsigned short nHeight; // [IN] ͼÏñ¸ß enum MvGvspPixelType enSrcPixelType; // [IN] Ô´ÏñËظñʽ unsigned char* pSrcData; // [IN] ÊäÈëÊý¾Ý»º´æ unsigned int nSrcDataLen; // [IN] ÊäÈëÊý¾Ý´óС enum MvGvspPixelType enDstPixelType; // [IN] Ä¿±êÏñËظñʽ unsigned char* pDstBuffer; // [OUT] Êä³öÊý¾Ý»º´æ unsigned int nDstLen; // [OUT] Êä³öÊý¾Ý´óС unsigned int nDstBufferSize; // [IN] ÌṩµÄÊä³ö»º³åÇø´óС * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_ConvertPixelType(IN void* handle, IN OUT MV_CC_PIXEL_CONVERT_PARAM* pstCvtParam); /************************************************************************ * @fn MV_CC_SetBayerCvtQuality * @brief ²åÖµËã·¨ÀàÐÍÉèÖà * @param BayerCvtQuality [IN] BayerµÄ²åÖµ·½·¨ 0-×î½üÁÚ 1-Ë«ÏßÐÔ 2-Hamilton * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SetBayerCvtQuality(IN void* handle, IN unsigned int BayerCvtQuality); /************************************************************************ * @fn MV_CC_GetTlProxy * @brief »ñÈ¡GenICam´úÀí * @param handle [IN] ¾ä±úµØÖ· * @return GenICam´úÀíÀàÖ¸Õë £¬Õý³£·µ»ØÖµ·ÇNULL£»Òì³£·µ»ØNULL ************************************************************************/ MV_CAMCTRL_API void* __stdcall MV_CC_GetTlProxy(IN void* handle); /************************************************************************/ /* Ïà»úÔݲ»Ö§³ÖµÄ½Ó¿Ú */ /************************************************************************/ /************************************************************************ * @fn MV_CC_FeatureSave * @brief ±£´æÏà»úÊôÐÔ * @param handle [IN] ¾ä±úµØÖ· * @param pFileName [IN] ÊôÐÔÎļþÃû * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_FeatureSave(IN void* handle, IN const char* pFileName); /************************************************************************ * @fn MV_CC_FeatureLoad * @brief µ¼ÈëÏà»úÊôÐÔ * @param handle [IN] ¾ä±úµØÖ· * @param pFileName [IN] ÊôÐÔÎļþÃû * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_FeatureLoad(IN void* handle, IN const char* pFileName); /************************************************************************ * @fn MV_CC_UserSetParamSave * @brief ±£´æÖ¸¶¨µÄÓû§²ÎÊý×é²ÎÊý * @param handle [IN] ¾ä±úµØÖ· * @param pFileName [IN] Òª±£´æµÄÎļþÃû * @param nUsetSetId [IN] Óû§×éºÅ£º1,2,3 * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_UserSetParamSave(IN void* handle, IN const char* pFileName,unsigned int nUsetSetId); /************************************************************************ * @fn MV_CC_UserSetParamLoad * @brief ¼ÓÔØÖ¸¶¨µÄÓû§×é²ÎÊý * @param handle [IN] ¾ä±úµØÖ· * @param pFileName [IN] Òª¼ÓÔصÄÎļþÃû * @param nUsetSetId [IN] Óû§×éºÅ£º1,2,3 * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_UserSetParamLoad(IN void* handle, IN const char* pFileName,unsigned int nUsetSetId); /************************************************************************/ /* ÆúÓÃµÄ½Ó¿Ú */ /************************************************************************/ /*********************************************************************** * @fn MV_CC_GetOneFrame * @brief »ñȡһ֡ͼÏñ£¬´Ëº¯ÊýΪ²éѯʽ»ñÈ¡£¬Ã¿´Îµ÷ÓòéѯÄÚ²¿»º´æÓÐ ÎÞÊý¾Ý£¬ÓÐÊý¾ÝÔò·¶Î§Êý¾Ý£¬ÎÞÊý¾Ý·µ»Ø´íÎóÂë £¨¸Ã½Ó¿ÚÒÑÆúÓ㬽¨Òé¸ÄÓà MV_CC_GetOneFrameTimeOut½Ó¿Ú£© * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pFrameInfo [OUT] ͼÏñÐÅÏ¢½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrame(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO* pFrameInfo); /*********************************************************************** * @fn MV_CC_GetOneFrameEx * @brief »ñÈ¡Ò»Ö¡trunckÊý¾Ý£¬´Ëº¯ÊýΪ²éѯʽ»ñÈ¡£¬Ã¿´Îµ÷ÓòéѯÄÚ²¿ »º´æÓÐÎÞÊý¾Ý£¬ÓÐÊý¾ÝÔò·¶Î§Êý¾Ý£¬ÎÞÊý¾Ý·µ»Ø´íÎóÂë £¨¸Ã½Ó¿ÚÒÑÆúÓ㬽¨Òé¸ÄÓà MV_CC_GetOneFrameTimeOut½Ó¿Ú£© * @param handle [IN] ¾ä±ú * @param pData [OUT] ͼÏñÊý¾Ý½ÓÊÕÖ¸Õë * @param nDataSize [IN] ½ÓÊÕ»º´æ´óС * @param pFrameInfo [OUT] ͼÏñÐÅÏ¢½á¹¹Ìå * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameEx(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pFrameInfo); /*********************************************************************** * @fn MV_CC_RegisterImageCallBack * @brief ×¢²áͼÏñÊý¾Ý»Øµ÷£¨¸Ã½Ó¿ÚÒÑÆúÓ㬽¨Òé¸ÄÓà MV_CC_RegisterImageCallBackEx½Ó¿Ú£© * @param handle [IN] ¾ä±ú * @param cbOutput [IN] »Øµ÷º¯ÊýÖ¸Õë * @param pUser [IN] Óû§×Ô¶¨Òå±äÁ¿ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ***********************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBack(void* handle, void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO* pFrameInfo, void* pUser), void* pUser); /************************************************************************ * @fn MV_CC_SaveImage * @brief ±£´æͼƬ£¨¸Ã½Ó¿ÚÒÑÆúÓ㬽¨Òé¸ÄÓà MV_CC_SaveImageEx½Ó¿Ú£© * @param pSaveParam [IN][OUT] ±£´æͼƬ²ÎÊý½á¹¹Ìå pData; // [IN] ÊäÈëÊý¾Ý»º´æ nDataLen; // [IN] ÊäÈëÊý¾Ý´óС enPixelType; // [IN] ÊäÈëÊý¾ÝµÄÏñËظñʽ nWidth; // [IN] ͼÏñ¿í nHeight; // [IN] ͼÏñ¸ß pImageBuffer; // [OUT] Êä³öͼƬ»º´æ nImageLen; // [OUT] Êä³öͼƬ´óС nBufferSize; // [IN] ÌṩµÄÊä³ö»º³åÇø´óС enImageType; // [IN] Êä³öͼƬ¸ñʽ * @return ³É¹¦£¬·µ»ØMV_OK£»´íÎ󣬷µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_CC_SaveImage(IN OUT MV_SAVE_IMAGE_PARAM* pSaveParam); /************************************************************************ * @fn MV_GIGE_ForceIp * @brief Ç¿ÖÆIP£¨¸Ã½Ó¿ÚÒÑÆúÓ㬽¨Òé¸ÄÓà MV_GIGE_ForceIpEx½Ó¿Ú£© * @param handle£ºÉ豸¾ä±ú * @param nIP [IN] ÉèÖõÄIP * @return ¼û·µ»Ø´íÎóÂë ************************************************************************/ MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIp(IN void* handle, unsigned int nIP); #ifdef __cplusplus } #endif #endif //_MV_CAMERA_CTRL_H_