IAMDevMemoryAllocator 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.]
Use this interface when applications need to control the memory of codecs with on-board memory.
Inheritance
The IAMDevMemoryAllocator interface inherits from the IUnknown interface. IAMDevMemoryAllocator also has these types of members:
Methods
The IAMDevMemoryAllocator interface has these methods.
IAMDevMemoryAllocator::Alloc Note The IAMDevMemoryAllocator interface is deprecated. Allocates a memory buffer. |
IAMDevMemoryAllocator::CheckMemory Note The IAMDevMemoryAllocator interface is deprecated. Tests whether the specific instance (device) of the allocator allocated a memory pointer. |
IAMDevMemoryAllocator::Free Note The IAMDevMemoryAllocator interface is deprecated. Frees the previously allocated memory. |
IAMDevMemoryAllocator::GetDevMemoryObject Note The IAMDevMemoryAllocator interface is deprecated. Retrieves an IUnknown interface pointer to a device memory control object that can be aggregated with a custom allocator. |
IAMDevMemoryAllocator::GetInfo Note The IAMDevMemoryAllocator interface is deprecated. Retrieves information about the memory capabilities. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | strmif.h |