MEDIA_SAMPLE_CONTENT enumeration

[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.]

Describes the contents of an elementary stream within an MPEG-2 transport stream. This enumeration is used in the IMPEG2PIDMap interface, which is implemented on the output pins of the MPEG-2 Demultiplexer.

Syntax

typedef enum  { 
  MEDIA_TRANSPORT_PACKET,
  MEDIA_ELEMENTARY_STREAM,
  MEDIA_MPEG2_PSI,
  MEDIA_TRANSPORT_PAYLOAD
} MEDIA_SAMPLE_CONTENT;

Constants

MEDIA_TRANSPORT_PACKET

Specifies a complete transport stream packet to be passed through without processing.

MEDIA_ELEMENTARY_STREAM

Specifies an audio or video PES payload.

MEDIA_MPEG2_PSI

Specifies a PAT, PMT, CAT, or Private data stream. These are complete PSI sections which do not need to be reassembled.

MEDIA_TRANSPORT_PAYLOAD

Specifies gathered TS packet payloads, such as PES packets.

Requirements

Requirement Value
Header
Bdatypes.h (include Bdaiface.h)

See also

DirectShow Enumerated Types