IAMAsyncReaderTimestampScaling::SetTimestampMode method (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.]
Sets the filter's time-stamping mode.
Syntax
HRESULT SetTimestampMode(
[in] BOOL fRaw
);
Parameters
[in] fRaw
Specifies the units for the source filter's time stamps.
Value | Meaning |
---|---|
|
Time stamps are in units of bytes. |
|
Time stamps are in units of bytes × 10000000. To get the offset in bytes, divide the sample time by 10000000. |
The default value is FALSE.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
To support large files (greater than 850 GB), the downstream parser filter can call this method with the value TRUE. For backward compatibility, the default setting is FALSE. Call the method when the pins connect.
Applications should never call this method; doing so will cause the parser filter to misinterpret the time stamps.
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) |