Partager via


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;

Elements

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_LINEAR y = x 0.0 – 1.0
MP_CURVE_SQUARE y = x2 0.0 – 1.0
MP_CURVE_INVSQUARE y = 1 – x2 0.0 – 1.0
MP_CURVE_SINE y = sin(x) –π/2 – π/2

For Boolean and enumeration parameters, only MP_CURVE_JUMP is valid.

Requirements

  Header: Medparam.h

See Also

© 2004 Microsoft Corporation. All rights reserved.