Compartilhar via


IMediaSeeking::ConvertTimeFormat

 
Microsoft DirectShow 9.0

IMediaSeeking::ConvertTimeFormat

The ConvertTimeFormat method converts from one time format to another.

Syntax

  HRESULT ConvertTimeFormat(
  LONGLONG *pTarget,
  const GUID *pTargetFormat,
  LONGLONG Source,
  const GUID *pSourceFormat
);

Parameters

pTarget

[out] Pointer to a variable that receives the converted time.

pTargetFormat

[in] Pointer to a GUID that specifies the target format. If NULL, the current format is used. See Time Format GUIDs.

Source

[in] Time value to be converted.

pSourceFormat

[in] Pointer to a GUID that specifies the format to convert. If NULL, the current format is used. See Time Format GUIDs.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG Conversion between these types is not supported.
E_NOTIMPL Method is not supported.
E_POINTER NULL pointer argument.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also