🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.video
3 messages
3 total messages Started by Lazikas o Pontios Mon, 31 Jan 2000 00:00
Video for Windows help
#13
Author: Lazikas o Pontios
Date: Mon, 31 Jan 2000 00:00
14 lines
1202 bytes
Hi to all. Where can i find some info about Video for Windows ? The
standard MS SDK help file shipped with Delphi has no info about.

What i wanna do is grab a frame from a video camera, and manipulate it
on the fly.
What i have achived till now (by reading code from other freeware
applications) is to grab the frame and save it into a file or grab an
avi by sending commands to video handle. But i have no info about how
and where frame is stored in memory or what is the procedure tha is
followed by VfW.

Thanks in Advance,

Lazikas
Re: Video for Windows help
#14
Author: Mike
Date: Mon, 31 Jan 2000 00:00
62 lines
2448 bytes
Hi

Try the following

define a Callback for single frame capture ......

LRESULT CALLBACK FrameCallbackProc(HWND, LPVIDEOHDR) ;

Create a capture window, for example .....

hwCap = capCreateCaptureWindow("My Window", WS_CHILD |  WS_VISIBLE,
0,0,640,480, hWndParent, 0);

Check that you have attached to a valid driver ........

ok = capGetDriverDescription( 0, (char*) &gszCapDrvName, 200,  (char*)
&gszCapDrvDesc, 200 ); 

where gsznnnn are pointers to char buffers


Make a call to the Capture driver to request call back on frame
preview ......

capSetCallbackOnFrame(hwCap, FrameCallbackProc) ;

Write a callback routine  to access the data

LRESULT CALLBACK FrameCallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr)
{
//  hWnd:       Application main window handle
//  lpVHdr:     long pointer to VideoHdr struct
//  lpVHdr->lpData points to the actual data in the buffer

}
See the microsoft SDK example AVICap for more  information

Hope this helps


On Mon, 31 Jan 2000 21:15:47 +0200, Lazikas o Pontios
<lazikas@iname.com> wrote:

>Hi to all. Where can i find some info about Video for Windows ? The
>standard MS SDK help file shipped with Delphi has no info about.
>
>What i wanna do is grab a frame from a video camera, and manipulate it
>on the fly.
>What i have achived till now (by reading code from other freeware
>applications) is to grab the frame and save it into a file or grab an
>avi by sending commands to video handle. But i have no info about how
>and where frame is stored in memory or what is the procedure tha is
>followed by VfW.
>
>Thanks in Advance,
>
>Lazikas
>

Mike
support@rapidautomation.co.uk
http://www.rapidautomation.co.uk/
Re: Video for Windows help
#15
Author: Lazikas o Pontios
Date: Tue, 01 Feb 2000 00:00
10 lines
828 bytes
Thanks a lot Mike, i'll give it a try :)

Lazikas

Mike wrote:

> Hi
>
> Try the following
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads