IMFSensorTransformFactory::InitializeFactory method (mfidl.h)

Called by the media pipeline to initialize the sensor transform.

Syntax

HRESULT InitializeFactory(
  [in]           DWORD         dwMaxTransformCount,
  [in]           IMFCollection *pSensorDevices,
  [in, optional] IMFAttributes *pAttributes
);

Parameters

[in] dwMaxTransformCount

The maximum number of transforms allowed in a single transform. In the current release, this is always 1.

[in] pSensorDevices

A collection of IMFSensorDevice objects representing the available sensors.

[in, optional] pAttributes

The attribute store to be populated by the sensor transform. The only required attribute for sensor transforms is MF_STF_VERSION_INFO.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfidl.h
Library Mfplat.lib; Mfplat.dll

See also

IMFSensorTransformFactory