Export (0) Print
Expand All
Expand Minimize

MFCreateMFVideoFormatFromMFMediaType function

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the MFVIDEOFORMAT structure, and use media type attributes instead. For more information, see Video Media Types.]

Creates an MFVIDEOFORMAT structure from a video media type.

Syntax


HRESULT MFCreateMFVideoFormatFromMFMediaType(
  _In_   IMFMediaType *pMFType,
  _Out_  MFVIDEOFORMAT **ppMFVF,
  _Out_  UINT32 *pcbSize
);

Parameters

pMFType [in]

Pointer to the IMFMediaType interface of a video media type.

ppMFVF [out]

Receives a pointer to an MFVIDEOFORMAT structure. The caller must release the memory allocated for the structure by calling CoTaskMemFree.

pcbSize [out]

Receives the size of the MFVIDEOFORMAT structure.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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
Video Media Types

 

 

Community Additions

ADD
Show:
© 2014 Microsoft