Represents a block of memory that contains media data. Use this interface to access the data in the buffer.
interface IMFMediaBuffer : public IUnknown
If the buffer contains 2-D image data (such as an uncompressed video frame), you should query the buffer for the IMF2DBuffer interface. The methods on IMF2DBuffer are optimized for 2-D data.
To get a buffer from a media sample, call one of the following IMFSample methods:
To create a new buffer object, use one of the following functions.
| Function | Description |
|---|---|
| MFCreateMemoryBuffer | Creates a buffer and allocates system memory. |
| MFCreateMediaBufferWrapper | Creates a media buffer that wraps an existing media buffer. |
| MFCreateDXSurfaceBuffer | Creates a buffer that manages a DirectX surface. |
| MFCreateAlignedMemoryBuffer | Creates a buffer and allocates system memory with a specified alignment. |
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use mfuuid.lib.