Export (0) Print
Expand All

Transports

In order to move media data through the filter graph, a DirectShow filter must support one of several possible protocols. These protocols are called transports. When two filters connect, they must support the same transport; otherwise they cannot exchange media data. Typically, a transport requires that one of the pins support a particular interface. When the filters connect, one pin queries the other for the interface.

Most DirectShow filters hold media data in main memory, and deliver it to other filters across pin connections. This type of transport is called local memory transport. Although local memory transport is the most common transport in DirectShow, not all filters use it. For example, some filters send media data along a hardware path, and use pins only to deliver control information. For example, see the IOverlay interface.

DirectShow defines two mechanisms for local memory transport, the push model and the pull model. In the push model, a source filter generates data and delivers it to the next filter downstream. That filter passively receives the data, processes it, and sends it further downstream. In the pull model, the source filter is connected to a parser filter. The parser filter requests data from the source filter. The source filter responds to the requests by delivering data. The push model uses the IMemInputPin interface, and the pull model uses the IAsyncReader interface.

The push model is more common than the pull model. Therefore, the articles that follow assume a push model. The last article in this section, Pull Model, describes how the IAsyncReader interface differs from IMemInputPin.

Related topics

Data Flow in the Filter Graph

 

 

Community Additions

ADD
Show:
© 2015 Microsoft