Skip to main content
ID3D11VideoContext::VideoProcessorSetStreamFilter method

Enables or disables an image filter for an input stream on the video processor.


void VideoProcessorSetStreamFilter(
  [in] ID3D11VideoProcessor         *pVideoProcessor,
  [in] UINT                         StreamIndex,
  [in] BOOL                         Enable,
  [in] int                          Level


pVideoProcessor [in]

A pointer to the ID3D11VideoProcessor interface. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessor.

StreamIndex [in]

The zero-based index of the input stream. To get the maximum number of streams, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps and check the MaxStreamStates structure member.

Filter [in]

The filter, specified as a D3D11_VIDEO_PROCESSOR_FILTER value.

To query which filters the driver supports, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps.

Enable [in]

Specifies whether to enable the filter.

Level [in]

The filter level. If Enable is FALSE, this parameter is ignored.

To find the valid range of levels for a specified filter, call ID3D11VideoProcessorEnumerator::GetVideoProcessorFilterRange.

Return value

This method does not return a value.


Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8



See also