Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 Win32
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 :
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 14-Jul-12 23:14pm
Younth483

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

the second parameter is a long pointer (LP) to a VIDEOHDR[^] struct
 
i.e.
 
if(lpVHdr->dwFlags & VHDR_KEYFRAME)
{
// it's a keyframe!
}
  Permalink  
v2
Comments
Younth at 15-Jul-12 4:47am
   
thank you ! so how to display the data of its frame buffer on a DC ?
barneyman at 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 at 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 at 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)

  Print Answers RSS
0 OriginalGriff 515
1 Maciej Los 349
2 Richard MacCutchan 220
3 BillWoodruff 209
4 Mathew Soji 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 15 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100