Adds information about a Media Foundation transform (MFT) to the registry.
HRESULT MFTRegister( CLSID clsidMFT, GUID guidCategory, LPWSTR pszName, UINT32 Flags, UINT32 cInputTypes, MFT_REGISTER_TYPE_INFO *pInputTypes, UINT32 cOutputTypes, MFT_REGISTER_TYPE_INFO *pOutputTypes, IMFAttributes *pAttributes );
The CLSID of the MFT. The MFT must also be registered as a COM object using the same CLSID.
GUID that specifies the category of the MFT. For a list of MFT categories, see MFT_CATEGORY.
Wide-character string that contains the friendly name of the MFT.
Bitwise OR of zero or more of the following flags from the _MFT_ENUM_FLAG enumeration:
The MFT performs asynchronous processing in software. See Asynchronous MFTs. This flag does not apply to hardware transforms.
Requires Windows 7.
The application must unlock the MFT in order to use it. See IMFFieldOfUseMFTUnlock.
Requires Windows 7.
The MFT performs hardware-based data processing, using either the AVStream driver or a GPU-based proxy MFT. MFTs in this category always process data asynchronously. See Hardware MFTs.
Note This flag applies to video codecs and video processors that perform their work entirely in hardware. It does not apply to software decoders that use DirectX Video Acceleration to assist decoding.
||The MFT performs synchronous processing in software. This flag does not apply to hardware transforms.|
The MFT is optimized for transcoding and should not be used for playback.
Requires Windows 7.
Setting Flags to zero is equivalent to setting the MFT_ENUM_FLAG_SYNCMFT flag. The default processing model for MFTs is synchronous processing.
Prior to Windows 7, the Flags parameter was reserved.
Number of elements in the pInputTypes array.
Pointer to an array of MFT_REGISTER_TYPE_INFO structures. Each member of the array specifies an input format that the MFT supports. This parameter can be NULL.
This parameter can be NULL. However, if the parameter is NULL, the MFT will be enumerated only when an application specifies NULL for the desired input type.
Number of elements in the pOutputTypes array.
Pointer to an array of MFT_REGISTER_TYPE_INFO structures. Each member of the array defines an output format that the MFT supports.
This parameter can be NULL. However, if the parameter is NULL, the MFT will be enumerated only when an application specifies NULL for the desired output type.
Pointer to the IMFAttributes interface of an attribute store that contains additional registry information. This parameter can be NULL. If the parameter is non-NULL, the attributes are written to the registery as a byte array. You can use the MFTGetInfo function to retrieve the attributes.
The following attribute is defined for this parameter:
|Contains the merit value of a hardware codec. See Codec Merit.|
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The registry entries created by this function are read by the following functions:
|MFTEnum||Enumerates MFTs by media type and category.|
|MFTEnumEx||Extended version of MFTEnum.|
|MFTGetInfo||Looks up an MFT by CLSID and retrieves the registry information.|
This function does not register the CLSID of the MFT for the CoCreateInstance or CoGetClassObject functions.
To remove the entries from the registry, call MFTUnregister. If you remove an MFT from the system, you should always call MFTUnregister.
The formats given in the pInputTypes and pOutputTypes parameters are intended to help applications search for MFTs by format. Applications can use the MFTEnum or MFTEnumEx functions to enumerate MFTs that match a particular set of formats.
It is recommended to specify at least one input type in pInputTypes and one output type in the pOutputTypes parameter. Otherwise, the MFT might be skipped in the enumeration.
On 64-bit Windows, the 32-bit version of this function registers the MFT in the 32-bit node of the registry. For more information, see 32-bit and 64-bit Application Data in the Registry.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|