Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFSampleExtension_CleanPoint attribute

Indicates whether a sample is a random access point.

Data type

BOOL stored as UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Applies to

IMFSample

Remarks

This attribute applies to samples. If the attribute is TRUE, the sample is a random access point and decoding can begin from this sample. Otherwise, the sample is not a random access point.

If this attribute is not set, the default value is FALSE.

The GUID constant for this attribute is exported from mfuuid.lib.

Examples


inline BOOL IsRandomAccessPoint(IMFSample *pSample)
{
    // Check for the "clean point" attribute. Default to FALSE.
    return MFGetAttributeUINT32(pSample, MFSampleExtension_CleanPoint, FALSE);
}


Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

See also

Alphabetical List of Media Foundation Attributes
Sample Attributes
Media Samples

 

 

Show:
© 2017 Microsoft