STREAM_ID_MAP structure (strmif.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 STREAM_ID_MAP structure describes an elementary stream within an MPEG-2 program stream. Used with the IEnumStreamIdMap interface methods.

Syntax

typedef struct STREAM_ID_MAP {
  ULONG stream_id;
  DWORD dwMediaSampleContent;
  ULONG ulSubstreamFilterValue;
  int   iDataOffset;
} STREAM_ID_MAP;

Members

stream_id

Specifies the ID of the PES stream.

dwMediaSampleContent

Specifies the media contents of the stream. May be one of the following values defined in axextend.idl:

MPEG2_PROGRAM_STREAM_MAP (0x00000000)

MPEG2_PROGRAM_ELEMENTARY_STREAM (0x00000001)

MPEG2_PROGRAM_DIRECTORY_PES_PACKET (0x00000002)

MPEG2_PROGRAM_PACK_HEADER (0x00000003)

MPEG2_PROGRAM_PES_STREAM (0x00000004)

MPEG2_PROGRAM_SYSTEM_HEADER (0x00000005)

ulSubstreamFilterValue

Specifies the substream within the elementary stream. If no substream filtering is required, use SUBSTREAM_FILTER_VAL_NONE (0x10000000).

iDataOffset

Specifies the offset in bytes for the substream. If no filtering is required, specify 0.

Requirements

Requirement Value
Header strmif.h (include Dshow.h)

See also

DirectShow Structures