IMFSinkWriterEncoderConfig::PlaceEncodingParameters method (mfreadwrite.h)

Dynamically updates the encoder configuration with a collection of new encoder settings.

Syntax

HRESULT PlaceEncodingParameters(
  [in] DWORD         dwStreamIndex,
  [in] IMFAttributes *pEncodingParameters
);

Parameters

[in] dwStreamIndex

Specifies the stream index.

[in] pEncodingParameters

A set of encoding parameters to configure the encoder with.

Return value

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

Remarks

The encoder will be configured with these settings after all previously queued input media samples have been sent to it through IMFTransform::ProcessInput.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header mfreadwrite.h

See also

IMFSinkWriter

IMFSinkWriterEncoderConfig

IMFSinkWriterEx