IMFTransform::GetStreamCount Method

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

Syntax

public:
HRESULT GetStreamCount(
         DWORD *pcInputStreams,
         DWORD *pcOutputStreams
)  

Parameters

pcInputStreams
Type: DWORD *

[out] Receives the number of input streams.

pcOutputStreams
Type: DWORD *

[out] Receives the number of output streams.

Return value

Type: HRESULT 

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

Refer to Media Foundation return codes.

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

Header: Declared in mftransform.h.

Library: Use Mfuuid.lib.