PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMOUTPUTRATE callback function

Sets the rate at which the video processor produces output frames for an input stream.

Syntax

PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMOUTPUTRATE Pfnd3d111DdiVideoprocessorsetstreamoutputrate;

void Pfnd3d111DdiVideoprocessorsetstreamoutputrate(
  D3D10DDI_HDEVICE Arg1,
  D3D11_1DDI_HVIDEOPROCESSOR Arg2,
  UINT Arg3,
  D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE Arg4,
  BOOL Arg5,
  const DXGI_RATIONAL *Arg6
)
{...}

Parameters

Arg1

hDevice [in]

A handle to the display device (graphics context).

Arg2

hVideoProcessor [in]

A handle to the video processor object that was created through a call to the CreateVideoProcessor function.

Arg3

StreamIndex [in]

The zero-based index of the input stream.

Arg4

RepeatFrame [in]

Specifies how the driver performs frame-rate conversion, if it is required.

If the RepeatFrame parameter is TRUE, the driver should repeat frames.

If the RepeatFrame parameter is FALSE, the driver should interpolate frames.

Note  If the VideoProcessorSetStreamOutputRate function is never called, the driver should interpolate frames by default.
 

Arg5

OutputRate [in]

The output rate, specified as a D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE value.

For more information, see the Remarks section.

Arg6

pCustomRate [in]

A pointer to a DXGI_RATIONAL structure. If the OutputRate parameter is set to D3D11_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM, this parameter specifies the exact output rate. Otherwise, this parameter is ignored and can be set to NULL.

Return Value

This callback function does not return a value.

Remarks

The standard output rates that are defined by D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE enumeration values are normal frame-rate (D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE_NORMAL) and half frame-rate (D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE_HALF).

If the driver supports custom rates for rate conversion or inverse telecine, it can use a custom rate if the OutputRate parameter is set to D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE_CUSTOM. The custom rate is specified by the pCustomRate parameter.

Note  The driver reports its custom rates in the D3D11_1DDI_VIDEO_PROCESSOR_CAPS structure that is returned through the GetVideoProcessorCustomRate function.
 
Depending on the output rate, the driver might have to convert the frame rate. If so, the value of the RepeatFrame parameter controls whether the driver creates interpolated frames or repeats input frames.

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CreateVideoProcessor

D3D11_1DDI_VIDEO_PROCESSOR_CAPS

D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE

GetVideoProcessorCustomRate