共用方式為


IVMRImageCompositor::CompositeImage

 
Microsoft DirectShow 9.0

IVMRImageCompositor::CompositeImage

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

Syntax

  HRESULT CompositeImage(

  
  IUnknown*
  
  pD3DDevice
  ,

  
  LPDIRECTDRAWSURFACE7
  
  pddsRenderTarget
  ,

  
  AM_MEDIA_TYPE*
  
  pmtRenderTarget
  ,

  
  REFERENCE_TIME
  
  rtStart
  ,

  
  REFERENCE_TIME
  
  rtEnd
  ,

  
  DWORD
  
  clrBkgnd
  ,

  
  VMRVIDEOSTREAMINFO*
  
  pVideoStreamInfo
  ,

  
  UINT
  
  cStreams

  );

Parameters

pD3DDevice

[in]  Pointer to the IUnknown interface of the Direct3D device. The compositor must cast this to a LPDIRECT3DDEVICE7 type.

pddsRenderTarget

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

pmtRenderTarget

[in]  Specifies the media type of the DirectDraw surface.

rtStart

[in]  Specifies the start time.

rtEnd

[in]  Specifies the end time.

clrBkgnd

[in]  Specifies the background color.

pVideoStreamInfo

[in]  Pointer to an array of video stream info objects.

cStreams

[in]  Specifies the number of streams to be mixed, which is equal to the size of the pVideoStreamInfo array.

Return Values

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

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also