Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hello , everybody ! I've got a problem on using the VFW . It provides the callback function to deal with the frame captured by the carmera , the callback function has two parameters.
Its Function prototype :
C++
LRESULT CALLBACK FrameCallbackProc(HWND hWnd,LPVIDEOHDR lpVHdr)
but I don't know how to use the second parameter lpVHdr , I want to display the Frame info on a DC , somebody help me , thanks !
Posted

1 solution

the second parameter is a long pointer (LP) to a VIDEOHDR[^] struct

i.e.

if(lpVHdr->dwFlags & VHDR_KEYFRAME)
{
// it's a keyframe!
}
 
Share this answer
 
v2
Comments
Younth 15-Jul-12 4:47am    
thank you ! so how to display the data of its frame buffer on a DC ?
barneyman 15-Jul-12 6:05am    
no idea :) example here says it's just a BMP

VFW is ancient technology - you might want to look at DirectShow
Younth 17-Jul-12 8:17am    
I searched a lot ,someone said it's a no-format data of DIBS , parts info of bitmap ,but I don't know how to deal with it , could you please give me some code example ?
barneyman 17-Jul-12 20:05pm    
the 5th item on that thread i pointed you at shows you how ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900