共用方式為


IWMResamplerProps::SetUserChannelMtx Method

Specifies the channel matrix.

Syntax

HRESULT SetUserChannelMtx(
  [in]  ChMtxType *userChannelMtx
);

Parameters

  • userChannelMtx [in]
    Pointer to an array of floating-point values that represents a channel conversion matrix.

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

This method is equivalent to setting the MFPKEY_WMRESAMP_CHANNELMTX property, except that the matrix is represented differently:

  • Values are floating point.
  • The matrix is transposed.

To convert from the integer values given in the MFPKEY_WMRESAMP_CHANNELMTX property to floating-point values, use the following formula:

(float)pow(10.0,((double)Coeff)/(65536.0*20.0))

where Coeff is an integer coefficient.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wmcodecdsp.h

See Also

IWMResamplerProps Interface

 

 

Send comments about this topic to Microsoft

Build date: 4/7/2010