IMemInputPin interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IMemInputPin interface delivers media data to an input pin. Input pins expose this interface if they use the IMemAllocator interface to allocate buffers. When an output pin connects to an input pin, the output pin uses this interface to negotiate allocator requirements and deliver samples to the input pin.

Applications typically do not use this interface.

Filter developers: The CBaseInputPin class implements this interface.

Inheritance

The IMemInputPin interface inherits from the IUnknown interface. IMemInputPin also has these types of members:

Methods

The IMemInputPin interface has these methods.

 
IMemInputPin::GetAllocator

The GetAllocator method retrieves the memory allocator proposed by this pin. After the allocator has been selected, this method returns a pointer to the selected allocator.
IMemInputPin::GetAllocatorRequirements

The GetAllocatorRequirements method retrieves the allocator properties requested by the input pin.
IMemInputPin::NotifyAllocator

The NotifyAllocator method specifies an allocator for the connection.
IMemInputPin::Receive

The Receive method receives the next media sample in the stream.
IMemInputPin::ReceiveCanBlock

The ReceiveCanBlock method determines whether calls to the IMemInputPin::Receive method might block.
IMemInputPin::ReceiveMultiple

The ReceiveMultiple method receives multiple samples in the stream.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)