IAMDevMemoryControl 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.]

Note  This interface is no longer supported by the AVI Splitter.
 
Note  It was defined to support certain older hardware decoders that required AVI files to be read directly into hardware memory. The interface enables the AVI parser to allocate memory from the downstream filter but still provide its own allocator. There should be no need for any newer devices to support this interface.
 
A device memory control object supports IAMDevMemoryControl. This object is aggregated with an IMemAllocator object that is used in the connection. Typically, filters will call the IAMDevMemoryAllocator::GetDevMemoryObject method to obtain a pointer to this interface.

Implement this interface with the IAMDevMemoryAllocator interface when pins need to have greater control of memory allocation.

Use this interface to synchronize the completion of writing data to a memory allocator, and to get the device ID of the on-board memory allocator.

Inheritance

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

Methods

The IAMDevMemoryControl interface has these methods.

 
IAMDevMemoryControl::GetDevId

Note  The IAMDevMemoryControl interface is deprecated. Retrieves the device ID of the on-board memory allocator.
IAMDevMemoryControl::QueryWriteSync

Note  The IAMDevMemoryControl interface is deprecated. Checks if the memory supported by the allocator requires the use of the IAMDevMemoryControl::WriteSync method.
IAMDevMemoryControl::WriteSync

Note  The IAMDevMemoryControl interface is deprecated. Used to synchronize with the completed write. This method returns when any data being written to the particular allocator region is fully written into the memory.

Requirements

Requirement Value
Target Platform Windows
Header strmif.h

See also

Deprecated Interfaces