共用方式為


IVMRImageCompositor::SetStreamMediaType

 
Microsoft DirectShow 9.0

IVMRImageCompositor::SetStreamMediaType

The SetStreamMediaType method sets the media type for the input stream.

Syntax

  HRESULT SetStreamMediaType(

  

Parameters

dwStrmID

Specifies the input stream. The value must be from 1 through 16.

pmt

Pointer to an AM_MEDIA_TYPE structure that specifies the media type.

fTexture

If true, specifies that the target surface is a Direct3D texture surface.

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