IMFTransform::GetStreamCount method (mftransform.h)

Gets the current number of input and output streams on this Media Foundation transform (MFT).

Syntax

HRESULT GetStreamCount(
  [out] DWORD *pcInputStreams,
  [out] DWORD *pcOutputStreams
);

Parameters

[out] pcInputStreams

Receives the number of input streams.

[out] pcOutputStreams

Receives the number of output streams.

Return value

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

Remarks

The number of streams includes unselected streams—that is, streams with no media type or a NULL media type.

This method should not be called with NULL parameters, although in practice some implementations may allow NULL parameters.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetStreamCount. See Creating Hybrid DMO/MFT Objects.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mftransform.h
Library Mfuuid.lib

See also

IMFTransform

Media Foundation Transforms