ID3D11VideoContext::VideoProcessorSetStreamOutputRate method (d3d11.h)
Sets the rate at which the video processor produces output frames for an input stream.
Syntax
void VideoProcessorSetStreamOutputRate(
[in] ID3D11VideoProcessor *pVideoProcessor,
[in] UINT StreamIndex,
[in] D3D11_VIDEO_PROCESSOR_OUTPUT_RATE OutputRate,
[in] BOOL RepeatFrame,
[in] const DXGI_RATIONAL *pCustomRate
);
Parameters
[in] pVideoProcessor
A pointer to the ID3D11VideoProcessor interface. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessor.
[in] StreamIndex
The zero-based index of the input stream. To get the maximum number of streams, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps and check the MaxStreamStates structure member.
[in] OutputRate
The output rate, specified as a D3D11_VIDEO_PROCESSOR_OUTPUT_RATE value.
[in] RepeatFrame
Specifies how the driver performs frame-rate conversion, if required.
Value | Meaning |
---|---|
|
Repeat frames. |
|
Interpolate frames. |
[in] pCustomRate
A pointer to a DXGI_RATIONAL structure. If OutputRate is D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM, this parameter specifies the exact output rate. Otherwise, this parameter is ignored and can be NULL.
Return value
None
Remarks
The standard output rates are normal frame-rate (D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL) and half frame-rate (D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_HALF). In addition, the driver might support custom rates for rate conversion or inverse telecine. To get the list of custom rates, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCustomRate.
Depending on the output rate, the driver might need to convert the frame rate. If so, the value of RepeatFrame controls whether the driver creates interpolated frames or simply repeats input frames.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d3d11.h |