Export (0) Print
Expand All
Expand Minimize

MFInitMediaTypeFromMFVideoFormat 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.]

Initializes a media type from an MFVIDEOFORMAT structure.

Syntax


HRESULT MFInitMediaTypeFromMFVideoFormat(
  IMFMediaType *pMFType,
  const MFVIDEOFORMAT *pMFVF,
  UINT32 cbBufSize
);

Parameters

pMFType

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

pMFVF

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

cbBufSize

Size of the MFVIDEOFORMAT structure, in bytes.

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