www.openwire.org
www.mitov.com
Copyright Boian Mitov 2004 - 2014
Index
Installation ................................................................................................................................................... 3
Where is VideoLab? ................................................................................................................................... 3
Why some of the examples don’t work? ..................................................................................................... 3
Creating a simple video player using Win32API Components .................................................................. 4
Creating a simple video player using DirectShow components ................................................................. 6
Creating applications using video filters and geometric transformations ................................................... 9
Creating a simple video capture application using DirectShow ............................................................... 22
Creating a simple video capture application using Win32API ................................................................. 27
Capturing a frame into a TBitmap ............................................................................................................ 33
Displaying a video histogram into a Scope component ............................................................................ 36
Displaying a video histogram in a Third Party plot component ............................................................... 42
Displaying audio into a Scope component ................................................................................................ 53
Performing filter or transformation over TBitmap ................................................................................... 60
Creating your own filter ............................................................................................................................ 64
Using the TSLCRealBuffer in C++ Builder and Visual C++ ................................................................... 70
Deploying your 32 bit application with the IPP DLLs ............................................................................. 73
Deploying your 64 bit application ............................................................................................................ 73
November 13, 2014 VideoLab 7.5-2-
Installation
VideoLab comes with an installation program. Just start the installation by double-
clicking on the Setup.exe file and follow the installation instructions.
Where is VideoLab?
After the installation, start your Delphi or C++ Builder.
Scroll the “Component Palette”, until you see the last four tabs:
If the installation was successful, they should be named “Video Lab”, “Signal Lab” and
“AudioLab”. On the SignalLab palette you will have only a subset of the SignalLab
components necessary for processing histogram data. SignalLab is a separated product,
and will not be shipped as full with VideoLab. On the AudioLab palette you will have
only a subset of the AudioLab components necessary for basic processing audio data.
AudioLab is a separated product, and will not be shipped as full with VideoLab.
Only the following two components of SignalLab will be available:
Only the following two components of AudioLab will be available:
The following two PlotLab components will be available.
Why some of the examples don’t work?
Video lab is a unique library that supports both the Win32 API’s AVIFile ( VFW )
functions (ACM) and DirectShow. You as a developer have the ultimate choice to use
either the Win32 API or DirectShow components or both at the same time.
The advantage of the Win32 API components is that hey will work on any Windows 95
and up system out of the box, however they are much less capable than the DirectShow
components, and should be avoided if not necessary.
November 13, 2014 VideoLab 7.5-3-
The advantage of the DirectShow components is that they will use the latest and greatest
capability of DirectShow, the latest video camera devices, and TV Tuners, but they
require DirectShow 9.0 or higher to be installed in order to work.
If you don’t have DirectX 9.0 or higher installed on your system, you will not be able to
use see the DirectShow examples working.
Creating a simple video player using Win32API
Components
From the Delphi/C++Builder menu select | File | New | Application |.
An empty form will appear on the screen.
From the “Component Palette” select the “Video Lab” tab:
select and drop on the form the following two components:
- TVLAVIPlayer
- TVLImageDisplay
Select the VLImageDisplay1 component on the form.
November 13, 2014 VideoLab 7.5-4-
In the Object Inspector set the Align property to alClient:
Make the form relatively small.
Select the VLAVIPlayer1.
The form will look similar to this one:
In the Object Inspector select the FileName property and click the button.
A File selection dialog will appear:
Select a file to play and click “Open”.
November 13, 2014 VideoLab 7.5-5-
- 1
- 2
前往页