IAMTimelineSrc::SetDefaultFPS
Microsoft DirectShow 9.0 |
IAMTimelineSrc::SetDefaultFPS
The SetDefaultFPS method sets the source object's default frame rate.
Syntax
HRESULT SetDefaultFPS( double FPS );
Parameters
FPS
Default frame rate, in frames per second.
Return Value
Returns S_OK if successful, or E_INVALIDARG if the specified frame rate is less than zero.
Remarks
The render engine uses this value if it cannot determine the frame rate from the original source file.
Call this method only for source files without a predefined frame rate. For bitmap and JPEG files, the default frame rate is zero, which causes the source to be rendered as a still image. To use the image as the first frame in a DIB sequence set the frame rate to a value greater than zero. For more information, see Working with Sources.
Requirements
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also