MFInitMediaTypeFromMFVideoFormat function (mfapi.h)
[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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfapi.h |
Library | Mfplat.lib |
DLL | Mfplat.dll |