DIrectShow Interface--ICaptureGraphBuilder2

http://msdn.microsoft.com/en-us/library/aa924828.aspx

This interface provides methods for building capture graphs, and other custom filter graphs. The Capture Graph Builder object implements this interface.

The Capture Graph Builder is a helper object for building video and audio capture graphs. Capture and editing applications can use this component to construct filter graphs. The following code shows how to create this object using CoCreateInstance.

CoCreateInstance( CLSID_CaptureGraphBuilder,
                  NULL,
                  CLSCTX_INPROC_SERVER,
                  IID_ICaptureGraphBuilder2,
                  (void**) &pCaptureGraphBuilder)

In addition to the methods inherited from IUnknown, the ICaptureGraphBuilder2 interface exposes the methods shown in the following table.

 

            Method                     Description         

ICaptureGraphBuilder2::ControlStream

Sets the start and stop times for one or more streams of captured data.

ICaptureGraphBuilder2::FindInterface

Searches the graph for a specified interface, starting from a specified filter.

ICaptureGraphBuilder2::FindPin

Retrieves a particular pin on a filter, or determines whether a given pin matches the specified criteria.

ICaptureGraphBuilder2::GetFiltergraph

Retrieves the filter graph that the builder is using.

ICaptureGraphBuilder2::RenderStream

Connects an output pin on a source filter to a rendering filter, optionally through a compression filter.

ICaptureGraphBuilder2::SetFiltergraph

Specifies a filter graph for the capture graph builder to use.

ICaptureGraphBuilder2::SetOutputFileName

Creates the file writing section of the filter graph.

Windows Embedded CEWindows Embedded CE 6.0 and later
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
NoteMicrosoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值