Microsoft DirectX 8.1 (C++)

MPEG2VIDEOINFO Structure

The MPEG2VIDEOINFO structure describes an MPEG-2 video stream.

Syntax

typedef struct tagMPEG2VIDEOINFO {
    VIDEOINFOHEADER2    hdr;
    DWORD               dwStartTimeCode;   
    DWORD               cbSequenceHeader;     
    DWORD               dwProfile;     
    DWORD               dwLevel;            
    DWORD               dwFlags;            
    DWORD               dwSequenceHeader[1];     
} MPEG2VIDEOINFO;

Members

hdr

VIDEOINFOHEADER2 structure.

dwStartTimeCode

25-bit "group-of-pictures" time code at start of data (not used for DVD).

cbSequenceHeader

Length of the dwSequenceHeader member, in bytes. (Zero for DVD.)

dwProfile

MPEG2Profile enumerated type member.

dwLevel

MPEG2Level enumerated type member.

dwFlags

Flag indicating preferences. Set one or a combination of the following values.

Flag Description
AMMPEG2_DoPanScan If set, the MPEG-2 video decoder should crop the output image based on pan-scan vectors in the picture display extension and change the picture aspect ratio accordingly.
AMMPEG2_DVDLine21Field1 If set, the MPEG-2 decoder must be able to produce an output pin for DVD style closed-captioned data found in the Group Of Pictures (GOP) layer of field 1.
AMMPEG2_DVDLine21Field2 If set, the MPEG-2 decoder must be able to produce an output pin for DVD style closed-captioned data found in the GOP layer of field 2.
AMMPEG2_SourceIsLetterboxed If set, indicates that black bars have been encoded in the top and bottom of the video.
AMMPEG2_FilmCameraMode If set, indicates "film mode" used for the 625/50 (line/field) content. If cleared, indicates that "camera mode" was used.

Set undefined flags to zero or connection will be rejected.

dwSequenceHeader

Sequence header including quantization matrices, if any.

See Also