_DMO_SET_TYPE_FLAGS enumeration (mediaobj.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 DMO_SET_TYPE_FLAGS enumeration defines flags for setting the media type on a stream.

Syntax

typedef enum _DMO_SET_TYPE_FLAGS {
  DMO_SET_TYPEF_TEST_ONLY = 0x1,
  DMO_SET_TYPEF_CLEAR = 0x2
} ;

Constants

 
DMO_SET_TYPEF_TEST_ONLY
Value: 0x1
Test the media type but do not set it.
DMO_SET_TYPEF_CLEAR
Value: 0x2
Clear the media type that was set for the stream.

Remarks

The DMO_SET_TYPEF_TEST_ONLY and DMO_SET_TYPEF_CLEAR flags are mutually exclusive. Do not set both flags.

Requirements

   
Header mediaobj.h

See also

DMO Enumerated Types

IMediaObject::SetInputType

IMediaObject::SetOutputType