Multimedia Streaming Data Types


This section describes the Microsoft® DirectShow™ multimedia streaming data types.
Data type Description
STREAM_TIME Stream time measured in 100-nanosecond increments. This type is defined to be a 64-bit integer.
MSPID Media stream purpose IDs define the purpose of a media stream. A purpose ID is simply a GUID.
STREAM_TYPE Defines the direction of data flow for the stream.
STREAM_STATE Describes the state of the stream.


STREAM_TYPE

Multimedia Streaming Data Types

Defines the direction of data flow for the stream.

typedef enum {
	STREAMTYPE_READ         = 0,
	STREAMTYPE_WRITE        = 1,
	STREAMTYPE_TRANSFORM= 2
} STREAM_TYPE;
Values
STREAMTYPE_READ
Application can read the stream.
STREAMTYPE_WRITE
Application can write into the stream.
STREAMTYPE_TRANSFORM
Application reads and writes the stream.
Remarks

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


STREAM_STATE

Multimedia Streaming Data Types

Describes the state of the stream.

typedef enum {
	STREAMSTATE_STOP        = 0,
	STREAMSTATE_RUN         = 1
} STREAM_STATE;
Values
STREAMSTATE_STOP
Stop state.
STREAMSTATE_RUN
Run state.
Remarks

The state is controlled by calling the IMultiMediaStream::SetState method.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.