Microsoft DirectX 8.1 (C++) |
The SetInputType method sets the media type on an input stream, or tests whether a media type is acceptable.
Syntax
HRESULT SetInputType(
DWORD dwInputStreamIndex,
const DMO_MEDIA_TYPE *pmt,
DWORD dwFlags
);
Parameters
dwInputStreamIndex
Zero-based index of an input stream on the DMO.
pmt
[in] Pointer to a DMO_MEDIA_TYPE structure that specifies the media type.
dwFlags
Bitwise combination of zero or more flags from the DMO_SET_TYPE_FLAGS enumeration.
Return Value
Returns an HRESULT value. Possible values include those in the following table.
Return Code | Description |
DMO_E_INVALIDSTREAMINDEX | Invalid stream index |
DMO_E_TYPE_NOT_ACCEPTED | Media type was not accepted |
S_FALSE | Media type is not acceptable |
S_OK | Media type was set successfully, or is acceptable |
Remarks
Call this method to test, set, or clear the media type on an input stream:
The media types that are currently set on other streams can affect whether the media type is acceptable.
See Also