PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMOUTPUTRATE callback function (d3d10umddi.h)

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

Syntax

PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMOUTPUTRATE Pfnd3d111DdiVideoprocessorsetstreamoutputrate;

void Pfnd3d111DdiVideoprocessorsetstreamoutputrate(
  D3D10DDI_HDEVICE unnamedParam1,
  D3D11_1DDI_HVIDEOPROCESSOR unnamedParam2,
  UINT unnamedParam3,
  D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE unnamedParam4,
  BOOL unnamedParam5,
  const DXGI_RATIONAL *unnamedParam6
)
{...}

Parameters

unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

unnamedParam2

hVideoProcessor [in]

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

unnamedParam3

StreamIndex [in]

The zero-based index of the input stream.

unnamedParam4

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 VideoProcessorSetStreamOutputRate is never called, the driver should interpolate frames by default.

unnamedParam5

OutputRate [in]

The output rate, specified as a D3D11_1DDI_VIDEO_PROCESSOR_OUTPUT_RATE value.

For more information, see the Remarks section.

unnamedParam6

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

None

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

Requirement Value
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

DXGI_RATIONAL

GetVideoProcessorCustomRate