Поделиться через


IAMLatency Interface

 
Microsoft DirectShow 9.0

IAMLatency Interface

The IAMLatency interface reports the amount of latency that a filter introduces into the graph. Latency is defined as the time that it takes the filter to process a sample. For a source filter, latency is the filter's maximum buffer size, measured in time. For example, a video capture filter that buffers one frame at 30 frames per second introduces a latency of about 33 milliseconds.

Currently, there is no support for using this interface by itself. A source filter that streams live or real-time data should implement the IAMPushSource interface, which inherits from this interface.

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

Method Description
GetLatency Retrieves the expected latency associated with this filter.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.