MFSampleExtension_SingleField attribute

Specifies whether a video sample contains a single field or two interleaved fields. This attribute applies to media samples.

Data type

BOOL stored as UINT32

Syntax

GUID MFSampleExtension_SingleField = {0x9d85f816,0x658b,0x455a,{0xbd,0xe0,0x9f,0xa7,0xe1,0x5a,0xb8,0xf9} }  

Get/set

To get this attribute, call IMFAttributes::GetUINT32

To set this attribute, call IMFAttributes::SetUINT32

Applies to

IMFSample:

Remarks

If the value is TRUE, the sample contains one field. If the value is FALSE or the attribute is not set, the sample contains a complete frame. (Two fields if interlaced, or a progressive frame.)

If the media type is progressive frames or interleaved fields, this attribute must be FALSE or left unset.

If the media type is single field, this attribute must be TRUE. Set the MFSampleExtension_BottomFieldFirst attribute on the sample to indicate whether it is the upper field or the lower field.

Currently the enhanced video renderer (EVR) does not support content that switches between interlaced frames and single fields.

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

Requirements

Header: Declared in mfapi.h.