Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

problems with vfw and video capture driver

Status
Not open for further replies.

moises_l

Junior Member level 3
Joined
Oct 23, 2003
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
192
capcapturesingleframe c++

I am developing a video capture application in Visual C++. I am using vfw.h. When I use capGetDriverDescription, it doesn´t find any video driver. Does anyone know the problem
 

sztibi82

Full Member level 3
Joined
Aug 31, 2004
Messages
155
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,298
Activity points
1,120

penghan

Member level 4
Joined
Sep 20, 2004
Messages
74
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Location
Shanghai
Activity points
489
programming vfw capture

I had ever use VFW.May be the section next is of some use to you.

ghCapWnd = capCreateCaptureWindow((LPTSTR)TEXT("Video Window"),
WS_CHILD|WS_VISIBLE|WS_EX_DLGMODALFRAME,
0,0,//400,500,
rect1.Width(),rect1.Height(),
pWnd->GetSafeHwnd(),0);

ASSERT(ghCapWnd);
if(capDriverConnect(ghCapWnd,0))
{
capDriverGetCaps(ghCapWnd,&gCapDrvCaps,sizeof(CAPDRIVERCAPS));
if(gCapDrvCaps.fCaptureInitialized)
{
capPreviewRate(ghCapWnd,33);
capPreview(ghCapWnd,TRUE);//use the memory
}
else{
AfxMessageBox("Failure to initialize video card");
// AfxGetMainWnd()->PostMessage(WM_CLOSE);
}
}
else
{
AfxMessageBox("Failure to connect video card");
//AfxGetMainWnd()->PostMessage(WM_CLOSE);
}
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top