ID3D11VideoContext::VideoProcessorSetOutputBackgroundColor method (d3d11.h)

Sets the background color for the video processor.

Syntax

void VideoProcessorSetOutputBackgroundColor(
  [in] ID3D11VideoProcessor    *pVideoProcessor,
  [in] BOOL                    YCbCr,
  [in] const D3D11_VIDEO_COLOR *pColor
);

Parameters

[in] pVideoProcessor

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

[in] YCbCr

If TRUE, the color is specified as a YCbCr value. Otherwise, the color is specified as an RGB value.

[in] pColor

A pointer to a D3D11_VIDEO_COLOR structure that specifies the background color.

Return value

None

Remarks

The video processor uses the background color to fill areas of the target rectangle that do not contain a video image. Areas outside the target rectangle are not affected.

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

See also

ID3D11VideoContext