Windows Media Audio and Video Codec and DSP APIs IWMCodecOutputTimestamp::GetNextOutputTime 

banner art

Previous Next

IWMCodecOutputTimestamp::GetNextOutputTime

Queries the decoder for the time stamp of the upcoming output sample. Use this method if you need to know the time of the sample before calling IMediaObject::ProcessOutput to get the sample.

Syntax

  HRESULT GetNextOutputTime(
  REFERENCE_TIME*  prtTime
);

Parameters

prtTime

[out]  Address of a variable that receives the presentation time of the next sample.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Remarks

This method is important when decoding video using frame interpolation, because the rendering application cannot predict the time stamps of interpolated frames.

Requirements

Header: wmcodecdsp.h

Library: wmvdmod.dll

See Also

Previous Next