MFT_CODEC_MERIT_Attribute attribute

Contains the merit value of a hardware codec.

Data type

UINT32

Get/set

To get this attribute, call IMFAttributes::GetUINT32.

To set this attribute, call IMFAttributes::SetUINT32.

Remarks

This attribute is set on the activation object for a Media Foundation transform (MFT) that represents a hardware codec. The value of the attribute is the codec's merit value.

This attribute controls the order in which the MFTEnumEx function enumerates codecs, if the MFT_ENUM_FLAG_SORTANDFILTER flag is set. MFTs with a merit value appear higher in the list than other MFTs.

This attribute does not contain a trusted value. To verify the codec's actual merit value, call the MFGetMFTMerit function.

If the value of the MFT_CODEC_MERIT_Attribute attribute does not match the merit value retrieved by MFGetMFTMerit, the IMFActivate::ActivateObject method fails and returns MF_E_INVALID_CODEC_MERIT.

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

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 R2 [desktop apps | UWP apps]
Header
Mftransform.h

See also

Alphabetical List of Media Foundation Attributes

Transform Attributes