Share via


VMR9_SampleFormat enumeration (vmr9.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 VMR9_SampleFormat enumeration type describes the interlacing of a video stream.

Syntax

typedef enum _VMR9_SampleFormat {
  VMR9_SampleReserved = 1,
  VMR9_SampleProgressiveFrame = 2,
  VMR9_SampleFieldInterleavedEvenFirst = 3,
  VMR9_SampleFieldInterleavedOddFirst = 4,
  VMR9_SampleFieldSingleEven = 5,
  VMR9_SampleFieldSingleOdd = 6
} VMR9_SampleFormat;

Constants

 
VMR9_SampleReserved
Value: 1
Reserved; do not use.
VMR9_SampleProgressiveFrame
Value: 2
Progressive frame; no interleaving
VMR9_SampleFieldInterleavedEvenFirst
Value: 3
Each sample contains two interleaved fields, with the even field first.
VMR9_SampleFieldInterleavedOddFirst
Value: 4
Each sample contains two interleaved fields, with the odd field first.
VMR9_SampleFieldSingleEven
Value: 5
The sample contains a single field, and each line in the sample corresponds to the even lines in a deinterlaced frame. That is, lines 0, 1, 2,... in the sample correspond to lines 0, 2, 4,... in the deinterlaced frame. The missing lines must be constructed when the frame is deinterlaced.
VMR9_SampleFieldSingleOdd
Value: 6
The sample contains a single field, and each line in the sample corresponds to the odd lines in a de-interlaced frame.

Requirements

Requirement Value
Header vmr9.h

See also

DirectShow Enumerated Types

VMR9VideoDesc

VMR9VideoStreamInfo