Condividi tramite


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

  Header: Declared in Mediaobj.h; include Dmo.h
  Library: Dmoguids.lib.

© 2004 Microsoft Corporation. All rights reserved.