Microsoft DirectX 8.1 (C++)

IDirectDrawMediaStream::GetTimePerFrame

Retrieves the average frames per second from a video stream.

Syntax

HRESULT GetTimePerFrame(
    STREAM_TIME *pFrameTime
    );

Parameters

pFrameTime

[out] Pointer to a STREAM_TIME value that indicates the average time per frame in 100-nanosecond units. (See Multimedia Streaming Data Types.)

Return Value

Returns S_OK if successful or E_POINTER if the pointer is invalid.

See Also