Export (0) Print
Expand All

MP_CURVE_TYPE enumeration

The MP_CURVE_TYPE enumeration defines the curve that a media parameter follows within an envelope segment.

Syntax


typedef enum _MP_CURVE_TYPE { 
  MP_CURVE_JUMP       = 0x0001,
  MP_CURVE_LINEAR     = 0x0002,
  MP_CURVE_SQUARE     = 0x0004,
  MP_CURVE_INVSQUARE  = 0x0008,
  MP_CURVE_SINE       = 0x0010
} MP_CURVE_TYPE;

Constants

MP_CURVE_JUMP

No interpolation. Jump to the next point.

MP_CURVE_LINEAR

Linear interpolation.

MP_CURVE_SQUARE

Parabolic curve.

MP_CURVE_INVSQUARE

Inverse square curve.

MP_CURVE_SINE

Sine curve.

Remarks

The following table lists the defined curves and their mathematical equivalents.

Value Curve to Fit Range
MP_CURVE_LINEARy = x0.0 – 1.0
MP_CURVE_SQUAREy = x^20.0 – 1.0
MP_CURVE_INVSQUAREy = 1 –x^20.0 – 1.0
MP_CURVE_SINEy = sin(x)–π/2 – π/2

 

For Boolean and enumeration parameters, only MP_CURVE_JUMP is valid.

Requirements

Header

Medparam.h

See also

DMO Enumerated Types
MP_ENVELOPE_SEGMENT

 

 

Community Additions

ADD
Show:
© 2015 Microsoft