Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFInitMediaTypeFromAMMediaType function

Initializes a media type from a DirectShow AM_MEDIA_TYPE structure.

Syntax


HRESULT MFInitMediaTypeFromAMMediaType(
  IMFMediaType *pMFType,
  const AM_MEDIA_TYPE *pAMType
);

Parameters

pMFType

Pointer to the IMFMediaType interface of the media type to initialize. To create the uninitialized media type object, call MFCreateMediaType.

pAMType

Pointer to an AM_MEDIA_TYPE structure that describes the media type. The caller must fill in the structure members before calling this function.

Return value

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

Return codeDescription
S_OK

The function succeeded.

 

Remarks

This function can also be used with the following format structures that are equivalent to AM_MEDIA_TYPE:

  • DMO_MEDIA_TYPE (DirectX Media Objects)

  • WM_MEDIA_TYPE (Windows Media Format SDK)

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Media Type Conversions
Media Types

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.