A
amwtdkj
Unregistered / Unconfirmed
GUEST, unregistred user!
CapWnd := capCreateCaptureWindow('我的窗口', WS_VISIBLE or WS_CHILD,//窗口样式
0, 0, panel1.Width,panel1.Height, panel1.handle, 0);
if CapWnd = 0 then
exit;
//CapSetCallbackOnFrame();
CapDriverConnect(CapWnd,0);
// fHasDlgVideoFormat
CapParms.dwRequestMicroSecPerFrame:=40000;
CapParms.fLimitEnabled:=FALSE;
CapParms.fCaptureAudio:=FALSE;
CapParms.fMCIControl:=FALSE;
CapParms.fYield:=true;
CapParms.vKeyAbort:=VK_ESCAPE;
CapParms.fAbortLeftMouse:=False;
CapParms.fAbortRightMouse:=FALSE;
//让设置生效
CapParms.wnumvideorequested:=50*1024;
CapCaptureSetSetup(capWnd,@CapParms,sizeof(TCAPTUREPARMS));
//capsetcallbackonvideostream(CapWnd,@FrameCallBack1);
capSetCallbackOnFrame(CapWnd,@FrameCallBack1);
CapPreviewScale(capWnd,TRUE);
CapPreviewRate(capWnd,33);
//设置预览视频的频率
capPreview(capWnd,true);
// preview方式显示
CapCaptureSequenceNoFile(capWnd);
问什么我设置了CapParms后,FrameCallBack1就不能回调了?不设置就可以回调!
当我设置了CapParms后,可以capCaptureAbort停止捕捉,但capDriverDisconnect不能让捕捉窗同驱动器断开!画面还在动作,就是很慢!
我的设置有什么问题吗?请各位大哥大姐帮忙看一下!
0, 0, panel1.Width,panel1.Height, panel1.handle, 0);
if CapWnd = 0 then
exit;
//CapSetCallbackOnFrame();
CapDriverConnect(CapWnd,0);
// fHasDlgVideoFormat
CapParms.dwRequestMicroSecPerFrame:=40000;
CapParms.fLimitEnabled:=FALSE;
CapParms.fCaptureAudio:=FALSE;
CapParms.fMCIControl:=FALSE;
CapParms.fYield:=true;
CapParms.vKeyAbort:=VK_ESCAPE;
CapParms.fAbortLeftMouse:=False;
CapParms.fAbortRightMouse:=FALSE;
//让设置生效
CapParms.wnumvideorequested:=50*1024;
CapCaptureSetSetup(capWnd,@CapParms,sizeof(TCAPTUREPARMS));
//capsetcallbackonvideostream(CapWnd,@FrameCallBack1);
capSetCallbackOnFrame(CapWnd,@FrameCallBack1);
CapPreviewScale(capWnd,TRUE);
CapPreviewRate(capWnd,33);
//设置预览视频的频率
capPreview(capWnd,true);
// preview方式显示
CapCaptureSequenceNoFile(capWnd);
问什么我设置了CapParms后,FrameCallBack1就不能回调了?不设置就可以回调!
当我设置了CapParms后,可以capCaptureAbort停止捕捉,但capDriverDisconnect不能让捕捉窗同驱动器断开!画面还在动作,就是很慢!
我的设置有什么问题吗?请各位大哥大姐帮忙看一下!