ID3D11VideoContext::VideoProcessorGetStreamStereoFormat method (d3d11.h)

Gets the stereo 3D format for an input stream on the video processor

Syntax

void VideoProcessorGetStreamStereoFormat(
  ID3D11VideoProcessor                   *pVideoProcessor,
  UINT                                   StreamIndex,
  BOOL                                   *pEnable,
  D3D11_VIDEO_PROCESSOR_STEREO_FORMAT    *pFormat,
  BOOL                                   *pLeftViewFrame0,
  BOOL                                   *pBaseViewFrame0,
  D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE *pFlipMode,
  int                                    *MonoOffset
);

Parameters

pVideoProcessor

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

StreamIndex

The zero-based index of the input stream. To get the maximum number of streams, call ID3D11VideoProcessorEnumerator::GetVideoProcessorCaps and check the MaxStreamStates structure member.

pEnable

Receives the value TRUE if stereo 3D is enabled for this stream, or FALSE otherwise. If the value is FALSE, ignore the remaining parameters.

pFormat

Receives a D3D11_VIDEO_PROCESSOR_STEREO_FORMAT value that specifies the layout of the two stereo views in memory.

pLeftViewFrame0

Receives a Boolean value.

Value Meaning
TRUE
Frame 0 contains the left view.
FALSE
Frame 0 contains the right view.

pBaseViewFrame0

Receives a Boolean value.

Value Meaning
TRUE
Frame 0 contains the base view.
FALSE
Frame 1 contains the base view.

pFlipMode

Receives a D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE value. This value specifies whether one of the views is flipped.

MonoOffset

Receives the pixel offset used for D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET format. This parameter is ignored for other stereo formats.

Return value

None

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