Microsoft DirectX 8.1 (C++)

IVMRImageCompositor::SetStreamMediaType

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

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

Syntax

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

Parameters

dwStrmID

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

pmt

Pointer to the AM_MEDIA_TYPE struct that specifies the media type.

fTexture

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

Return Values

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

See Also

Error and Success Codes