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

This topic applies to Windows XP or later.

The VMRVIDEOSTREAMINFO structure is used in the VMR-7 filter's call to IVMRImageCompositor::CompositeImage on the image compositor.

Syntax

typedef struct _VMRVIDEOSTREAMINFO {
  LPDIRECTDRAWSURFACE7 pddsVideoSurface;
  DWORD                dwWidth;
  DWORD                dwHeight;
  DWORD                dwStrmID;
  FLOAT                fAlpha;
  DDCOLORKEY           ddClrKey;
  NORMALIZEDRECT       rNormal;
} VMRVIDEOSTREAMINFO;

Members

pddsVideoSurface

Specifies the DirectDraw surface that contains the video to be composited.

dwWidth

Specifies the width of the video rectangle.

dwHeight

Specifies the height of the video rectangle.

dwStrmID

Specifies the input stream. This value corresponds to the input pin.

fAlpha

Specifies the alpha value for this stream. (Not per-pixel alpha.)

ddClrKey

Specifies the source color key value or -1 if color keying is not to be used for this stream.

rNormal

Specifies the position of the image in composition space.

Requirements

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

See also

DirectShow Structures