njlpkhgea
Rozgadany ;)
Dołączył: 13 Gru 2010
Posty: 547
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Wto 21:56, 29 Mar 2011 Temat postu: VC + +6.0 platform technology using DirectShow DV |
|
|
,[link widoczny dla zalogowanych]
VC + +6.0 platform technology using DirectShow DV video processing equipment
); / / Clear display window} pGB. Release ();// release IGraphBuilder interface reference l (2) image capture to file (and preview) to achieve capture and preview the main process is basically the same. However, to simplify the CaptureGraph (capture filter graph) of the building work, DirectShow provides a CaptureGraphBuilder components. Through its ICaptureGraphBuilder2 then 13, can easily build and control CaptureGraph. Replace 3.1 with the following code in Part 5, the remaining steps are identical. ICaptureGraphBuilder2pBuilder =- NULL; / / Get ICaptureGraphBuilder2 interface. CoCreatelnstance (CLSID_CaptureGraphBuilder2, NULL, CLSCTX_INPROC, IID-ICaptureGraphBuilder2, (void **) & pBuilder); / / will be linked to CaptureGraphBuilderE · FilterGraph computer and network pBuilder-> SetFiltergraph (pGB); by SetOutputFileName method automatically AviMuxFilter and FileWriterFilter to FilterGraph in specified directly in the parameter file path and name of the video. IBaseFiher * ppf = NULL: IFileSinkF. 1ter wood pSink = NULL; oBuilder a> SetOutputFileNamer & MEDIASUB. rIYPE_Avi. L avi ,, Capturestreamhr = pBuilder-> RenderStream (& PIN-CATEGO-RYCAPI1URE. & MEDIATYPEVideo.pCap, NULL, pMux); / / render Capturestreamhr = pBuilder a> RenderStream (& PINCATEG0.RYPREVIEW. & MEDIATYPEVideo. pCap, NULL, NULL1; IV Conclusion Although the application is only DirectShOW DV technology in a small part, but for beginners, through their own hands to achieve a fully functional programming can be familiar with the system and master Di.rectShow The basic application of technical methods and procedures. In this application, we all use the DirectShow provides Filter, and more applications, we need to design their own special Filter, to achieve more. With the gradual in-depth insider DirectShow technology, We will develop a more broad application space. Note: This article is mainly used in the source code for the principle that, for readers in the programming process reference.
Post został pochwalony 0 razy
|
|