Export (0) Print
Expand All

IMFTransform::AddInputStreams method

Adds one or more new input streams to this Media Foundation transform (MFT).

Syntax


HRESULT AddInputStreams(
  [in]  DWORD cStreams,
  [in]  DWORD *adwStreamIDs
);

Parameters

cStreams [in]

Number of streams to add.

adwStreamIDs [in]

Array of stream identifiers. The new stream identifiers must not match any existing input streams.

Return value

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

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

Invalid argument.

E_NOTIMPL

The MFT has a fixed number of input streams.

 

Remarks

If the new streams exceed the maximum number of input streams for this transform, the method returns E_INVALIDARG. To find the maximum number of input streams, call IMFTransform::GetStreamLimits.

If any of the new stream identifiers conflicts with an existing input stream, the method returns E_INVALIDARG.

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

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mftransform.h

Library

Mfuuid.lib

See also

IMFTransform
Media Foundation Transforms

 

 

Community Additions

ADD
Show:
© 2014 Microsoft