Multimedia Streaming Data Types

This article describes the Microsoft® DirectShow® multimedia streaming data types.
Data typeDescription
MSPIDMedia stream purpose IDs define the purpose of a media stream. You declare a purpose ID as a GUID with a typedef.
STREAM_STATEDescribes the state of the stream.
STREAM_TIMEStream time measured in 100-nanosecond increments. This type is defined to be a 64-bit integer (LONGLONG).
STREAM_TYPEDefines the direction of data flow for the stream.

STREAM_STATE

Multimedia Streaming Data Types

Describes the state of the stream.

Syntax

typedef enum {
    STREAMSTATE_STOP        = 0,
    STREAMSTATE_RUN         = 1
} STREAM_STATE;

Elements

STREAMSTATE_STOP
Stop state.
STREAMSTATE_RUN
Run state.

Remarks

Change the state by calling the IMultiMediaStream::SetState method.

STREAM_TYPE

Multimedia Streaming Data Types

Defines the direction of data flow for the stream.

Syntax

typedef enum {
    STREAMTYPE_READ         = 0,
    STREAMTYPE_WRITE        = 1,
    STREAMTYPE_TRANSFORM    = 2
} STREAM_TYPE;

Elements

STREAMTYPE_READ
Application can read the stream.
STREAMTYPE_WRITE
Application can write to the stream.
STREAMTYPE_TRANSFORM
Application reads and writes to the stream.

Remarks

Transform streams are read/write where the sample is updated in place.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.