PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMSTEREOFORMAT callback function

Enables or disables stereo 3D video for an input stream on the video processor. In addition, this function specifies the layout of the video frames in memory.

Syntax

PFND3D11_1DDI_VIDEOPROCESSORSETSTREAMSTEREOFORMAT Pfnd3d111DdiVideoprocessorsetstreamstereoformat;

void Pfnd3d111DdiVideoprocessorsetstreamstereoformat(
   D3D10DDI_HDEVICE,
   D3D11_1DDI_HVIDEOPROCESSOR,
   UINT,
   BOOL,
   D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FORMAT,
   BOOL,
   BOOL,
   D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FLIP_MODE,
   int
)
{...}

Parameters

D3D10DDI_HDEVICE

D3D11_1DDI_HVIDEOPROCESSOR

UINT

BOOL

D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FORMAT

BOOL

BOOL

D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FLIP_MODE

int

Return Value

This callback function does not return a value.

Remarks

For stereo formats of D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET, the driver processes the MonoOffset parameter in the following way:

  • If the parameter is positive, the right view is shifted to the right by that many pixels, and the left view is shifted to the left by the same amount.
  • If the parameter is negative, the right view is shifted to the left by that many pixels, and the left view is shifted to the right by the same amount.
For stereo formats of D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FORMAT_SEPARATE, the application can set the BaseViewFrame0 parameter to convert stereo data to mono. The application does this in one of the following ways:
  • Specifies a single resource for the mono input data of the base view.
  • Specify both resources for the stereo input data of the base view. When VideoProcessorBlt is called, the stream data is passed as a D3D11_1DDI_VIDEO_PROCESSOR_STREAM structure, with the hInputSurface member specifying frame 0 and the hInputSurfaceRight specifying frame 1.

Requirements

   
Windows version Windows 8 Windows Server 2012
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CreateVideoProcessor

D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FLIP_MODE

D3D11_1DDI_VIDEO_PROCESSOR_STEREO_FORMAT

D3D11_1DDI_VIDEO_PROCESSOR_STREAM

VideoProcessorBlt