Expand Minimize

MF_NALU_LENGTH_INFORMATION attribute

Indicates the lengths of NALUs in the sample. This is a MF BLOB that is set on compressed input samples to the H.264 decoder.

Data type

BLOB

Remarks

In order for this attribute to be set, the media must be of type MEDIASUBTYPE_H264 and the MF_NALU_LENGTH_SET attribute must be set on the input media type of MEDIASUBTYPE_H264.

Set MF_NALU_LENGTH_INFORMATION as a BLOB on the input sample, with one DWORD for each NALU in the sample. For example, if there are AUD (9 bytes), SPS (25 bytes), PPS (10 bytes), IDR slice1 (50 k), IDR slice 2 (60 k), then there should be 5 DWORDs with values 9, 25, 10, 50 k, 60 k in the BLOB.

Here some code that sets the BLOB, where rgdwNALULengthInfo is an array of type DWORD and uiNaluLengthIdx is the valid NALU lengths set to the BLOB.



m_spSample->SetBlob( MF_NALU_LENGTH_INFORMATION, 
                    (UINT8*) m_wpParent->m_pdwNALULengthInfo, 
                    sizeof(DWORD)*uiNaluLengthIdx ), 
                    done );


Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfidl.h

See also

Media Type Attributes

 

 

Community Additions

ADD
Show:
© 2014 Microsoft