IAMDevMemoryControl Interface (Compact 2013)

3/26/2014

This interface controls and identifies the on-board memory of codecs. A device memory control object supports this interface. 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.

When to Implement

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

When to Use

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.

Methods in Vtable Order

The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.

Method

Description

QueryWriteSync

Checks if the memory supported by the allocator requires the use of the WriteSync method.

WriteSync

Used to synchronize with the completed write operation by returning when any data being written to the specified allocator region is fully written into the memory.

GetDevId

Retrieves the device ID of the on-board memory allocator.

Requirements

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

DirectShow Interfaces