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 or IMFTransform::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
Client: Requires Windows Vista or Windows XP.
Header: Include wmcodecdsp.h.
See Also