ID3D11VideoContext::VideoProcessorSetOutputBackgroundColor method (d3d11.h)

Sets the background color for the video processor.

Syntax

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

Parameters

pVideoProcessor

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

YCbCr

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

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

   
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