IMFSensorStream::GetMediaType method (mfidl.h)

Retrieves an IMFMediaType representing a supported media type for the sensor stream.

Syntax

HRESULT GetMediaType(
  [in]  DWORD        dwIndex,
  [out] IMFMediaType **ppMediaType
);

Parameters

[in] dwIndex

The 0-based index of the IMFMediaType to retrieve. This value must be between 0 and the value returned by GetMediaTypeCount - 1.

[out] ppMediaType

The retrieved media type.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
The ppMediaType parameter is null.
MF_E_INVALIDINDEX
The dwIndex is not in the allowed range.

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

IMFSensorStream