高分求救:VFW视频采集问题,始终采集不到图像
m_hCapWnd:=capCreateCaptureWindow(Pchar( 'VideoTest '),
WS_CHILD or WS_VISIBLE,0,0,AviPanel.width,AviPanel.height,AviPanel.Handle,0);
if(capDriverConnect(m_hCapWnd,0)) then
begin
capPreviewRate(m_hCapWnd,30);
capPreview(m_hCapWnd,true);
dwSize:=capGetVideoFormatSize(m_hCapWnd);
capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
setBmp.bmiHeader.biWidth:=352;
setBmp.bmiHeader.biHeight:=288;
capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);
end;
不管我换到哪一路视频capDriverConnect(m_hCapWnd,0)始终为fasle
哪位大侠帮我指点一下阿
[解决办法]
帮顶
[解决办法]
确保你的驱动安装正常
[解决办法]
用dspack 试试