Share via


IMediaDet::get_FrameRate

 
Microsoft DirectShow 9.0

IMediaDet::get_FrameRate

The get_FrameRate method retrieves the frame rate of the current stream. The stream must be a video stream.

Syntax

  HRESULT get_FrameRate(
    double *pVal
);

Parameters

pVal

[out, retval] Pointer to a variable that receives the frame rate, in frames per second.

Return Value

Returns an HRESULT value. Possible values include the following:

Value Description
S_FALSE Video format header does not specify a frame rate.
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.
VFW_E_INVALIDMEDIATYPE Invalid media type.

Remarks

This method cannot retrieve the frame rate from an ASF file.

Before calling this method, set the file name and stream by calling IMediaDet::put_Filename and IMediaDet::put_CurrentStream.

If the media detector is in bitmap grab mode, this method returns E_INVALIDARG. For more information, see IMediaDet::EnterBitmapGrabMode.

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