Microsoft DirectX 9.0

IMediaBuffer Interface

The IMediaBuffer interface provides methods for manipulating a data buffer. Buffers passed to the IMediaObject::ProcessInput and ProcessOutput methods must implement this interface.

In addition to the methods inherited from IUnknown, the IMediaBuffer interface exposes the following methods.

Method Description
GetBufferAndLength Retrieves the buffer and the size of the valid data in the buffer.
GetMaxLength Retrieves the maximum number of bytes this buffer can hold.
SetLength Specifies the length of the data currently in the buffer.

Requirements

Declared in Mediaobj.h; include Dmo.h.

Link to Dmoguids.lib.