Microsoft DirectX 8.1 (C++)

IVMRImagePresenter::PresentImage

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The PresentImage method is called at precisely the moment this video frame should be presented.

Syntax

HRESULT PresentImage(
  DWORD_PTR  dwUserID,
  VMRPRESENTATIONINFO*  lpPresInfo
);

Parameters

dwUserID

[in]  An application-defined DWORD_PTR that uniquely identifies this instance of the VMR in scenarios when multiple instances of the VMR are being used with a single instance of an Allocator-Presenter. See Remarks

lpPresInfo

[in]  Specifies the VMRPRESENTATIONINFO structure.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Applications can create custom blending effects by using a single instance of an Allocator-Presenter with multiple instances of the VMR either in a single filter graph or in multiple filter graphs. Using the allocator presenter in this way enables applications to blend streams from different filter graphs, or blend different streams within the same filter graph. If you are using a single instance of the VMR, set this value to zero.

See Also