I need help with HikVision IPCam video streaming. I discovered two holes weeks without luck.
My problem streams the IPCamm DLL image into Picture Box using PictureBox.Handle. Its work is perfectly fine:
[DllImport ("HCNetSDK.dll")] Public static extern int NET_DVR_RealPlay_V30 (int lUserID, referee NET_DVR_CLIENTINFO lpClientInfo, RealDataCallBack_V30 fRealDataCallBack_V30, IntPtr pUser, bool bBlocked) ; This.realDataCallBack = New RealDataCallBack_V30 (RealDataCallback); This.clientInfo.hPlayWnd = PictureBox.Handle; This.clientInfo.lChannel = Channel; This.clientInfo.lLinkMode = 0; This.playHandle = NET_DVR_RealPlay_V30 (this.userID, ref.clientInfo, realDataCallBack, IntPtr.Zero, true);
My point is that I need to process the image, but I have no way of capturing the image as a bitmap or image and then look like it.
I tried bitmap. FHHMMAP (PictureBoxHandle), tried some memory merciless solutions without any luck.
My only way is to get the data from the call back function which is with low quality, low frame-count, ...
No comments:
Post a Comment