IKsVideoProcessing::SetInputMediaTypeList method
A plug-in's implementation of IKsVideoProcessing::SetInputMediaTypeList sets the list of media types that the plug-in should support as input. The plug-in should cache these as its supported input media types.
Syntax
HRESULT SetInputMediaTypeList(
PKSDATAFORMAT *ppMediaTypeList,
PVOID *ppConfigCaps,
UINT32 NumMediaTypes
);
Parameters
ppMediaTypeList
A pointer to a buffer that contains a pointer to a series of KSDATAFORMAT structures. These structures describe input media types that are supported by the driver.ppConfigCaps
A pointer to a buffer that contains a pointer to a series of VIDEO_STREAM_CONFIG_CAPS structure. These structures specify range information for each media type. For video, the range information includes the supported frame rates. VIDEO_STREAM_CONFIG_CAPS is defined in Baseplgin.h.NumMediaTypes
An unsigned integer value that specifies the number of input format elements. This value should match the number of input media types that are specified in ppMediaTypeList.
Return value
This method returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | Input media types for the plug-in have been set correctly. Indicates that the plug-in can support the listed media types, though it might act as a pass through for some media types. |
Remarks
The plug-in should support all the driver media types on its input. If the plug-in cannot process a specific media type, the plug-in should act as a pass through for that media type.
The plug-in should make a copy of the input media types and VIDEO_STREAM_CONFIG_CAPS structures for later use.
IKsVideoProcessing is defined in Ksvidprocplugin.h. The contents of this header file are provided in Providing a Video Post-Processing Plug-in.
This method is a pure virtual method that is implemented by the vendor-supplied plug-in.
Send comments about this topic to Microsoft
Build date: 1/23/2012