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 codeDescription
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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wmcodecdsp.h

See also

IWMResamplerProps Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft