Skip to content

Latest commit

 

History

History
105 lines (80 loc) · 3.03 KB

nf-mfapi-mfinitmediatypefrommpeg2videoinfo.md

File metadata and controls

105 lines (80 loc) · 3.03 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfapi.MFInitMediaTypeFromMPEG2VideoInfo
MFInitMediaTypeFromMPEG2VideoInfo function (mfapi.h)
Initializes a media type from a DirectShow MPEG2VIDEOINFO structure.
44ad976e-2b15-454c-9422-26fc960e03aa
MFInitMediaTypeFromMPEG2VideoInfo
MFInitMediaTypeFromMPEG2VideoInfo function [Media Foundation]
mf.mfinitmediatypefrommpeg2videoinfo
mfapi/MFInitMediaTypeFromMPEG2VideoInfo
mf\mfinitmediatypefrommpeg2videoinfo.htm
mf
44ad976e-2b15-454c-9422-26fc960e03aa
12/05/2018
44ad976e-2b15-454c-9422-26fc960e03aa, MFInitMediaTypeFromMPEG2VideoInfo, MFInitMediaTypeFromMPEG2VideoInfo function [Media Foundation], mf.mfinitmediatypefrommpeg2videoinfo, mfapi/MFInitMediaTypeFromMPEG2VideoInfo
mfapi.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Mfplat.lib
Mfplat.dll
Windows
19H1
MFInitMediaTypeFromMPEG2VideoInfo
mfapi/MFInitMediaTypeFromMPEG2VideoInfo
c++
APIRef
kbSyntax
DllExport
mfplat.dll
MFInitMediaTypeFromMPEG2VideoInfo

MFInitMediaTypeFromMPEG2VideoInfo function

-description

Initializes a media type from a DirectShow MPEG2VIDEOINFO structure.

-parameters

-param pMFType

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

-param pMP2VI

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

-param cbBufSize

Size of the MPEG2VIDEOINFO structure, in bytes.

-param pSubtype

Pointer to a subtype GUID. This parameter can be NULL. If the subtype GUID is specified, the function uses it to set the media subtype. Otherwise, the function attempts to deduce the subtype from the biCompression field contained in the MPEG2VIDEOINFO structure.

-returns

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

Return code Description
S_OK
The function succeeded.

-see-also

Media Foundation Functions

Media Type Conversions

Media Types