MPEG2VIDEOINFO structure (dvdmedia.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 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 (GOP) time code at start of data. This field is not used for DVD.
cbSequenceHeader
Length of the sequence header, in bytes. For DVD, set this field to zero. The sequence header is given in the dwSequenceHeader field.
dwProfile
Specifies the MPEG-2 profile as an AM_MPEG2Profile enumeration type.
dwLevel
Specifies the MPEG-2 level as an AM_MPEG2Level enumeration type.
dwFlags
Flag indicating preferences. Set one or a combination of the following values.
Set undefined flags to zero or connection will be rejected. For more information on how to use these flags, see MPEG Decoder Preprocessing Transformations.
dwSequenceHeader[1]
Start of an array that contains the sequence header, including quantization matrices and the sequence extension, if required. This field is typed as DWORD array to enforce 32-bit alignment. The size of the array, in bytes, is given in the cbSequenceHeader member.
Remarks
The BITMAPINFOHEADER structure contained in the VIDEOINFOHEADER2 structure (hdr) cannot be followed by any palette entries or color masks, because this structure is immediately followed by the dwStartTimeCode member.
Requirements
Requirement | Value |
---|---|
Header | dvdmedia.h |