Microsoft DirectX 9.0 |
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. 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.
See Also