IAMAsyncReaderTimestampScaling interface (strmif.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Enables a pull-mode source filter to support larger file sizes.

Inheritance

The IAMAsyncReaderTimestampScaling interface inherits from the IUnknown interface. IAMAsyncReaderTimestampScaling also has these types of members:

Methods

The IAMAsyncReaderTimestampScaling interface has these methods.

 
IAMAsyncReaderTimestampScaling::GetTimestampMode

Gets the filter's time-stamping mode.
IAMAsyncReaderTimestampScaling::SetTimestampMode

Sets the filter's time-stamping mode.

Remarks

In the pull model, the parser filter requests data from the source filter by calling IAsyncReader::Request. The input to this method is a media sample. The time stamp on the sample specifies the location to read in the stream, as a byte offset.

By default, the time stamp uses the following formula: Time = byte offset × 10000000. This scaling factor limits the effective file size to about 860 GB. To support larger file sizes, call SetTimestampMode with the value TRUE. This call sets the scaling factor to 1, so the formula becomes: Time = byte offset.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)

See also

Pull Model