Share via


IWMCodecPrivateData::SetPartialOutputType Method

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

  • pmt [in]
    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

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wmcodecdsp.h

See Also

IWMCodecPrivateData Interface

 

 

Send comments about this topic to Microsoft

Build date: 4/7/2010