MFT_CODEC_MERIT_Attribute attribute

Contains the merit value of a hardware codec.

Data type

UINT32

Syntax

DECLSPEC_SELECTANY GUID MFT_CODEC_MERIT_Attribute = {0x88a7cb15,0x7b07,0x4a34,{0x91,0x28,0xe6,0x4c,0x67,0x3,0xc4,0xd3} }  

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

Header: Declared in mftransform.h.