🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by Piero Salandin Wed, 15 Aug 2001 09:14
Newbie: how to perform frame grabbing?
#1156
Author: Piero Salandin
Date: Wed, 15 Aug 2001 09:14
14 lines
1254 bytes
I have to build up a program using C++Builder which grabs images from an
external device like a video camera, and then "freeze" and save as an image
(various formats). I do know almost nothing of the topic, but I suppose
there is a Windows common interface on this, and the key should be to use
these APIs.

Please anyone have hints to give? Where to start from?

Thanks a lot.


--
Ing. Piero Salandin
piero.salandin@libero.it
Re: Newbie: how to perform frame grabbing?
#1157
Author: Shaggie
Date: Wed, 15 Aug 2001 21:36
47 lines
2480 bytes
Yes, I'm working on something similar at that moment.
Try having a look through the winapi help or view your mmedia.hlp file that
comes with builder.
The jist of it is that you load the avicap32.dll and then use
capCreateCaptureWindow  function like this:-

   AVICapDllHandle = LoadLibrary ( "AVICAP32.DLL" );
   if ( AVICapDllHandle == 0 )
   {
      MessageBox ( NULL, "LoadLibrary:\nAVICAP32.DLL not found.",
                          "Error FS 002", MB_ICONSTOP );
   }

   HWND hForm = Form1 -> Handle;
   hWndC = capCreateCaptureWindow ( "WebCamWin", WS_CHILD | WS_VISIBLE,
                                   20, 20, 320, 240, hForm, 0 );

You can then use other functions etc to save to disk etc., but you'll have
to look those up in the help files.
Otherwise there is a video capture component the www.vclcomponents.com
website called video.zip (just search for it, I can't remember what section
it's in) You might find it quite interesting. It's quite a bit easier than
delving into the depths of the winapi but it's not as versatile.

Dave


"Piero Salandin" <piero.salandin@libero.it> wrote in message
news:3b7a3e1f_1@dnews...
> I have to build up a program using C++Builder which grabs images from an
> external device like a video camera, and then "freeze" and save as an
image
> (various formats). I do know almost nothing of the topic, but I suppose
> there is a Windows common interface on this, and the key should be to use
> these APIs.
>
> Please anyone have hints to give? Where to start from?
>
> Thanks a lot.
>
>
> --
> Ing. Piero Salandin
> piero.salandin@libero.it
>
>
>
Re: Newbie: how to perform frame grabbing?
#1159
Author: Shaggie
Date: Thu, 16 Aug 2001 21:41
65 lines
3107 bytes
Found it. I might have guessed it was in the multimedia section on page 20.
Here's the link (it's called video.zip) :-

http://www.vclcomponents.com/download.asp?ID_COMPONENT=15848

You'll have to look at the .h files and example to work things out as there
is no help file or text help. Pretty straightforward though.
Hope this helps to get you started.....

Dave

"Shaggie" <davejohns@btclick.com> wrote in message
news:3b7aeb9e$1_2@dnews...
> Yes, I'm working on something similar at that moment.
> Try having a look through the winapi help or view your mmedia.hlp file
that
> comes with builder.
> The jist of it is that you load the avicap32.dll and then use
> capCreateCaptureWindow  function like this:-
>
>    AVICapDllHandle = LoadLibrary ( "AVICAP32.DLL" );
>    if ( AVICapDllHandle == 0 )
>    {
>       MessageBox ( NULL, "LoadLibrary:\nAVICAP32.DLL not found.",
>                           "Error FS 002", MB_ICONSTOP );
>    }
>
>    HWND hForm = Form1 -> Handle;
>    hWndC = capCreateCaptureWindow ( "WebCamWin", WS_CHILD | WS_VISIBLE,
>                                    20, 20, 320, 240, hForm, 0 );
>
> You can then use other functions etc to save to disk etc., but you'll have
> to look those up in the help files.
> Otherwise there is a video capture component the www.vclcomponents.com
> website called video.zip (just search for it, I can't remember what
section
> it's in) You might find it quite interesting. It's quite a bit easier than
> delving into the depths of the winapi but it's not as versatile.
>
> Dave
>
>
> "Piero Salandin" <piero.salandin@libero.it> wrote in message
> news:3b7a3e1f_1@dnews...
> > I have to build up a program using C++Builder which grabs images from an
> > external device like a video camera, and then "freeze" and save as an
> image
> > (various formats). I do know almost nothing of the topic, but I suppose
> > there is a Windows common interface on this, and the key should be to
use
> > these APIs.
> >
> > Please anyone have hints to give? Where to start from?
> >
> > Thanks a lot.
> >
> >
> > --
> > Ing. Piero Salandin
> > piero.salandin@libero.it
> >
> >
> >
>
>
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