海康回调函数传参
【摘要】
cam_no是参数,直接强转
PLATFORMSDK_API int Plat_VSS_PlayVideo_V20(_IN_ int iUserHandle, _IN_ const char* pszCamIdx, _IN_ long hWnd, _OUT_ unsigned int* puiHandle, _IN_ StreamCallback_V20...
cam_no是参数,直接强转
-
-
-
PLATFORMSDK_API int Plat_VSS_PlayVideo_V20(_IN_ int iUserHandle, _IN_ const char* pszCamIdx, _IN_ long hWnd, _OUT_ unsigned int* puiHandle,
-
_IN_ StreamCallback_V20 fStreamCallback = 0, _IN_ PreviewMsgCallback_V20 fMsgNotify = 0, _IN_ void* pUser = 0);
-
-
-
传参:
-
int cam_no=5;
-
-
-
int iRet = Plat_VSS_PlayVideo_V20(g_iLogHandle, deviceId, NULL,
-
&m_uiPlayHandle, pDlg->CB_StreamCallback, CB_PreviewMsgCallback, (void*)cam_no);
-
-
接收参数:
-
-
void __stdcall Chik_serverDlg::CB_StreamCallback(long handle, int iStreamType, const char* data, int size, void* pUser)
-
{
-
if (iStreamType != 2) {
-
return;
-
}
-
HWND mhWnd = (HWND)handle;
-
int cam_no = (int)pUser;
-
在大华的sdk中,直接强转会报错,
大华sdk中
int param_data=56;
LDWORD d_data=param_data;
后来把这个参数传过去,也能用。
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/101013309
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)