Microsoft DirectX 9.0

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 Values

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

See Also