IVMRImageCompositor9::SetStreamMediaType

 
Microsoft DirectShow 9.0

IVMRImageCompositor9::SetStreamMediaType

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

Syntax

  HRESULT SetStreamMediaType(
  DWORD  dwStrmID,
  AM_MEDIA_TYPE*  pmt,
  BOOL  fTexture
);

Parameters

dwStrmID

[in]  Specifies the input stream; must be from 1 through 16.

pmt

[in]  Pointer to the AM_MEDIA_TYPE struct that specifies the media type.

fTexture

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

Return Values

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

Value Description
S_OK The method succeeded.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also