Share via


MP_TYPE enumeration (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_TYPE enumeration specifies the data type for a parameter.

Syntax

typedef enum _MP_Type {
  MPT_INT = 0,
  MPT_FLOAT,
  MPT_BOOL,
  MPT_ENUM,
  MPT_MAX
} MP_TYPE;

Constants

 
MPT_INT
Value: 0
Value is a signed 32-bit integer.
MPT_FLOAT
Value is a 32-bit IEEE floating-point value.
MPT_BOOL
Value is Boolean. Use the following constants for Boolean parameters:
MPT_ENUM
Value is taken from a set of consecutive integers.
MPT_MAX
Reserved.

Remarks

To reduce type conversions at run time, all parameters have 32-bit float values, defined as type MP_DATA. The members of this enumeration specify how a given parameter should be interpreted.

Requirements

Requirement Value
Header medparam.h

See also

DMO Enumerated Types

MP_PARAMINFO