ID3D11VideoDevice::CreateVideoProcessor Method

Creates a video processor device for Microsoft Direct3D 11.

Syntax

public:
HRESULT CreateVideoProcessor(
         ID3D11VideoProcessorEnumerator *pEnum,
         UINT RateConversionIndex,
         ID3D11VideoProcessor **ppVideoProcessor
)  

Parameters

pEnum
Type: ID3D11VideoProcessorEnumerator *

[in] A pointer to the ID3D11VideoProcessorEnumerator interface. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessorEnumerator.

RateConversionIndex
Type: UINT 

[in] Specifies the frame-rate conversion capabilities for the video processor. The value is a zero-based index that corresponds to the TypeIndex parameter of the ID3D11VideoProcessorEnumerator::GetVideoProcessorRateConversionCaps method.

ppVideoProcessor
Type: ID3D11VideoProcessor **

[out] Receives a pointer to the ID3D11VideoProcessor interface. The caller must release the interface.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See Direct3D 11 return codes for possible return values.

Remarks

The ID3D11DeviceContext::ClearState method does not affect the internal state of the video processor.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).