Bagikan melalui


MP_PARAMINFO structure (medparam.h)

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The MP_PARAMINFO structure contains information about a parameter.

Syntax

typedef struct _MP_PARAMINFO {
  MP_TYPE mpType;
  MP_CAPS mopCaps;
  MP_DATA mpdMinValue;
  MP_DATA mpdMaxValue;
  MP_DATA mpdNeutralValue;
  WCHAR   szUnitText[32];
  WCHAR   szLabel[32];
} MP_PARAMINFO;

Members

mpType

Member of the MP_TYPE enumeration that specifies the valid data type for this parameter.

mopCaps

Bitwise combination of one or more Parameter Capabilities Flags that specify which envelope curves are supported. For Boolean and enumeration parameters, only MP_CAPS_CURVE_JUMP is valid.

mpdMinValue

Minimum value of the parameter. Used only for parameters with numeric values.

mpdMaxValue

Maximum value of the parameter. Used only for parameters with numeric values.

mpdNeutralValue

Default or "neutral" value of the parameter.

szUnitText[32]

NULL-terminated wide-character string that contains the name of the units for the parameter.

szLabel[32]

NULL-terminated wide-character string that contains the name of the parameter.

Remarks

The szUnitText and szLabel members always contain English-language strings. For international support, use the IMediaParamInfo::GetParamText method.

Requirements

Requirement Value
Header medparam.h

See also

DMO Structures