IWMCodecPrivateData::SetPartialOutputType method (wmcodecdsp.h)

Gives the codec the output media type without the codec data. This enables the codec to generate the private data.

Syntax

HRESULT SetPartialOutputType(
  [in] DMO_MEDIA_TYPE *pmt
);

Parameters

[in] pmt

Address of the partial output 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.

Remarks

The DMO_MEDIA_TYPE that you pass to this method is only partial in that it does not include the appended private data. It must be complete in all other ways.

If you are setting properties on an encoder, you must finish that configuration before getting the private data. Changing properties invalidates any private data previously retrieved. If you change properties after getting the private data, retrieve it again and reset the output type.

You must call this method before calling IWMCodecPrivateData::GetPrivateData to get the private data.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmcodecdsp.h

See also

IWMCodecPrivateData Interface