MvObsoleteInterfaces.h 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852
  1. #ifndef _MV_OBSOLETE_INTERFACES_H_
  2. #define _MV_OBSOLETE_INTERFACES_H_
  3. #include "MvErrorDefine.h"
  4. #include "CameraParams.h"
  5. #include "ObsoleteCamParams.h"
  6. /**
  7. * @brief 动态库导入导出定义
  8. * @brief Import and export definition of the dynamic library
  9. */
  10. #ifndef MV_CAMCTRL_API
  11. #if (defined (_WIN32) || defined(WIN64))
  12. #if defined(MV_CAMCTRL_EXPORTS)
  13. #define MV_CAMCTRL_API __declspec(dllexport)
  14. #else
  15. #define MV_CAMCTRL_API __declspec(dllimport)
  16. #endif
  17. #else
  18. #ifndef __stdcall
  19. #define __stdcall
  20. #endif
  21. #ifndef MV_CAMCTRL_API
  22. #define MV_CAMCTRL_API
  23. #endif
  24. #endif
  25. #endif
  26. #ifndef IN
  27. #define IN
  28. #endif
  29. #ifndef OUT
  30. #define OUT
  31. #endif
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. /************************************************************************/
  36. /* 不建议使用的接口 */
  37. /* Interfaces not recommended */
  38. /************************************************************************/
  39. /************************************************************************
  40. * @fn MV_CC_GetImageInfo
  41. * @brief 获取图像基本信息
  42. * @param handle [IN] 设备句柄
  43. * @param pstInfo [IN][OUT] 返回给调用者有关相机图像基本信息结构体指针
  44. * @return 成功,返回MV_OK,失败,返回错误码
  45. * @fn MV_CC_GetImageInfo
  46. * @brief Get basic information of image
  47. * @param handle [IN] Device handle
  48. * @param pstInfo [IN][OUT] Structure pointer of image basic information
  49. * @return Success, return MV_OK. Failure, return error code
  50. ************************************************************************/
  51. MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void* handle, IN OUT MV_IMAGE_BASIC_INFO* pstInfo);
  52. /************************************************************************
  53. * @fn MV_CC_GetTlProxy
  54. * @brief 获取GenICam代理
  55. * @param handle [IN] 句柄地址
  56. * @return GenICam代理类指针 ,正常返回值非NULL;异常返回NULL
  57. * @fn MV_CC_GetTlProxy
  58. * @brief Get GenICam proxy
  59. * @param handle [IN] Handle address
  60. * @return GenICam proxy pointer, normal, return non-NULL; exception, return NULL
  61. ************************************************************************/
  62. MV_CAMCTRL_API void* __stdcall MV_CC_GetTlProxy(IN void* handle);
  63. /***********************************************************************
  64. * @fn MV_XML_GetRootNode
  65. * @brief 获取根节点
  66. * @param handle [IN] 句柄
  67. * @param pstNode [OUT] 根节点信息结构体
  68. * @return 成功,返回MV_OK;错误,返回错误码
  69. * @fn MV_XML_GetRootNode
  70. * @brief Get root node
  71. * @param handle [IN] Handle
  72. * @param pstNode [OUT] Root node information structure
  73. * @return Success, return MV_OK. Failure, return error code
  74. ***********************************************************************/
  75. MV_CAMCTRL_API int __stdcall MV_XML_GetRootNode(IN void* handle, IN OUT MV_XML_NODE_FEATURE* pstNode);
  76. /***********************************************************************
  77. * @fn MV_XML_GetChildren
  78. * @brief 从xml中获取指定节点的所有子节点,根节点为Root
  79. * @param handle [IN] 句柄
  80. * @param pstNode [IN] 根节点信息结构体
  81. * @param pstNodesList [OUT] 节点列表结构体
  82. * @return 成功,返回MV_OK;错误,返回错误码
  83. * @fn MV_XML_GetChildren
  84. * @brief Get all children node of specific node from xml, root node is Root
  85. * @param handle [IN] Handle
  86. * @param pstNode [IN] Root node information structure
  87. * @param pstNodesList [OUT] Node information structure
  88. * @return Success, return MV_OK. Failure, return error code
  89. ***********************************************************************/
  90. MV_CAMCTRL_API int __stdcall MV_XML_GetChildren(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT MV_XML_NODES_LIST* pstNodesList);
  91. /***********************************************************************
  92. * @fn MV_XML_GetNodeFeature
  93. * @brief 获得当前节点的属性
  94. * @param handle [IN] 句柄
  95. * @param pstNode [IN] 根节点信息结构体
  96. * @param pstFeature [OUT] 当前节点属性结构体,
  97. pstFeature 具体结构体内容参考 MV_XML_FEATURE_x
  98. * @return 成功,返回MV_OK;错误,返回错误码
  99. * @fn MV_XML_GetNodeFeature
  100. * @brief Get current node feature
  101. * @param handle [IN] Handle
  102. * @param pstNode [IN] Root node information structure
  103. * @param pstFeature [OUT] Current node feature structure
  104. Details of pstFeature refer to MV_XML_FEATURE_x
  105. * @return Success, return MV_OK. Failure, return error code
  106. ***********************************************************************/
  107. MV_CAMCTRL_API int __stdcall MV_XML_GetNodeFeature(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT void* pstFeature);
  108. /***********************************************************************
  109. * @fn MV_XML_UpdateNodeFeature
  110. * @brief 更新节点
  111. * @param handle [IN] 句柄
  112. * @param enType [IN] 节点类型
  113. * @param pstFeature [OUT] 当前节点属性结构体
  114. * @return 成功,返回MV_OK;错误,返回错误码
  115. * @fn MV_XML_UpdateNodeFeature
  116. * @brief Update node
  117. * @param handle [IN] Handle
  118. * @param enType [IN] Node type
  119. * @param pstFeature [OUT] Current node feature structure
  120. * @return Success, return MV_OK. Failure, return error code
  121. ***********************************************************************/
  122. MV_CAMCTRL_API int __stdcall MV_XML_UpdateNodeFeature(IN void* handle, IN enum MV_XML_InterfaceType enType, IN void* pstFeature);
  123. // 有节点需要更新时的回调函数
  124. // 当调用MV_XML_UpdateNodeFeature接口更新节点属性时,注册的回调函数cbUpdate会在pstNodesList中返回与之相关联的节点
  125. /***********************************************************************
  126. * @fn MV_XML_RegisterUpdateCallBack
  127. * @brief 注册更新回调
  128. * @param handle [IN] 句柄
  129. * @param cbUpdate [IN] 回调函数指针
  130. * @param pUser [IN] 用户自定义变量
  131. * @return 成功,返回MV_OK;错误,返回错误码
  132. * @fn MV_XML_RegisterUpdateCallBack
  133. * @brief Register update callback
  134. * @param handle [IN] Handle
  135. * @param cbUpdate [IN] Callback function pointer
  136. * @param pUser [IN] User defined variable
  137. * @return Success, return MV_OK. Failure, return error code
  138. ***********************************************************************/
  139. MV_CAMCTRL_API int __stdcall MV_XML_RegisterUpdateCallBack(IN void* handle,
  140. IN void(__stdcall* cbUpdate)(enum MV_XML_InterfaceType enType, void* pstFeature, MV_XML_NODES_LIST* pstNodesList, void* pUser),
  141. IN void* pUser);
  142. /************************************************************************/
  143. /* 弃用的接口(存在更优化的接口可替换) */
  144. /* Abandoned interface */
  145. /************************************************************************/
  146. /***********************************************************************
  147. * @fn MV_CC_GetOneFrame
  148. * @brief 获取一帧图像,此函数为查询式获取,每次调用查询内部缓存有
  149. 无数据,有数据则范围数据,无数据返回错误码
  150. (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut接口)
  151. * @param handle [IN] 句柄
  152. * @param pData [OUT] 图像数据接收指针
  153. * @param nDataSize [IN] 接收缓存大小
  154. * @param pFrameInfo [OUT] 图像信息结构体
  155. * @return 成功,返回MV_OK;错误,返回错误码
  156. * @fn MV_CC_GetOneFrame
  157. * @brief Get one frame data, this function is using query to get data,
  158. query whether the internal cache has data, return data if there has, return error code if no data
  159. (This interface is abandoned, it is recommended to use the MV_CC_GetOneFrameTimeOut)
  160. * @param handle [IN] Handle
  161. * @param pData [OUT] Recevied image data pointer
  162. * @param nDataSize [IN] Recevied buffer size
  163. * @param pFrameInfo [OUT] Image information structure
  164. * @return Success, return MV_OK. Failure, return error code
  165. ***********************************************************************/
  166. 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);
  167. /***********************************************************************
  168. * @fn MV_CC_GetOneFrameEx
  169. * @brief 获取一帧trunck数据,此函数为查询式获取,每次调用查询内部
  170. 缓存有无数据,有数据则范围数据,无数据返回错误码
  171. (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut接口)
  172. * @param handle [IN] 句柄
  173. * @param pData [OUT] 图像数据接收指针
  174. * @param nDataSize [IN] 接收缓存大小
  175. * @param pFrameInfo [OUT] 图像信息结构体
  176. * @return 成功,返回MV_OK;错误,返回错误码
  177. * @fn MV_CC_GetOneFrameEx
  178. * @brief Get one frame of trunck data, this function is using query to get data,
  179. query whether the internal cache has data, return data if there has, return error code if no data
  180. (This interface is abandoned, it is recommended to use the MV_CC_GetOneFrameTimeOut)
  181. * @param handle [IN] Handle
  182. * @param pData [OUT] Recevied image data pointer
  183. * @param nDataSize [IN] Recevied buffer size
  184. * @param pFrameInfo [OUT] Image information structure
  185. * @return Success, return MV_OK. Failure, return error code
  186. ***********************************************************************/
  187. 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);
  188. /***********************************************************************
  189. * @fn MV_CC_RegisterImageCallBack
  190. * @brief 注册图像数据回调(该接口已弃用,建议改用 MV_CC_RegisterImageCallBackEx接口)
  191. * @param handle [IN] 句柄
  192. * @param cbOutput [IN] 回调函数指针
  193. * @param pUser [IN] 用户自定义变量
  194. * @return 成功,返回MV_OK;错误,返回错误码
  195. * @fn MV_CC_RegisterImageCallBack
  196. * @brief Register image data callback (This interface is abandoned, it is recommended to use the MV_CC_RegisterImageCallBackEx)
  197. * @param handle [IN] Handle
  198. * @param cbOutput [IN] Callback function pointer
  199. * @param pUser [IN] User defined variable
  200. * @return Success, return MV_OK. Failure, return error code
  201. ***********************************************************************/
  202. MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBack(void* handle,
  203. void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO* pFrameInfo, void* pUser),
  204. void* pUser);
  205. /************************************************************************
  206. * @fn MV_CC_SaveImage
  207. * @brief 保存图片(该接口已弃用,建议改用 MV_CC_SaveImageEx2接口)
  208. * @param pSaveParam [IN][OUT] 保存图片参数结构体
  209. pData; // [IN] 输入数据缓存
  210. nDataLen; // [IN] 输入数据大小
  211. enPixelType; // [IN] 输入数据的像素格式
  212. nWidth; // [IN] 图像宽
  213. nHeight; // [IN] 图像高
  214. pImageBuffer; // [OUT] 输出图片缓存
  215. nImageLen; // [OUT] 输出图片大小
  216. nBufferSize; // [IN] 提供的输出缓冲区大小
  217. enImageType; // [IN] 输出图片格式
  218. * @return 成功,返回MV_OK;错误,返回错误码
  219. * @fn MV_CC_SaveImage
  220. * @brief Save image (This interface is abandoned, it is recommended to use the MV_CC_SaveImageEx)
  221. * @param pSaveParam [IN][OUT] Save image parameters structure
  222. pData; // [IN] Input data buffer
  223. nDataLen; // [IN] Input data size
  224. enPixelType; // [IN] Input data pixel format
  225. nWidth; // [IN] Width
  226. nHeight; // [IN] Height
  227. pImageBuffer; // [OUT] Output image buffer
  228. nImageLen; // [OUT] Output image size
  229. nBufferSize; // [IN] Provided output buffer size
  230. enImageType; // [IN] Output image type
  231. * @return Success, return MV_OK. Failure, return error code
  232. ************************************************************************/
  233. MV_CAMCTRL_API int __stdcall MV_CC_SaveImage(IN OUT MV_SAVE_IMAGE_PARAM* pSaveParam);
  234. /************************************************************************
  235. * @fn MV_CC_SaveImageEx
  236. * @brief 保存图片,支持Bmp和Jpeg.编码质量在50-99之前 (该接口已弃用,建议改用 MV_CC_SaveImageEx2接口)
  237. * @param pSaveParam [IN][OUT] 保存图片参数结构体
  238. pData; // [IN] 输入数据缓存
  239. nDataLen; // [IN] 输入数据大小
  240. enPixelType; // [IN] 输入数据的像素格式
  241. nWidth; // [IN] 图像宽
  242. nHeight; // [IN] 图像高
  243. pImageBuffer; // [OUT] 输出图片缓存
  244. nImageLen; // [OUT] 输出图片大小
  245. nBufferSize; // [IN] 提供的输出缓冲区大小
  246. enImageType; // [IN] 输出图片格式
  247. nJpgQuality; // [IN] 编码质量, (50-99]
  248. nReserved[4];
  249. * @return 成功,返回MV_OK;错误,返回错误码
  250. * @fn MV_CC_SaveImageEx
  251. * @brief Save image, support Bmp and Jpeg. Encoding quality, (50-99]
  252. * @param pSaveParam [IN][OUT] Save image parameters structure
  253. pData; // [IN] Input data buffer
  254. nDataLen; // [IN] Input data size
  255. enPixelType; // [IN] Pixel format of input data
  256. nWidth; // [IN] Image width
  257. nHeight; // [IN] Image height
  258. pImageBuffer; // [OUT] Output image buffer
  259. nImageLen; // [OUT] Output image size
  260. nBufferSize; // [IN] Output buffer size provided
  261. enImageType; // [IN] Output image format
  262. nJpgQuality; // [IN] Encoding quality, (50-99]
  263. nReserved[4];
  264. * @return Success, return MV_OK. Failure, return error code
  265. ************************************************************************/
  266. MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx(IN OUT MV_SAVE_IMAGE_PARAM_EX* pSaveParam);
  267. /********************************************************************//**
  268. * @~chinese
  269. * @brief Bayer噪声估计(该接口已弃用,建议改用ISP Tool方式进行标定)
  270. * @param handle [IN] 设备句柄
  271. * @param pstNoiseEstimateParam [IN][OUT] Bayer噪声估计参数结构体
  272. * @return 成功,返回MV_OK;错误,返回错误码
  273. * @remarks 该接口只支持Bayer8/Bayer10/Bayer12格式,其它Bayer格式需先转成Bayer8/Bayer10/Bayer12格式。\n
  274. 该接口只有在打开我司特定彩色相机后才可以正常使用,当相机被断开或者掉线后,继续使用该接口会报错。
  275. * @~english
  276. * @brief Noise estimate of Bayer format
  277. * @param handle [IN] Device handle
  278. * @param pstNoiseEstimateParam [IN][OUT] Noise estimate parameter structure
  279. * @return Success, return MV_OK. Failure, return error code
  280. * @remarks This API only support Bayer8/Bayer10/Bayer12 format, other Bayer format must Convert to Bayer8/Bayer10/Bayer12 format.\n
  281. This API is only available when the camera is turned on, and when the camera is disconnected or disconnected, continuing to use This API will return an error.
  282. ************************************************************************/
  283. MV_CAMCTRL_API int __stdcall MV_CC_BayerNoiseEstimate(IN void* handle, IN OUT MV_CC_BAYER_NOISE_ESTIMATE_PARAM* pstNoiseEstimateParam);
  284. /********************************************************************//**
  285. * @~chinese
  286. * @brief Bayer空域降噪(该接口已弃用,建议改用ISP Tool方式进行降噪)
  287. * @param handle [IN] 设备句柄
  288. * @param pstSpatialDenoiseParam [IN][OUT] Bayer空域降噪参数结构体
  289. * @return 成功,返回MV_OK;错误,返回错误码
  290. * @remarks 该接口只支持Bayer8/Bayer10/Bayer12格式,其它Bayer格式需先转成Bayer8/Bayer10/Bayer12格式。\n
  291. 该接口只有在打开我司特定彩色相机后才可以正常使用,当相机被断开或者掉线后,继续使用该接口会报错。
  292. * @~english
  293. * @brief Spatial Denoise of Bayer format
  294. * @param handle [IN] Device handle
  295. * @param pstSpatialDenoiseParam [IN][OUT] Spatial Denoise parameter structure
  296. * @return Success, return MV_OK. Failure, return error code
  297. * @remarks This API only support Bayer8/Bayer10/Bayer12 format, other Bayer format must Convert to Bayer8/Bayer10/Bayer12 format.\n
  298. This API is only available when the camera is turned on, and when the camera is disconnected or disconnected, continuing to use This API will return an error.
  299. ************************************************************************/
  300. MV_CAMCTRL_API int __stdcall MV_CC_BayerSpatialDenoise(IN void* handle, IN OUT MV_CC_BAYER_SPATIAL_DENOISE_PARAM* pstSpatialDenoiseParam);
  301. /********************************************************************//**
  302. * @~chinese
  303. * @brief 设置Bayer格式的CLUT使能和信息(该接口已弃用,建议改用ISP Tool方式进行设置)
  304. * @param handle [IN] 设备句柄
  305. * @param pstCLUTParam [IN] CLUT参数
  306. * @return 成功,返回MV_OK;错误,返回错误码
  307. * @remarks 开启CLUT并设置CLUT信息后,在调用MV_CC_ConvertPixelType、MV_CC_SaveImageEx2接口将Bayer8/10/12/16格式转成RGB24/48, RGBA32/64,BGR24/48,BGRA32/64时起效。
  308. * @~english
  309. * @brief Set CLUT param
  310. * @param handle [IN] Device handle
  311. * @param pstCLUTParam [IN] CLUT parameter structure
  312. * @return Success, return MV_OK. Failure, return error code
  313. * @remarks After enable the CLUT and set CLUT, It work in the calling MV_CC_ConvertPixelType\MV_CC_SaveImageEx2 API convert Bayer8/10/12/16 to RGB24/48, RGBA32/64,BGR24/48,BGRA32/64.
  314. ************************************************************************/
  315. MV_CAMCTRL_API int __stdcall MV_CC_SetBayerCLUTParam(IN void* handle, IN MV_CC_CLUT_PARAM* pstCLUTParam);
  316. /********************************************************************//**
  317. * @~chinese
  318. * @brief 图像对比度调节(该接口已弃用,建议改用ISP Tool方式进行调节)
  319. * @param handle [IN] 设备句柄
  320. * @param pstContrastParam [IN] 对比度调节参数
  321. * @return 成功,返回MV_OK;错误,返回错误码
  322. * @~english
  323. * @brief Adjust image contrast
  324. * @param handle [IN] Device handle
  325. * @param pstContrastParam [IN] Contrast parameter structure
  326. * @return Success, return MV_OK. Failure, return error code
  327. ************************************************************************/
  328. MV_CAMCTRL_API int __stdcall MV_CC_ImageContrast(IN void* handle, IN OUT MV_CC_CONTRAST_PARAM* pstContrastParam);
  329. /********************************************************************//**
  330. * @~chinese
  331. * @brief 图像锐化(该接口已弃用,建议改用ISP Tool方式进行锐化)
  332. * @param handle [IN] 设备句柄
  333. * @param pstSharpenParam [IN] 锐化参数
  334. * @return 成功,返回MV_OK;错误,返回错误码
  335. * @~english
  336. * @brief Image sharpen
  337. * @param handle [IN] Device handle
  338. * @param pstSharpenParam [IN] Sharpen parameter structure
  339. * @return Success, return MV_OK. Failure, return error code
  340. ************************************************************************/
  341. MV_CAMCTRL_API int __stdcall MV_CC_ImageSharpen(IN void* handle, IN OUT MV_CC_SHARPEN_PARAM* pstSharpenParam);
  342. /********************************************************************//**
  343. * @~chinese
  344. * @brief 色彩校正(包括CCM和CLUT)(该接口已弃用,建议改用ISP Tool方式进行校正)
  345. * @param handle [IN] 设备句柄
  346. * @param pstColorCorrectParam [IN] 色彩校正参数
  347. * @return 成功,返回MV_OK;错误,返回错误码
  348. * @remarks 该接口支持单独CCM或者CLUT,也支持同时进行CCM和CLUT,用户可以通过CCM和CLUT信息中的使能开关进行选择。
  349. * @~english
  350. * @brief Color Correct(include CCM and CLUT)
  351. * @param handle [IN] Device handle
  352. * @param pstColorCorrectParam [IN] Color Correct parameter structure
  353. * @return Success, return MV_OK. Failure, return error code
  354. * @remarks This API supports CCM or CLUT alone, as well as CCM and CLUT at the same time. The user can select by means of the enable switch in CCM and CLUT information.
  355. ************************************************************************/
  356. MV_CAMCTRL_API int __stdcall MV_CC_ColorCorrect(IN void* handle, IN OUT MV_CC_COLOR_CORRECT_PARAM* pstColorCorrectParam);
  357. /********************************************************************//**
  358. * @~chinese
  359. * @brief 噪声估计(该接口已弃用,建议改用ISP Tool方式进行标定)
  360. * @param handle [IN] 设备句柄
  361. * @param pstNoiseEstimateParam [IN] 噪声估计参数
  362. * @return 成功,返回MV_OK;错误,返回错误码
  363. * @remarks 如果用户选择全图做噪声估计,nROINum可输入0,pstROIRect可置空。
  364. * @~english
  365. * @brief Noise Estimate
  366. * @param handle [IN] Device handle
  367. * @param pstNoiseEstimateParam [IN] Noise Estimate parameter structure
  368. * @return Success, return MV_OK. Failure, return error code
  369. * @remarks If the user selects the full image, nROINum can be typed with 0 and pstROIRect empty.
  370. ************************************************************************/
  371. MV_CAMCTRL_API int __stdcall MV_CC_NoiseEstimate(IN void* handle, IN OUT MV_CC_NOISE_ESTIMATE_PARAM* pstNoiseEstimateParam);
  372. /********************************************************************//**
  373. * @~chinese
  374. * @brief 空域降噪(该接口已弃用,建议改用ISP Tool方式进行降噪)
  375. * @param handle [IN] 设备句柄
  376. * @param pstSpatialDenoiseParam [IN] 空域降噪参数
  377. * @return 成功,返回MV_OK;错误,返回错误码
  378. * @~english
  379. * @brief Spatial Denoise
  380. * @param handle [IN] Device handle
  381. * @param pstSpatialDenoiseParam [IN] Spatial Denoise parameter structure
  382. * @return Success, return MV_OK. Failure, return error code
  383. ************************************************************************/
  384. MV_CAMCTRL_API int __stdcall MV_CC_SpatialDenoise(IN void* handle, IN OUT MV_CC_SPATIAL_DENOISE_PARAM* pstSpatialDenoiseParam);
  385. /********************************************************************//**
  386. * @~chinese
  387. * @brief LSC标定
  388. * @param handle [IN] 设备句柄
  389. * @param pstLSCCalibParam [IN] 标定参数
  390. * @return 成功,返回MV_OK;错误,返回错误码
  391. * @~english
  392. * @brief LSC Calib
  393. * @param handle [IN] Device handle
  394. * @param pstLSCCalibParam [IN] LSC Calib parameter structure
  395. * @return Success, return MV_OK. Failure, return error code
  396. ************************************************************************/
  397. MV_CAMCTRL_API int __stdcall MV_CC_LSCCalib(IN void* handle, IN OUT MV_CC_LSC_CALIB_PARAM* pstLSCCalibParam);
  398. /********************************************************************//**
  399. * @~chinese
  400. * @brief LSC校正
  401. * @param handle [IN] 设备句柄
  402. * @param pstLSCCorrectParam [IN] 校正参数
  403. * @return 成功,返回MV_OK;错误,返回错误码
  404. * @~english
  405. * @brief LSC Correct
  406. * @param handle [IN] Device handle
  407. * @param pstLSCCorrectParam [IN] LSC Correct parameter structure
  408. * @return Success, return MV_OK. Failure, return error code
  409. ************************************************************************/
  410. MV_CAMCTRL_API int __stdcall MV_CC_LSCCorrect(IN void* handle, IN OUT MV_CC_LSC_CORRECT_PARAM* pstLSCCorrectParam);
  411. /************************************************************************
  412. * @fn MV_GIGE_ForceIp
  413. * @brief 强制IP(该接口已弃用,建议改用 MV_GIGE_ForceIpEx接口)
  414. * @param handle:设备句柄
  415. * @param nIP [IN] 设置的IP
  416. * @return 见返回错误码
  417. * @fn MV_GIGE_ForceIp
  418. * @brief Force IP (This interface is abandoned, it is recommended to use the MV_GIGE_ForceIpEx)
  419. * @param handle Handle
  420. * @param nIP [IN] IP to set
  421. * @return Refer to error code
  422. ************************************************************************/
  423. MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIp(IN void* handle, unsigned int nIP);
  424. /************************************************************************
  425. * @fn MV_CC_RegisterEventCallBack
  426. * @brief 注册事件回调(该接口已弃用,建议改用 MV_CC_RegisterEventCallBackEx接口)
  427. * @param handle:设备句柄
  428. * @param cbEvent [IN] 事件回调函数指针
  429. * @param pUser [IN] 用户自定义变量
  430. * @return 见返回错误码
  431. * @fn MV_CC_RegisterEventCallBack
  432. * @brief Register event callback (this interface has been deprecated and is recommended to be converted to the MV_CC_RegisterEventCallBackEx interface)
  433. * @param handle:设备句柄
  434. * @param cbEvent [IN] event callback pointer
  435. * @param pUser [IN] User defined value
  436. * @return 见返回错误码
  437. ************************************************************************/
  438. MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBack(void* handle, void(__stdcall* cbEvent)(unsigned int nExternalEventId, void* pUser), void* pUser);
  439. /***********************************************************************
  440. * @fn MV_CC_Display
  441. * @brief 显示图像,注册显示窗口,内部自动显示(与MV_CC_GetImageBuffer不能同时使用,建议改用MV_CC_DisplayOneFrame接口)
  442. * @param handle [IN] 句柄
  443. * @param hWnd [IN] 显示窗口句柄
  444. * @return 成功,返回MV_OK;错误,返回错误码
  445. * @fn MV_CC_Display
  446. * @brief Display one frame image, register display window, automatic display internally
  447. * @param handle [IN] Handle
  448. * @param hWnd [IN] Display Window Handle
  449. * @return Success, return MV_OK. Failure, return error code
  450. ***********************************************************************/
  451. MV_CAMCTRL_API int __stdcall MV_CC_Display(IN void* handle, void* hWnd);
  452. /************************************************************************
  453. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle,
  454. IN const char* strKey,
  455. OUT MVCC_INTVALUE *pIntValue);
  456. * @brief 获取Integer属性值(建议改用MV_CC_GetIntValueEx接口)
  457. * @param void* handle [IN] 相机句柄
  458. * @param char* strKey [IN] 属性键值,如获取宽度信息则为"Width"
  459. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机属性结构体指针
  460. * @return 成功,返回MV_OK,失败,返回错误码
  461. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle,
  462. IN const char* strKey,
  463. OUT MVCC_INTVALUE *pIntValue);
  464. * @brief Get Integer value
  465. * @param void* handle [IN] Handle
  466. * @param char* strKey [IN] Key value, for example, using "Width" to get width
  467. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of camera features
  468. * @return Success, return MV_OK. Failure, return error code
  469. ************************************************************************/
  470. MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle,IN const char* strKey,OUT MVCC_INTVALUE *pIntValue);
  471. /************************************************************************
  472. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle,
  473. IN const char* strKey,
  474. IN unsigned int nValue);
  475. * @brief 设置Integer型属性值(建议改用MV_CC_SetIntValueEx接口)
  476. * @param void* handle [IN] 相机句柄
  477. * @param char* strKey [IN] 属性键值,如获取宽度信息则为"Width"
  478. * const unsigned int nValue [IN] 想要设置的相机的属性值
  479. * @return 成功,返回MV_OK,失败,返回错误码
  480. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle,
  481. IN const char* strKey,
  482. IN unsigned int nValue);
  483. * @brief Set Integer value
  484. * @param void* handle [IN] Handle
  485. * @param char* strKey [IN] Key value, for example, using "Width" to set width
  486. * const unsigned int nValue [IN] Feature value to set
  487. * @return Success, return MV_OK. Failure, return error code
  488. ************************************************************************/
  489. MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle,IN const char* strKey,IN unsigned int nValue);
  490. /************************************************************************/
  491. /* 相机参数获取和设置,此模块的所有接口已废弃,建议使用万能接口代替 */
  492. /* Get and set camara parameters, all interfaces of this module will be replaced by general interface*/
  493. /************************************************************************/
  494. /************************************************************************
  495. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  496. * @brief 获取图像宽度
  497. * @param void* handle [IN] 相机句柄
  498. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机宽度的信息结构体指针
  499. * 返回的pstValue结构体的意义
  500. * unsigned int nCurValue; // 代表相机当前的宽度值
  501. * unsigned int nMax; // 表示相机允许的最大可设置的宽度值
  502. * unsigned int nMin; // 表示相机允许的最小可设置的宽度值
  503. * unsigned int nInc; // 表示相机设置的宽度增量必须是nInc的倍数,否则无效
  504. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  505. *
  506. * 其他整型结构体参数的接口可参照此接口
  507. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  508. * @brief Get image width
  509. * @param void* handle [IN] Camera Handle
  510. * MVCC_INTVALUE* pstValue [IN][OUT] Returns the information structure pointer about the camera's width for the caller
  511. * The meaning of returns pstValue structure
  512. * unsigned int nCurValue; // Represents the current width value of the camera
  513. * unsigned int nMax; // Indicates the maximum settable width value allowed by the camera
  514. * unsigned int nMin; // Indicates the minimum settable width value allowed by the camera
  515. * unsigned int nInc; // Indicates that the width increment set by the camera must be a multiple of nInc, otherwise it is invalid
  516. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  517. *
  518. * Other Integer structure parameters interface can refer to this interface
  519. ************************************************************************/
  520. MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  521. /************************************************************************
  522. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue);
  523. * @brief 设置图像宽度
  524. * @param void* handle [IN] 相机句柄
  525. * const unsigned int nValue [IN] 想要设置的相机宽度的值,注意此宽度值必须是MV_CC_GetWidth接口返回的pstValue中的nInc的倍数才能设置成功
  526. * @return 成功,返回MV_OK,并且相机宽度将会更改为相应值,失败,返回错误码
  527. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue);
  528. * @brief Set image width
  529. * @param void* handle [IN] Camera Handle
  530. * const unsigned int nValue [IN] To set the value of the camera width, note that the width value must be a multiple of nInc in the pstValue returned by the MV_CC_GetWidth interface
  531. * @return Success, return MV_OK, and the camera width will change to the corresponding value. Failure, return error code
  532. ************************************************************************/
  533. MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue);
  534. /************************************************************************
  535. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  536. * @brief 获取图像高度
  537. * @param void* handle [IN] 相机句柄
  538. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机高度的信息结构体指针
  539. * @return 成功,返回MV_OK,并将高度信息返回到结构体中,失败,返回错误码
  540. *
  541. * 可参照接口MV_CC_GetWidth
  542. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  543. * @brief Get image height
  544. * @param void* handle [IN] Camera handle
  545. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera height to user
  546. * @return Success, return MV_OK, and return height information to the structure. Failure, return error code
  547. *
  548. * Refer to MV_CC_GetWidth
  549. ************************************************************************/
  550. MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  551. /************************************************************************
  552. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue);
  553. * @brief 设置图像高度
  554. * @param void* handle [IN] 相机句柄
  555. * const unsigned int nValue [IN] 想要设置的相机宽度的值,注意此宽度值必须是MV_CC_GetWidth接口返回的pstValue中的nInc的倍数才能设置成功
  556. * @return 成功,返回MV_OK,并且相机高度将会更改为相应值,失败,返回错误码
  557. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue);
  558. * @brief Set image height
  559. * @param void* handle [IN] Camera Handle
  560. * const unsigned int nValue [IN] Camera height value to set, note that this value must be times of nInc of pstValue returned by MV_CC_GetWidth
  561. * @return Success, return MV_OK, and the camera height will change to the corresponding value. Failure, return error code
  562. ************************************************************************/
  563. MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue);
  564. /************************************************************************
  565. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  566. * @brief 获取图像X偏移
  567. * @param void* handle [IN] 相机句柄
  568. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机X偏移的信息结构体指针
  569. * @return 成功,返回MV_OK,失败,返回错误码
  570. *
  571. * 可参照接口MV_CC_GetWidth
  572. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  573. * @brief Get image X offset
  574. * @param void* handle [IN] Camera Handle
  575. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera X offset to user
  576. * @return Success, return MV_OK. Failure, return error code
  577. *
  578. * Refer to MV_CC_GetWidth
  579. ************************************************************************/
  580. MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  581. /************************************************************************
  582. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue);
  583. * @brief 设置图像AOI偏移
  584. * @param void* handle [IN] 相机句柄
  585. * const unsigned int nValue [IN] 想要设置的相机AOI的值
  586. * @return 成功,返回MV_OK,并且相机AOI偏移将会更改为相应值,失败,返回错误码
  587. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue);
  588. * @brief Set image X offset
  589. * @param void* handle [IN] Camera Handle
  590. * const unsigned int nValue [IN] Camera X offset value to set
  591. * @return Success, return MV_OK, and the camera X offset will change to the corresponding value. Failure, return error code
  592. ************************************************************************/
  593. MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue);
  594. /************************************************************************
  595. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  596. * @brief 获取图像Y偏移
  597. * @param void* handle [IN] 相机句柄
  598. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机Y偏移的信息结构体指针
  599. * @return 成功,返回MV_OK,失败,返回错误码
  600. *
  601. * 可参照接口MV_CC_GetWidth
  602. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  603. * @brief Get image Y offset
  604. * @param void* handle [IN] Camera Handle
  605. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera Y offset to user
  606. * @return Success, return MV_OK. Failure, return error code
  607. *
  608. * Refer to MV_CC_GetWidth
  609. ************************************************************************/
  610. MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  611. /************************************************************************
  612. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue);
  613. * @brief 设置图像AOI偏移
  614. * @param void* handle [IN] 相机句柄
  615. * const unsigned int nValue [IN] 想要设置的相机AOI的值
  616. * @return 成功,返回MV_OK,并且相机AOI偏移将会更改为相应值,失败,返回错误码
  617. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void* handle, IN const unsigned int nValue);
  618. * @brief Set image Y offset
  619. * @param void* handle [IN] Camera Handle
  620. * const unsigned int nValue [IN] Camera Y offset value to set
  621. * @return Success, return MV_OK, and the camera Y offset will change to the corresponding value. Failure, return error code
  622. ************************************************************************/
  623. MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void* handle, IN const unsigned int nValue);
  624. /************************************************************************
  625. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  626. * @brief 获取曝光下限
  627. * @param void* handle [IN] 相机句柄
  628. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机曝光值下限结构体指针
  629. * @return 成功,返回MV_OK,失败,返回错误码
  630. *
  631. * 可参照接口MV_CC_GetWidth
  632. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  633. * @brief Get exposure lower limit
  634. * @param void* handle [IN] Camera Handle
  635. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera exposure lower to user
  636. * @return Success, return MV_OK. Failure, return error code
  637. *
  638. * Refer to MV_CC_GetWidth
  639. ************************************************************************/
  640. MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  641. /************************************************************************
  642. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue);
  643. * @brief 设置曝光值下限
  644. * @param void* handle [IN] 相机句柄
  645. * const unsigned int nValue [IN] 想要设置的曝光值下限
  646. * @return 成功,返回MV_OK,并且相机曝光下限将会更改为相应值,失败,返回错误码
  647. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue);
  648. * @brief Set exposure lower limit
  649. * @param void* handle [IN] Camera Handle
  650. * const unsigned int nValue [IN] Exposure lower to set
  651. * @return Success, return MV_OK, and the camera exposure time lower limit value will change to the corresponding value. Failure, return error code
  652. ************************************************************************/
  653. MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue);
  654. /************************************************************************
  655. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  656. * @brief 获取曝光上限
  657. * @param void* handle [IN] 相机句柄
  658. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机曝光值上限结构体指针
  659. * @return 成功,返回MV_OK,失败,返回错误码
  660. *
  661. * 可参照接口MV_CC_GetWidth
  662. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  663. * @brief Get exposure upper limit
  664. * @param void* handle [IN] Camera Handle
  665. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera exposure upper to user
  666. * @return Success, return MV_OK. Failure, return error code
  667. *
  668. * Refer to MV_CC_GetWidth
  669. ************************************************************************/
  670. MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  671. /************************************************************************
  672. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue);
  673. * @brief 设置曝光值上限
  674. * @param void* handle [IN] 相机句柄
  675. * const unsigned int nValue [IN] 想要设置的曝光值上限
  676. * @return 成功,返回MV_OK,并且相机曝光上限将会更改为相应值,失败,返回错误码
  677. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue);
  678. * @brief Set exposure upper limit
  679. * @param void* handle [IN] Camera Handle
  680. * const unsigned int nValue [IN] Exposure upper to set
  681. * @return Success, return MV_OK, and the camera exposure time upper limit value will change to the corresponding value. Failure, return error code
  682. ************************************************************************/
  683. MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue);
  684. /************************************************************************
  685. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  686. * @brief 获取亮度值
  687. * @param void* handle [IN] 相机句柄
  688. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机亮度结构体指针
  689. * @return 成功,返回MV_OK,失败,返回错误码
  690. *
  691. * 可参照接口MV_CC_GetWidth
  692. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  693. * @brief Get brightness
  694. * @param void* handle [IN] Camera Handle
  695. * @param MVCC_INTVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera brightness to user
  696. * @return Success, return MV_OK. Failure, return error code
  697. *
  698. * Refer to MV_CC_GetWidth
  699. ************************************************************************/
  700. MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  701. /************************************************************************
  702. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue);
  703. * @brief 设置亮度值
  704. * @param void* handle [IN] 相机句柄
  705. * const unsigned int nValue [IN] 想要设置的亮度值
  706. * @return 成功,返回MV_OK,并且相机亮度将会更改为相应值,失败,返回错误码
  707. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue);
  708. * @brief Set brightness
  709. * @param void* handle [IN] Camera Handle
  710. * const unsigned int nValue [IN] Brightness upper to set
  711. * @return Success, return MV_OK, and the camera brightness value will change to the corresponding value. Failure, return error code
  712. ************************************************************************/
  713. MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue);
  714. /************************************************************************
  715. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  716. * @brief 获取帧率
  717. * @param void* handle [IN] 相机句柄
  718. * MVCC_FLOATVALUE* pstValue [IN][OUT] 返回给调用者有关相机帧率的信息结构体指针
  719. * 返回的pstValue结构体的意义
  720. * float fCurValue; // 表示相机当前的帧率
  721. * float fMax; // 表示相机允许设置的最大帧率
  722. * float fMin; // 表示相机允许设置的最小帧率
  723. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  724. *
  725. * 其他浮点型结构体参数的接口可参照此接口
  726. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  727. * @brief Get Frame Rate
  728. * @param void* handle [IN] Camera Handle
  729. * MVCC_FLOATVALUE* pstValue [IN][OUT] Return pointer of information structure related to camera frame rate to user
  730. * The meaning of returns pstValue structure
  731. * float fCurValue; // Indicates the current frame rate of the camera
  732. * float fMax; // Indicates the maximum frame rate allowed by the camera
  733. * float fMin; // Indicates the minimum frame rate allowed by the camera
  734. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  735. *
  736. * Other interface of Float structure parameters can refer to this interface
  737. ************************************************************************/
  738. MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  739. /************************************************************************
  740. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue);
  741. * @brief 设置帧率
  742. * @param void* handle [IN] 相机句柄
  743. * const float fValue [IN] 想要设置的相机帧率
  744. * @return 成功,返回MV_OK,并且相机帧率将会更改为相应值,失败,返回错误码
  745. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue);
  746. * @brief Set frame rate
  747. * @param void* handle [IN] Camera Handle
  748. * const float fValue [IN] Camera frame rate to set
  749. * @return Success, return MV_OK, and camera frame rate will be changed to the corresponding value. Failure, return error code
  750. ************************************************************************/
  751. MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue);
  752. /************************************************************************
  753. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  754. * @brief 获取增益
  755. * @param void* handle [IN] 相机句柄
  756. * MVCC_FLOATVALUE* pstValue [IN][OUT] 返回给调用者有关相机增益的信息结构体指针
  757. * 返回的pstValue结构体的意义
  758. * float fCurValue; // 表示相机当前的帧率
  759. * float fMax; // 表示相机允许设置的最大帧率
  760. * float fMin; // 表示相机允许设置的最小帧率
  761. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  762. *
  763. * 其他浮点型结构体参数的接口可参照此接口
  764. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  765. * @brief Get Gain
  766. * @param void* handle [IN] Camera Handle
  767. * MVCC_FLOATVALUE* pstValue [IN][OUT] Return pointer of information structure related to gain to user
  768. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  769. * float fCurValue; // Camera current gain
  770. * float fMax; // The maximum gain camera allowed
  771. * float fMin; // The minimum gain camera allowed
  772. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  773. *
  774. * Other interface of Float structure parameters can refer to this interface
  775. ************************************************************************/
  776. MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  777. /************************************************************************
  778. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue);
  779. * @brief 设置帧率
  780. * @param void* handle [IN] 相机句柄
  781. * const float fValue [IN] 想要设置的相机帧率
  782. * @return 成功,返回MV_OK,并且相机帧率将会更改为相应值,失败,返回错误码
  783. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue);
  784. * @brief Set Gain
  785. * @param void* handle [IN] Camera Handle
  786. * const float fValue [IN] Gain value to set
  787. * @return Success, return MV_OK, and the camera gain value will change to the corresponding value. Failure, return error code
  788. ************************************************************************/
  789. MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue);
  790. /************************************************************************
  791. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  792. * @brief 获取曝光时间
  793. * @param void* handle [IN] 相机句柄
  794. * MVCC_FLOATVALUE* pstValue [IN][OUT] 返回给调用者有关相机曝光时间的信息结构体指针
  795. * 返回的pstValue结构体的意义
  796. * float fCurValue; // 表示相机当前的帧率
  797. * float fMax; // 表示相机允许设置的最大帧率
  798. * float fMin; // 表示相机允许设置的最小帧率
  799. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  800. *
  801. * 其他浮点型结构体参数的接口可参照此接口
  802. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  803. * @brief Get exposure time
  804. * @param void* handle [IN] Camera Handle
  805. * MVCC_FLOATVALUE* pstValue [IN][OUT] Return pointer of information structure related to exposure time to user
  806. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  807. * float fCurValue; // Camera current exposure time
  808. * float fMax; // The maximum exposure time camera allowed
  809. * float fMin; // The minimum exposure time camera allowed
  810. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  811. *
  812. * Other interface of Float structure parameters can refer to this interface
  813. ************************************************************************/
  814. MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  815. /************************************************************************
  816. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue);
  817. * @brief 设置曝光时间
  818. * @param void* handle [IN] 相机句柄
  819. * const float fValue [IN] 想要设置的相机帧率
  820. * @return 成功,返回MV_OK,并且相机帧率将会更改为相应值,失败,返回错误码
  821. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue);
  822. * @brief Set exposure time
  823. * @param void* handle [IN] Camera Handle
  824. * const float fValue [IN] Exposure time to set
  825. * @return Success, return MV_OK, and the camera exposure time value will change to the corresponding value. Failure, return error code
  826. ************************************************************************/
  827. MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue);
  828. /************************************************************************
  829. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  830. * @brief 获取像素格式
  831. * @param void* handle [IN] 相机句柄
  832. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关像素格式的信息结构体指针
  833. * 返回的pstValue结构体的意义
  834. * unsigned int nCurValue; // 相机当前的像素格式,是枚举类型,比如说PixelType_Gvsp_Mono8, 这里获得的是其整型值,具体数值参照PixelType.h的MvGvspPixelType枚举类型
  835. * unsigned int nSupportedNum; // 相机支持的像素格式的个数
  836. * unsigned int nSupportValue[MV_MAX_XML_SYMBOLIC_NUM]; // 相机所有支持的像素格式对应的整型值列表,后面要设置像素格式时,参数必须是这个数组中的一种,否则无效
  837. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  838. *
  839. 其他枚举类型参数接口可参照此接口,有关相应参数的枚举类型对应的整型值请查找PixelType.h 和 CameraParams.h中相应的定义
  840. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  841. * @brief Get Pixel Format
  842. * @param void* handle [IN] Camera Handle
  843. * MVCC_ENUMVALUE* pstValue [IN][OUT] Returns the information structure pointer about pixel format for the caller
  844. * The meaning of returns pstValue structure
  845. * unsigned int nCurValue; // The current pixel format of the camera, is the enumeration type, such as PixelType_Gvsp_Mono8, here is the integer value, the specific value please refer to MvGvspPixelType enumeration type in PixelType.h
  846. * unsigned int nSupportedNum; // Number of pixel formats supported by the camera
  847. * unsigned int nSupportValue[MV_MAX_XML_SYMBOLIC_NUM]; // The integer values list correspond to all supported pixel formats of the camera, followed by when set the pixel format, the parameter must be one of this list, otherwise invalid
  848. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  849. *
  850. Other interface of Enumeration structure parameters can refer to this interface, look for the corresponding definition in PixelType.h and CameraParams.h for the integer values of the enum type parameter
  851. ************************************************************************/
  852. MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  853. /************************************************************************
  854. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue);
  855. * @brief 设置像素格式
  856. * @param void* handle [IN] 相机句柄
  857. * const unsigned int nValue [IN] 要设置的像素格式对应的整型值,调用此接口时可以直接填写枚举值,如MV_CC_SetPixelFormat(m_handle, PixelType_Gvsp_RGB8_Packed);
  858. * @return 成功,返回MV_OK,并且相机像素格式将会更改为相应值,失败,返回错误码
  859. *
  860. * 要设置的枚举类型必须是Get接口返回的nSupportValue[MV_MAX_XML_SYMBOLIC_NUM]中的一种,否则会失败
  861. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue);
  862. * @brief Set Pixel Format
  863. * @param void* handle [IN] Camera Handle
  864. * const unsigned int nValue [IN] The corresponding integer value for pixel format to be set, when calling this interface can be directly filled in enumeration values, such as MV_CC_SetPixelFormat(m_handle, PixelType_Gvsp_RGB8_Packed);
  865. * @return Success, return MV_OK, and the camera pixel format will change to the corresponding value. Failure, return error code
  866. *
  867. * Other interface of Enumeration structure parameters can refer to this interface, the enumeration type to be set must be one of the nSupportValue [MV_MAX_XML_SYMBOLIC_NUM] returned by the Get interface, otherwise it will fail
  868. ************************************************************************/
  869. MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue);
  870. /************************************************************************
  871. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  872. * @brief 获取采集模式
  873. * @param void* handle [IN] 相机句柄
  874. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关采集模式的信息结构体指针
  875. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  876. *
  877. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_ACQUISITION_MODE 定义
  878. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  879. * @brief Get acquisition mode
  880. * @param void* handle [IN] Handle
  881. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of acquisition mode
  882. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  883. *
  884. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_ACQUISITION_MODE in CameraParam.h
  885. ************************************************************************/
  886. MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  887. /************************************************************************
  888. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue);
  889. * @brief 设置像素格式
  890. * @param void* handle [IN] 相机句柄
  891. * const unsigned int nValue [IN] 要设置的采集模式对应的整型值
  892. * @return 成功,返回MV_OK,并且相机采集模式将会更改为相应值,失败,返回错误码
  893. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue);
  894. * @brief Set acquisition mode
  895. * @param void* handle [IN] Handle
  896. * const unsigned int nValue [IN] Integer value to set corresponding to acquisition mode
  897. * @return Success, return MV_OK, and the camera acquisition mode will change to the corresponding value. Failure, return error code
  898. ************************************************************************/
  899. MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue);
  900. /************************************************************************
  901. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  902. * @brief 获取增益模式
  903. * @param void* handle [IN] 相机句柄
  904. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关增益模式的信息结构体指针
  905. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  906. *
  907. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_GAIN_MODE 定义
  908. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  909. * @brief Get gain mode
  910. * @param void* handle [IN] Handle
  911. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of gain mode
  912. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  913. *
  914. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_GAIN_MODE in CameraParam.h
  915. ************************************************************************/
  916. MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  917. /************************************************************************
  918. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue);
  919. * @brief 设置增益模式
  920. * @param void* handle [IN] 相机句柄
  921. * const unsigned int nValue [IN] 要设置的增益模式对应的整型值
  922. * @return 成功,返回MV_OK,并且相机增益模式将会更改为相应值,失败,返回错误码
  923. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue);
  924. * @brief Set gain mode
  925. * @param void* handle [IN] Handle
  926. * const unsigned int nValue [IN] Integer value to set corresponding to gain mode
  927. * @return Success, return MV_OK, and the camera gain mode will change to the corresponding value. Failure, return error code
  928. ************************************************************************/
  929. MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue);
  930. /************************************************************************
  931. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  932. * @brief 获取自动曝光模式
  933. * @param void* handle [IN] 相机句柄
  934. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关自动曝光模式的信息结构体指针
  935. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  936. *
  937. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_EXPOSURE_AUTO_MODE 定义
  938. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  939. * @brief Get auto exposure mode
  940. * @param void* handle [IN] Handle
  941. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of auto exposure mode
  942. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  943. *
  944. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_EXPOSURE_AUTO_MODE in CameraParam.h
  945. ************************************************************************/
  946. MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  947. /************************************************************************
  948. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue);
  949. * @brief 设置自动曝光模式
  950. * @param void* handle [IN] 相机句柄
  951. * const unsigned int nValue [IN] 要设置的自动曝光模式对应的整型值
  952. * @return 成功,返回MV_OK,并且相机自动曝光模式将会更改为相应值,失败,返回错误码
  953. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue);
  954. * @brief Set auto exposure mode
  955. * @param void* handle [IN] Handle
  956. * const unsigned int nValue [IN] Integer value to set corresponding to auto exposure mode
  957. * @return Success, return MV_OK, and the camera auto exposure mode will change to the corresponding value. Failure, return error code
  958. ************************************************************************/
  959. MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue);
  960. /************************************************************************
  961. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  962. * @brief 获取触发模式
  963. * @param void* handle [IN] 相机句柄
  964. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关触发模式的信息结构体指针
  965. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  966. *
  967. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_TRIGGER_MODE 定义
  968. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  969. * @brief Get trigger mode
  970. * @param void* handle [IN] Handle
  971. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of trigger mode
  972. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  973. *
  974. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_TRIGGER_MODE in CameraParam.h
  975. ************************************************************************/
  976. MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  977. /************************************************************************
  978. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue);
  979. * @brief 设置触发模式
  980. * @param void* handle [IN] 相机句柄
  981. * const unsigned int nValue [IN] 要设置的触发模式对应的整型值
  982. * @return 成功,返回MV_OK,并且相机触发模式将会更改为相应值,失败,返回错误码
  983. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue);
  984. * @brief Set trigger mode
  985. * @param void* handle [IN] Handle
  986. * const unsigned int nValue [IN] Integer value to set corresponding to trigger mode
  987. * @return Success, return MV_OK, and the camera trigger mode will change to the corresponding value. Failure, return error code
  988. ************************************************************************/
  989. MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue);
  990. /************************************************************************
  991. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  992. * @brief 获取触发延时
  993. * @param void* handle [IN] 相机句柄
  994. * MVCC_FLOATVALUE* pstValue [IN][OUT] 返回给调用者有关相机触发延时的信息结构体指针
  995. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  996. *
  997. * 可参照接口MV_CC_GetFrameRate
  998. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  999. * @brief Get tigger delay
  1000. * @param void* handle [IN] Handle
  1001. * MVCC_FLOATVALUE* pstValue [IN][OUT] Structure pointer of trigger delay
  1002. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  1003. *
  1004. * Refer to MV_CC_GetFrameRate
  1005. ************************************************************************/
  1006. MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  1007. /************************************************************************
  1008. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue);
  1009. * @brief 设置触发延时
  1010. * @param void* handle [IN] 相机句柄
  1011. * const float fValue [IN] 想要设置的相机触发延时
  1012. * @return 成功,返回MV_OK,并且相机触发延时将会更改为相应值,失败,返回错误码
  1013. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue);
  1014. * @brief Set tigger delay
  1015. * @param void* handle [IN] Handle
  1016. * const float fValue [IN] Trigger delay to set
  1017. * @return Success, return MV_OK, and the camera trigger delay will change to the corresponding value. Failure, return error code
  1018. ************************************************************************/
  1019. MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue);
  1020. /************************************************************************
  1021. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1022. * @brief 获取触发源
  1023. * @param void* handle [IN] 相机句柄
  1024. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关触发源的信息结构体指针
  1025. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  1026. *
  1027. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_TRIGGER_SOURCE 定义
  1028. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1029. * @brief Get trigger source
  1030. * @param void* handle [IN] Handle
  1031. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of trigger source
  1032. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  1033. *
  1034. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_TRIGGER_SOURCE in CameraParam.h
  1035. ************************************************************************/
  1036. MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1037. /************************************************************************
  1038. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue);
  1039. * @brief 设置触发源
  1040. * @param void* handle [IN] 相机句柄
  1041. * const unsigned int nValue [IN] 要设置的触发源对应的整型值
  1042. * @return 成功,返回MV_OK,并且相机触发源将会更改为相应值,失败,返回错误码
  1043. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue);
  1044. * @brief Set trigger source
  1045. * @param void* handle [IN] Handle
  1046. * const unsigned int nValue [IN] Integer value to set corresponding to trigger source
  1047. * @return Success, return MV_OK, and the camera trigger source will change to the corresponding value. Failure, return error code
  1048. ************************************************************************/
  1049. MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue);
  1050. /************************************************************************
  1051. * @fn MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void* handle);
  1052. * @brief 软触发一次(接口仅在已选择的触发源为软件触发时有效)
  1053. * @param void* handle [IN] 相机句柄
  1054. * @return 成功,返回MV_OK, 失败,返回错误码
  1055. * @fn MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void* handle);
  1056. * @brief Execute software trigger once (this interface only valid when the trigger source is set to software)
  1057. * @param void* handle [IN] Handle
  1058. * @return Success, return MV_OK. Failure, return error code
  1059. ************************************************************************/
  1060. MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void* handle);
  1061. /************************************************************************
  1062. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1063. * @brief 获取Gamma类型
  1064. * @param void* handle [IN] 相机句柄
  1065. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关Gamma类型的信息结构体指针
  1066. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  1067. *
  1068. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_GAMMA_SELECTOR 定义
  1069. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1070. * @brief Get Gamma mode
  1071. * @param void* handle [IN] Handle
  1072. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of gamma mode
  1073. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  1074. *
  1075. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_GAMMA_SELECTOR in CameraParam.h
  1076. ************************************************************************/
  1077. MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1078. /************************************************************************
  1079. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue);
  1080. * @brief 设置Gamma类型
  1081. * @param void* handle [IN] 相机句柄
  1082. * const unsigned int nValue [IN] 要设置的Gamma类型对应的整型值
  1083. * @return 成功,返回MV_OK,并且相机Gamma类型将会更改为相应值,失败,返回错误码
  1084. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue);
  1085. * @brief Set Gamma mode
  1086. * @param void* handle [IN] Handle
  1087. * const unsigned int nValue [IN] Integer value to set corresponding to gamma mode
  1088. * @return Success, return MV_OK, and the camera gamma mode will change to the corresponding value. Failure, return error code
  1089. ************************************************************************/
  1090. MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue);
  1091. /************************************************************************
  1092. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  1093. * @brief 获取Gamma值
  1094. * @param void* handle [IN] 相机句柄
  1095. * MVCC_FLOATVALUE* pstValue [IN][OUT] 返回给调用者有关相机Gamma值的信息结构体指针
  1096. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  1097. *
  1098. * 可参照接口MV_CC_GetFrameRate
  1099. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  1100. * @brief Get Gamma value
  1101. * @param void* handle [IN] Handle
  1102. * MVCC_FLOATVALUE* pstValue [IN][OUT] Structure pointer of gamma value
  1103. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  1104. *
  1105. * Refer to MV_CC_GetFrameRate
  1106. ************************************************************************/
  1107. MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
  1108. /************************************************************************
  1109. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue);
  1110. * @brief 设置Gamma值
  1111. * @param void* handle [IN] 相机句柄
  1112. * const float fValue [IN] 想要设置的相机Gamma值
  1113. * @return 成功,返回MV_OK,并且相机Gamma值将会更改为相应值,失败,返回错误码
  1114. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue);
  1115. * @brief Set Gamma value
  1116. * @param void* handle [IN] Handle
  1117. * const float fValue [IN] Gamma value to set
  1118. * @return Success, return MV_OK, and the camera gamma value will change to the corresponding value. Failure, return error code
  1119. ************************************************************************/
  1120. MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue);
  1121. /************************************************************************
  1122. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1123. * @brief 获取锐度
  1124. * @param void* handle [IN] 相机句柄
  1125. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机锐度结构体指针
  1126. * @return 成功,返回MV_OK,失败,返回错误码
  1127. *
  1128. * 可参照接口MV_CC_GetWidth
  1129. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1130. * @brief Get sharpness
  1131. * @param void* handle [IN] Handle
  1132. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of sharpness
  1133. * @return Success, return MV_OK. Failure, return error code
  1134. *
  1135. * Refer to MV_CC_GetWidth
  1136. ************************************************************************/
  1137. MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1138. /************************************************************************
  1139. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue);
  1140. * @brief 设置锐度
  1141. * @param void* handle [IN] 相机句柄
  1142. * const unsigned int nValue [IN] 想要设置的锐度
  1143. * @return 成功,返回MV_OK,并且相机锐度将会更改为相应值,失败,返回错误码
  1144. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue);
  1145. * @brief Set sharpness
  1146. * @param void* handle [IN] Handle
  1147. * const unsigned int nValue [IN] Sharpness to set
  1148. * @return Success, return MV_OK, and the camera sharpness will change to the corresponding value. Failure, return error code
  1149. ************************************************************************/
  1150. MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue);
  1151. /************************************************************************
  1152. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1153. * @brief 获取灰度
  1154. * @param void* handle [IN] 相机句柄
  1155. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机灰度结构体指针
  1156. * @return 成功,返回MV_OK,失败,返回错误码
  1157. *
  1158. * 可参照接口MV_CC_GetWidth
  1159. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1160. * @brief Get Hue
  1161. * @param void* handle [IN] Handle
  1162. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of Hue
  1163. * @return Success, return MV_OK. Failure, return error code
  1164. *
  1165. * Refer to MV_CC_GetWidth
  1166. ************************************************************************/
  1167. MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1168. /************************************************************************
  1169. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue);
  1170. * @brief 设置灰度
  1171. * @param void* handle [IN] 相机句柄
  1172. * const unsigned int nValue [IN] 想要设置的灰度
  1173. * @return 成功,返回MV_OK,并且相机灰度将会更改为相应值,失败,返回错误码
  1174. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue);
  1175. * @brief Set Hue
  1176. * @param void* handle [IN] Handle
  1177. * const unsigned int nValue [IN] Hue to set
  1178. * @return Success, return MV_OK, and the camera Hue will change to the corresponding value. Failure, return error code
  1179. ************************************************************************/
  1180. MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue);
  1181. /************************************************************************
  1182. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1183. * @brief 获取饱和度
  1184. * @param void* handle [IN] 相机句柄
  1185. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机饱和度结构体指针
  1186. * @return 成功,返回MV_OK,失败,返回错误码
  1187. *
  1188. * 可参照接口MV_CC_GetWidth
  1189. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1190. * @brief Get Saturation
  1191. * @param void* handle [IN] Handle
  1192. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of Saturation
  1193. * @return Success, return MV_OK. Failure, return error code
  1194. *
  1195. * Refer to MV_CC_GetWidth
  1196. ************************************************************************/
  1197. MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1198. /************************************************************************
  1199. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue);
  1200. * @brief 设置饱和度
  1201. * @param void* handle [IN] 相机句柄
  1202. * const unsigned int nValue [IN] 想要设置的饱和度
  1203. * @return 成功,返回MV_OK,并且相机饱和度将会更改为相应值,失败,返回错误码
  1204. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue);
  1205. * @brief Set Saturation
  1206. * @param void* handle [IN] Handle
  1207. * const unsigned int nValue [IN] Saturation to set
  1208. * @return Success, return MV_OK, and the camera Saturation will change to the corresponding value. Failure, return error code
  1209. ************************************************************************/
  1210. MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue);
  1211. /************************************************************************
  1212. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1213. * @brief 获取自动白平衡
  1214. * @param void* handle [IN] 相机句柄
  1215. * MVCC_ENUMVALUE* pstValue [IN][OUT] 返回给调用者的有关自动白平衡的信息结构体指针
  1216. * @return 成功,返回MV_OK,并获得相应参数信息的结构体, 失败, 返回错误码
  1217. *
  1218. 可参照接口MV_CC_GetPixelFormat,参考 CameraParam.h 中的 MV_CAM_BALANCEWHITE_AUTO 定义
  1219. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1220. * @brief Get Auto white balance
  1221. * @param void* handle [IN] Handle
  1222. * MVCC_ENUMVALUE* pstValue [IN][OUT] Structure pointer of auto white balance
  1223. * @return Success, return MV_OK, and get the structure of the corresponding parameters. Failure, return error code
  1224. *
  1225. Refer to MV_CC_GetPixelFormat and definition of MV_CAM_BALANCEWHITE_AUTO in CameraParam.h
  1226. ************************************************************************/
  1227. MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
  1228. /************************************************************************
  1229. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue);
  1230. * @brief 设置自动白平衡
  1231. * @param void* handle [IN] 相机句柄
  1232. * const unsigned int nValue [IN] 要设置的自动白平衡对应的整型值
  1233. * @return 成功,返回MV_OK,并且相机自动白平衡将会更改为相应值,失败,返回错误码
  1234. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue);
  1235. * @brief Set Auto white balance
  1236. * @param void* handle [IN] Handle
  1237. * const unsigned int nValue [IN] Integer value to set corresponding to auto white balance
  1238. * @return Success, return MV_OK, and the camera auto white balance will change to the corresponding value. Failure, return error code
  1239. ************************************************************************/
  1240. MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue);
  1241. /************************************************************************
  1242. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1243. * @brief 获取白平衡 红
  1244. * @param void* handle [IN] 相机句柄
  1245. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机白平衡 红结构体指针
  1246. * @return 成功,返回MV_OK,失败,返回错误码
  1247. *
  1248. * 可参照接口MV_CC_GetWidth
  1249. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1250. * @brief Get white balance red
  1251. * @param void* handle [IN] Handle
  1252. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of white balance red
  1253. * @return Success, return MV_OK. Failure, return error code
  1254. *
  1255. * Refer to MV_CC_GetWidth
  1256. ************************************************************************/
  1257. MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1258. /************************************************************************
  1259. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue);
  1260. * @brief 设置白平衡 红
  1261. * @param void* handle [IN] 相机句柄
  1262. * const unsigned int nValue [IN] 想要设置的白平衡 红
  1263. * @return 成功,返回MV_OK,并且相机白平衡 红将会更改为相应值,失败,返回错误码
  1264. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue);
  1265. * @brief Set white balance red
  1266. * @param void* handle [IN] Handle
  1267. * const unsigned int nValue [IN] White balance red to set
  1268. * @return Success, return MV_OK, and the camera white balance red will change to the corresponding value. Failure, return error code
  1269. ************************************************************************/
  1270. MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue);
  1271. /************************************************************************
  1272. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1273. * @brief 获取白平衡 绿
  1274. * @param void* handle [IN] 相机句柄
  1275. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机白平衡 绿结构体指针
  1276. * @return 成功,返回MV_OK,失败,返回错误码
  1277. *
  1278. * 可参照接口MV_CC_GetWidth
  1279. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1280. * @brief Get white balance green
  1281. * @param void* handle [IN] Handle
  1282. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of white balance green
  1283. * @return Success, return MV_OK. Failure, return error code
  1284. *
  1285. * Refer to MV_CC_GetWidth
  1286. ************************************************************************/
  1287. MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1288. /************************************************************************
  1289. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue);
  1290. * @brief 设置白平衡 绿
  1291. * @param void* handle [IN] 相机句柄
  1292. * const unsigned int nValue [IN] 想要设置的白平衡 绿
  1293. * @return 成功,返回MV_OK,并且相机白平衡 绿将会更改为相应值,失败,返回错误码
  1294. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue);
  1295. * @brief Set white balance green
  1296. * @param void* handle [IN] Handle
  1297. * const unsigned int nValue [IN] White balance green to set
  1298. * @return Success, return MV_OK, and the camera white balance green will change to the corresponding value. Failure, return error code
  1299. ************************************************************************/
  1300. MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue);
  1301. /************************************************************************
  1302. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1303. * @brief 获取白平衡 蓝
  1304. * @param void* handle [IN] 相机句柄
  1305. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机白平衡 蓝结构体指针
  1306. * @return 成功,返回MV_OK,失败,返回错误码
  1307. *
  1308. * 可参照接口MV_CC_GetWidth
  1309. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1310. * @brief Get white balance blue
  1311. * @param void* handle [IN] Handle
  1312. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of white balance blue
  1313. * @return Success, return MV_OK. Failure, return error code
  1314. *
  1315. * Refer to MV_CC_GetWidth
  1316. ************************************************************************/
  1317. MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1318. /************************************************************************
  1319. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue);
  1320. * @brief 设置白平衡 蓝
  1321. * @param void* handle [IN] 相机句柄
  1322. * const unsigned int nValue [IN] 想要设置的白平衡 蓝
  1323. * @return 成功,返回MV_OK,并且相机白平衡 蓝将会更改为相应值,失败,返回错误码
  1324. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue);
  1325. * @brief Set white balance blue
  1326. * @param void* handle [IN] Handle
  1327. * const unsigned int nValue [IN] White balance blue to set
  1328. * @return Success, return MV_OK, and the camera white balance blue will change to the corresponding value. Failure, return error code
  1329. ************************************************************************/
  1330. MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue);
  1331. /************************************************************************
  1332. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1333. * @brief 获取水印信息内包含的信息类型
  1334. * @param void* handle [IN] 相机句柄
  1335. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机水印信息内包含的信息类型结构体指针
  1336. * @return 成功,返回MV_OK,失败,返回错误码
  1337. *
  1338. * 可参照接口MV_CC_GetWidth
  1339. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1340. * @brief Get information type included by frame stamp
  1341. * @param void* handle [IN] Handle
  1342. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of information type included by frame stamp
  1343. * @return Success, return MV_OK. Failure, return error code
  1344. *
  1345. * Refer to MV_CC_GetWidth
  1346. ************************************************************************/
  1347. MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1348. /************************************************************************
  1349. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue);
  1350. * @brief 设置水印信息内包含的信息类型
  1351. * @param void* handle [IN] 相机句柄
  1352. * const unsigned int nValue [IN] 想要设置的水印信息内包含的信息类型
  1353. * @return 成功,返回MV_OK,并且相机水印信息内包含的信息类型会更改为相应值,失败,返回错误码
  1354. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue);
  1355. * @brief Set information type included by frame stamp
  1356. * @param void* handle [IN] Handle
  1357. * const unsigned int nValue [IN] Information type included by frame stamp to set
  1358. * @return Success, return MV_OK, and the camera information type included by frame stamp will change to the corresponding value. Failure, return error code
  1359. ************************************************************************/
  1360. MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue);
  1361. /************************************************************************
  1362. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue);
  1363. * @brief 获取设备自定义名字
  1364. * @param void* handle [IN] 相机句柄
  1365. * MVCC_STRINGVALUE* pstValue [IN OUT] 返回给调用者有关相机名字结构体指针
  1366. * @return 成功,返回MV_OK,并且获取到相机的自定义名字,失败,返回错误码
  1367. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue);
  1368. * @brief Get device user defined name
  1369. * @param void* handle [IN] Handle
  1370. * MVCC_STRINGVALUE* pstValue [IN OUT] Structure pointer of device name
  1371. * @return Success, return MV_OK, and get the camera user defined name. Failure, return error code
  1372. ************************************************************************/
  1373. MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue);
  1374. /************************************************************************
  1375. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue);
  1376. * @brief 设置设备自定义名字
  1377. * @param void* handle [IN] 相机句柄
  1378. * IN const char* chValue [IN] 设备名字
  1379. * @return 成功,返回MV_OK,并且设置设备自定义名字,失败,返回错误码
  1380. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue);
  1381. * @brief Set device user defined name
  1382. * @param void* handle [IN] Handle
  1383. * IN const char* chValue [IN] Device name
  1384. * @return Success, return MV_OK, and set the camera user defined name. Failure, return error code
  1385. ************************************************************************/
  1386. MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue);
  1387. /************************************************************************
  1388. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1389. * @brief 获取一次触发的帧数
  1390. * @param void* handle [IN] 相机句柄
  1391. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机一次触发的帧数结构体指针
  1392. * @return 成功,返回MV_OK,失败,返回错误码
  1393. *
  1394. * 可参照接口MV_CC_GetWidth
  1395. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1396. * @brief Get frame number trigger by once
  1397. * @param void* handle [IN] Handle
  1398. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of frame number trigger by once
  1399. * @return Success, return MV_OK. Failure, return error code
  1400. *
  1401. * Refer to MV_CC_GetWidth
  1402. ************************************************************************/
  1403. MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1404. /************************************************************************
  1405. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue);
  1406. * @brief 设置一次触发的帧数
  1407. * @param void* handle [IN] 相机句柄
  1408. * const unsigned int nValue [IN] 想要设置的一次触发的帧数
  1409. * @return 成功,返回MV_OK,并且相机一次触发的帧数会更改为相应值,失败,返回错误码
  1410. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue);
  1411. * @brief Set frame number trigger by once
  1412. * @param void* handle [IN] Handle
  1413. * const unsigned int nValue [IN] Frame number trigger by once to set
  1414. * @return Success, return MV_OK, and the camera frame number trigger by once will change to the corresponding value. Failure, return error code
  1415. ************************************************************************/
  1416. MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue);
  1417. /************************************************************************
  1418. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1419. * @brief 获取行频
  1420. * @param void* handle [IN] 相机句柄
  1421. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机行频结构体指针
  1422. * @return 成功,返回MV_OK,失败,返回错误码
  1423. *
  1424. * 可参照接口MV_CC_GetWidth
  1425. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1426. * @brief Get line rate
  1427. * @param void* handle [IN] Handle
  1428. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of line rate
  1429. * @return Success, return MV_OK. Failure, return error code
  1430. *
  1431. * Refer to MV_CC_GetWidth
  1432. ************************************************************************/
  1433. MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1434. /************************************************************************
  1435. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue);
  1436. * @brief 设置行频
  1437. * @param void* handle [IN] 相机句柄
  1438. * const unsigned int nValue [IN] 想要设置的行频
  1439. * @return 成功,返回MV_OK,并且相机行频会更改为相应值,失败,返回错误码
  1440. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue);
  1441. * @brief Set line rate
  1442. * @param void* handle [IN] Handle
  1443. * const unsigned int nValue [IN] Line rate to set
  1444. * @return Success, return MV_OK, and the camera line rate will change to the corresponding value. Failure, return error code
  1445. ************************************************************************/
  1446. MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue);
  1447. /************************************************************************
  1448. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1449. * @brief 获取心跳信息
  1450. * @param void* handle [IN] 相机句柄
  1451. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机心跳信息结构体指针
  1452. * @return 成功,返回MV_OK,失败,返回错误码
  1453. *
  1454. * 可参照接口MV_CC_GetWidth
  1455. * @fn MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1456. * @brief Get heartbeat information
  1457. * @param void* handle [IN] Handle
  1458. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of heartbeat information
  1459. * @return Success, return MV_OK. Failure, return error code
  1460. *
  1461. * Refer to MV_CC_GetWidth
  1462. ************************************************************************/
  1463. MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1464. /************************************************************************
  1465. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue);
  1466. * @brief 设置心跳信息
  1467. * @param void* handle [IN] 相机句柄
  1468. * const unsigned int nValue [IN] 想要设置的心跳信息
  1469. * @return 成功,返回MV_OK,并且相机心跳信息会更改为相应值,失败,返回错误码
  1470. * @fn MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue);
  1471. * @brief Set heartbeat information
  1472. * @param void* handle [IN] Handle
  1473. * const unsigned int nValue [IN] Heartbeat information to set
  1474. * @return Success, return MV_OK, and the camera heartbeat information will change to the corresponding value. Failure, return error code
  1475. ************************************************************************/
  1476. MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue);
  1477. /************************************************************************
  1478. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1479. * @brief 获取网络包大小
  1480. * @param void* handle [IN] 相机句柄
  1481. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机网络包大小结构体指针
  1482. * @return 成功,返回MV_OK,失败,返回错误码
  1483. *
  1484. * 可参照接口MV_CC_GetWidth
  1485. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1486. * @brief Get network packet size
  1487. * @param void* handle [IN] Handle
  1488. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of network packet size
  1489. * @return Success, return MV_OK. Failure, return error code
  1490. *
  1491. * Refer to MV_CC_GetWidth
  1492. ************************************************************************/
  1493. MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1494. /************************************************************************
  1495. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue);
  1496. * @brief 设置网络包大小
  1497. * @param void* handle [IN] 相机句柄
  1498. * const unsigned int nValue [IN] 想要设置的网络包大小
  1499. * @return 成功,返回MV_OK,并且相机网络包大小会更改为相应值,失败,返回错误码
  1500. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue);
  1501. * @brief Set network packet size
  1502. * @param void* handle [IN] Handle
  1503. * const unsigned int nValue [IN] Packet size to set
  1504. * @return Success, return MV_OK, and change packet size to setting value. Failure, return error code
  1505. ************************************************************************/
  1506. MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue);
  1507. /************************************************************************
  1508. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1509. * @brief 获取网络包发送间隔
  1510. * @param void* handle [IN] 相机句柄
  1511. * @param MVCC_INTVALUE* pstValue [IN][OUT] 返回给调用者有关相机网络包发送间隔结构体指针
  1512. * @return 成功,返回MV_OK,失败,返回错误码
  1513. *
  1514. * 可参照接口MV_CC_GetWidth
  1515. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1516. * @brief Get network packet sending delay
  1517. * @param void* handle [IN] Handle
  1518. * @param MVCC_INTVALUE* pstValue [IN][OUT] Structure pointer of network packet sending delay
  1519. * @return Success, return MV_OK. Failure, return error code
  1520. *
  1521. * Refer to MV_CC_GetWidth
  1522. ************************************************************************/
  1523. MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
  1524. /************************************************************************
  1525. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue);
  1526. * @brief 设置网络包发送间隔
  1527. * @param void* handle [IN] 相机句柄
  1528. * const unsigned int nValue [IN] 想要设置的网络包发送间隔
  1529. * @return 成功,返回MV_OK,并且相机网络包发送间隔会更改为相应值,失败,返回错误码
  1530. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue);
  1531. * @brief Set network packet sending delay
  1532. * @param void* handle [IN] Handle
  1533. * const unsigned int nValue [IN] Packet delay to set
  1534. * @return Success, return MV_OK, and change packet delay to setting value. Failure, return error code
  1535. ************************************************************************/
  1536. MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue);
  1537. /************************************************************************
  1538. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP);
  1539. * @brief 获取接收端IP地址,0xa9fe0102 表示 169.254.1.2
  1540. * @param void* handle [IN] 相机句柄
  1541. * @param unsigned int* pnIP [IN][OUT] 返回给调用者接收端IP地址
  1542. * @return 成功,返回MV_OK,失败,返回错误码
  1543. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP);
  1544. * @brief Get receiver IP address, 0xa9fe0102 indicates 169.254.1.2
  1545. * @param void* handle [IN] Handle
  1546. * @param unsigned int* pnIP [IN][OUT] Receiver IP address
  1547. * @return Success, return MV_OK. Failure, return error code
  1548. ************************************************************************/
  1549. MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP);
  1550. /************************************************************************
  1551. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP);
  1552. * @brief 设置接收端IP地址
  1553. * @param void* handle [IN] 相机句柄
  1554. * unsigned int nIP [IN] 想要设置的接收端IP地址
  1555. * @return 成功,返回MV_OK,并且相机接收端IP地址会更改为相应值,失败,返回错误码
  1556. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP);
  1557. * @brief Set receiver IP address
  1558. * @param void* handle [IN] Handel
  1559. * unsigned int nIP [IN] Receiver IP address to set
  1560. * @return Success, return MV_OK, and change receiver IP address to setting value. Failure, return error code
  1561. ************************************************************************/
  1562. MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP);
  1563. /************************************************************************
  1564. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort);
  1565. * @brief 获取发送端的端口号
  1566. * @param void* handle [IN] 相机句柄
  1567. * @param unsigned int* pnPort [IN][OUT] 返回给调用者发送端的端口号
  1568. * @return 成功,返回MV_OK,失败,返回错误码
  1569. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort);
  1570. * @brief Get transmitter port number
  1571. * @param void* handle [IN] Handle
  1572. * @param unsigned int* pnPort [IN][OUT] Transmitter port number
  1573. * @return Success, return MV_OK. Failure, return error code
  1574. ************************************************************************/
  1575. MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort);
  1576. /************************************************************************
  1577. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort);
  1578. * @brief 设置发送端的端口号
  1579. * @param void* handle [IN] 相机句柄
  1580. * unsigned int nPort [IN] 想要设置的发送端的端口号
  1581. * @return 成功,返回MV_OK,并且相机发送端的端口号会更改为相应值,失败,返回错误码
  1582. * @fn MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort);
  1583. * @brief Set transmitter port number
  1584. * @param void* handle [IN] Handle
  1585. * unsigned int nPort [IN] Transmitter port number to set
  1586. * @return Success, return MV_OK, and change transmitter port number to setting value. Failure, return error code
  1587. ************************************************************************/
  1588. MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort);
  1589. /********************************************************************//**
  1590. * @~chinese
  1591. * @brief 设置设备波特率
  1592. * @param handle [IN] 设备句柄
  1593. * @param nBaudrate [IN] 设置的波特率值,数值参考CameraParams.h中宏定义,如#define MV_CAML_BAUDRATE_9600 0x00000001
  1594. * @return 成功,返回MV_OK,失败,返回错误码
  1595. * @remarks (该接口已弃用,建议改用 MV_CAML_SetDeviceBaudrate接口)
  1596. * @~english
  1597. * @brief Set device baudrate using one of the CL_BAUDRATE_XXXX value
  1598. * @param handle [IN] Device handle
  1599. * @param nBaudrate [IN] baud rate to set. Refer to the 'CameraParams.h' for parameter definitions, for example, #define MV_CAML_BAUDRATE_9600 0x00000001
  1600. * @return Success, return MV_OK. Failure, return error code
  1601. * @remarks (This interface is abandoned, it is recommended to use the MV_CAML_SetDeviceBaudrate)
  1602. ************************************************************************/
  1603. MV_CAMCTRL_API int __stdcall MV_CAML_SetDeviceBauderate(IN void* handle, unsigned int nBaudrate);
  1604. /********************************************************************//**
  1605. * @~chinese
  1606. * @brief 获取设备波特率
  1607. * @param handle [IN] 设备句柄
  1608. * @param pnCurrentBaudrate [OUT] 波特率信息指针,数值参考CameraParams.h中宏定义,如#define MV_CAML_BAUDRATE_9600 0x00000001
  1609. * @return 成功,返回MV_OK,失败,返回错误码
  1610. * @remarks (该接口已弃用,建议改用 MV_CAML_GetDeviceBaudrate接口)
  1611. * @~english
  1612. * @brief Returns the current device baudrate, using one of the CL_BAUDRATE_XXXX value
  1613. * @param handle [IN] Device handle
  1614. * @param pnCurrentBaudrate [OUT] Return pointer of baud rate to user. Refer to the 'CameraParams.h' for parameter definitions, for example, #define MV_CAML_BAUDRATE_9600 0x00000001
  1615. * @return Success, return MV_OK. Failure, return error code
  1616. * @remarks (This interface is abandoned, it is recommended to use the MV_CAML_GetDeviceBaudrate)
  1617. ************************************************************************/
  1618. MV_CAMCTRL_API int __stdcall MV_CAML_GetDeviceBauderate(IN void* handle,unsigned int* pnCurrentBaudrate);
  1619. /********************************************************************//**
  1620. * @~chinese
  1621. * @brief 获取设备与主机间连接支持的波特率
  1622. * @param handle [IN] 设备句柄
  1623. * @param pnBaudrateAblity [OUT] 支持的波特率信息的指针。所支持波特率的或运算结果,单个数值参考CameraParams.h中宏定义,如MV_CAML_BAUDRATE_9600 0x00000001
  1624. * @return 成功,返回MV_OK,失败,返回错误码
  1625. * @remarks (该接口已弃用,建议改用 MV_CAML_GetSupportBaudrates接口)
  1626. * @~english
  1627. * @brief Returns supported baudrates of the combined device and host interface
  1628. * @param handle [IN] Device handle
  1629. * @param pnBaudrateAblity [OUT] Return pointer of the supported baudrates to user. 'OR' operation results of the supported baudrates. Refer to the 'CameraParams.h' for single value definitions, for example, MV_CAML_BAUDRATE_9600 0x00000001
  1630. * @return Success, return MV_OK. Failure, return error code
  1631. * @remarks (This interface is abandoned, it is recommended to use the MV_CAML_GetSupportBaudrates)
  1632. ************************************************************************/
  1633. MV_CAMCTRL_API int __stdcall MV_CAML_GetSupportBauderates(IN void* handle,unsigned int* pnBaudrateAblity);
  1634. #ifdef __cplusplus
  1635. }
  1636. #endif
  1637. #endif //_MV_OBSOLETE_INTERFACES_H_