Microsoft DirectX 9.0 |
Allocates media samples, for moving data between pins.
This interface is used by pins that share allocators, when the input pin exposes the IMemInputPin interface. The pins negotiate which pin will provide the allocator. The allocator is used to allocate memory buffers, retrieve empty buffers, and release buffers. Not every filter creates its own allocator, so one allocator might be used by several filters. For more information, see How Filters Connect.
Applications typically do not use this interface.
To use an allocator, perform the following steps:
Methods in Vtable Order
In addition to the methods inherited from IUnknown, the interface exposes the following methods.
Method | Description |
SetProperties | Specifies the number of buffers to allocate and the size of each buffer. |
GetProperties | Retrieves the number of buffers that the allocator will create, and the buffer properties. |
Commit | Allocates the buffer memory. |
Decommit | Releases the buffer memory. |
GetBuffer | Retrieves a media sample that contains an empty buffer. |
ReleaseBuffer | Releases a media sample. |