IMemInputPin interface (strmif.h)

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.


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


The IMemInputPin interface has these methods.


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.

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

The NotifyAllocator method specifies an allocator for the connection.

The Receive method receives the next media sample in the stream.

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

The ReceiveMultiple method receives multiple samples in the stream.


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)