Share via


IMediaObjectInPlace Interface

 
Microsoft DirectShow 9.0

IMediaObjectInPlace Interface

The IMediaObjectInPlace interface provides methods for processing data in place. A Microsoft DirectX Media Object (DMO) can expose this interface if it meets the following conditions:

  • It has one input stream and one output stream.
  • Both streams use the same media type.
  • The output is produced in place on the buffer; that is, without copying data.

This interface provides an optimized way to process data. The application calls a single IMediaObjectInPlace::Process method instead of the IMediaObject::ProcessInput and IMediaObject::ProcessOutput methods. However, any DMO that implements this interface must also implement the IMediaObject interface. Therefore, an application is never obligated to use this interface, and a DMO is never guaranteed to implement it.

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

Method Description
Clone Creates a copy of the DMO in its current state.
GetLatency Retrieves the latency introduced by this DMO.
Process Processes a block of data.

Requirements

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