Table of Contents

Enum MftMessageType

Namespace
NAudio.MediaFoundation
Assembly
NAudio.Wasapi.dll

Defines messages for a Media Foundation transform (MFT).

public enum MftMessageType

Fields

CommandMarker = 536870912

Marks a point in the stream. This message applies only to asynchronous MFTs.

MFT_MESSAGE_COMMAND_MARKER

CommandTick = 4

Command tick.

MFT_MESSAGE_COMMAND_TICK

Drain = 1

Requests the MFT to drain any stored data.

MFT_MESSAGE_COMMAND_DRAIN

DropSamples = 3

Drop samples.

MFT_MESSAGE_DROP_SAMPLES

Flush = 0

Requests the MFT to flush all stored data.

MFT_MESSAGE_COMMAND_FLUSH

NotifyBeginStreaming = 268435456

Notifies the MFT that streaming is about to begin.

MFT_MESSAGE_NOTIFY_BEGIN_STREAMING

NotifyEndOfStream = 268435458

Notifies the MFT that an input stream has ended.

MFT_MESSAGE_NOTIFY_END_OF_STREAM

NotifyEndStreaming = 268435457

Notifies the MFT that streaming is about to end.

MFT_MESSAGE_NOTIFY_END_STREAMING

NotifyStartOfStream = 268435459

Notifies the MFT that the first sample is about to be processed.

MFT_MESSAGE_NOTIFY_START_OF_STREAM

SetD3DManager = 2

Sets or clears the Direct3D Device Manager for DirectX Video Acceleration (DXVA).

MFT_MESSAGE_SET_D3D_MANAGER

Remarks

Windows SDK name: MFT_MESSAGE_TYPE. Defined in mftransform.h. See MS Learn.