The DirectShow component is in the Quartz.dll dynamic library under the "C:\WINDOWS\system32" directory to enable C # code to reference COM objects and interfaces. COM type libraries must be converted to. NET Framework metadata to effectively create a managed wrapper that can be invoked from any managed language.
You need to use the TLBIMP command tool with the framework SDK from the conversion process, which is in the D:\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\tlbimp.exe Directory (depending on the installation path of Visual Studio 2005).
The command is used in the following ways:
TLBIMP C:\WINDOWS\system32\quartz.dll Out:c:\windows\system32\quartzdriectshow.dll
The conversion succeeded under the DOS command.
After the conversion is complete, you need to refer to the Quartzdriectshow in the application reference QuartzDriectShow.dll component steps as follows:
(1) in the Visual Studio 2005 development Environment, select the menu "Project"/"Add Reference" command to eject the Add Reference dialog box.
(2) Select the Browse tab and browse to the location where the reference QuartzDriectShow.dll is located and refer to the program.
(3) Finally, using Quartzdriectshow can be used to develop the relevant multimedia programs in the program.
Developers can also extend DirectShow multimedia support by writing their own filters. The following is an interface to the DirectShow component.
L Ifiltergraph: Filter Channel interface.
L IFILTERGRAPH2: Enhanced ifiltergraph.
L Igraphbuilder: The most reusable COM interface for manual or automated construction of filter channel filter Graph Manager.
L IMediaControl: Used to control streaming media (stream start and stop pauses, etc.) playback control interface.
L Imediaevent: The Playback event interface, which is used to create the flag information for the event and pass it to the application when Filtergraph events occur.
L Imediaeventex: Extended Playback Event window.
L Imediaposition: Playback position and speed control interface (control playback placement can only be set time control mode).
L Imediaseeking: Another play position and playback speed control interface, in the location selection aspect function is strong, sets the playback format. Commonly used control playback methods are: time_format_media_time units of 100 nanoseconds; time_format_frame play by frame.
L Ibasicaudio: Voice Control interface.
L Ibasic Video: Image control Interface (baud rate, width, length, etc.).
L Ivideowindow: Display window Control interface (for all control of the playback window, including caption display, window position control, etc.).
L Isamplegrabber: Capture Image interface (can be used for grasping graph control).
L Ivideoframestep: The interface of control silk single frame play.
Note: Programming with the DirectShow interface has 3 steps: Initializing the interface → using control functions in the interface to use control operations → finally release the interface.