Skip to content

Latest commit

 

History

History
141 lines (110 loc) · 4.1 KB

nf-wmcontainer-imfasfcontentinfo-generateheader.md

File metadata and controls

141 lines (110 loc) · 4.1 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:wmcontainer.IMFASFContentInfo.GenerateHeader
IMFASFContentInfo::GenerateHeader (wmcontainer.h)
Encodes the data in the MFASFContentInfo object into a binary Advanced Systems Format (ASF) header.
972f5ae7-ad00-4c3b-8ec4-2cef4ce03c4e
GenerateHeader
GenerateHeader method [Media Foundation]
GenerateHeader method [Media Foundation]
IMFASFContentInfo interface
IMFASFContentInfo interface [Media Foundation]
GenerateHeader method
IMFASFContentInfo.GenerateHeader
IMFASFContentInfo::GenerateHeader
mf.imfasfcontentinfo_generateheader
wmcontainer/IMFASFContentInfo::GenerateHeader
mf\imfasfcontentinfo_generateheader.htm
mf
972f5ae7-ad00-4c3b-8ec4-2cef4ce03c4e
12/05/2018
972f5ae7-ad00-4c3b-8ec4-2cef4ce03c4e, GenerateHeader, GenerateHeader method [Media Foundation], GenerateHeader method [Media Foundation],IMFASFContentInfo interface, IMFASFContentInfo interface [Media Foundation],GenerateHeader method, IMFASFContentInfo.GenerateHeader, IMFASFContentInfo::GenerateHeader, mf.imfasfcontentinfo_generateheader, wmcontainer/IMFASFContentInfo::GenerateHeader
wmcontainer.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Mfuuid.lib
Windows
19H1
IMFASFContentInfo::GenerateHeader
wmcontainer/IMFASFContentInfo::GenerateHeader
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFASFContentInfo.GenerateHeader

IMFASFContentInfo::GenerateHeader

-description

Encodes the data in the MFASFContentInfo object into a binary Advanced Systems Format (ASF) header.

-parameters

-param pIHeader [in, out]

A pointer to the IMFMediaBuffer interface of the buffer object that will receive the encoded header. Set to NULL to retrieve the size of the header.

-param pcbHeader [out]

Size of the encoded ASF header in bytes. If pIHeader is NULL, this value is set to the buffer size required to hold the encoded header.

-returns

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

Return code Description
S_OK
The method succeeded.
MF_E_INVALIDREQUEST
The ASF Header Objects do not exist for the media that the ContentInfo object holds reference to.
MF_E_ASF_INVALIDDATA
The ASF Header Object size exceeds 10 MB.
MF_E_BUFFERTOOSMALL
The buffer passed in pIHeader is not large enough to hold the ASF Header Object information.

-remarks

The size received in the pcbHeader parameter includes the padding size. The content information shrinks or expands the padding data depending on the size of the ASF Header Objects.

During this call, the stream properties are set based on the encoding properties of the profile. These properties are available through the IMFMetadata interface.

-see-also

ASF ContentInfo Object

Generating a New ASF Header Object

IMFASFContentInfo