Microsoft DirectX 9.0

IVMRImageCompositor9::CompositeImage

The CompositeImage method composites the current frames available in each input stream.

Syntax

HRESULT CompositeImage(
  IUnknown*  pD3DDevice,
  IDirect3DSurface9*  pddsRenderTarget,
  AM_MEDIA_TYPE*  pmtRenderTarget,
  REFERENCE_TIME  rtStart,
  REFERENCE_TIME  rtEnd,
  D3DCOLOR  dwClrBkGnd,
  VMR9VideoStreamInfo*  pVideoStreamInfo,
  UINT  cStreams
);

Parameters

pD3DDevice

[in]  Pointer to the IUnknown interface of the Direct3D device object.

pddsRenderTarget

[in]  Specifies the Direct3D surface that all drawing should be performed on.

pmtRenderTarget

[in]  Pointer to an AM_MEDIA_TYPE structure that contains the media type of the target surface.

rtStart

[in]  Specifies the start time.

rtEnd

[in]  Specifies the end time.

dwClrBkGnd

[in]  Specifies the background color, as a D3DCOLOR type.

pVideoStreamInfo

[in]  Pointer to an array of VMR9VideoStreamInfo structures, which descibe each video stream.

cStreams

[in]  Specifies the number of streams to mix, which is also the size of the pVideoStreamInfo array.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Requirements

Include D3d9.h, Vmr9.h.

See Also