ID3D11VideoContext::VideoProcessorGetStreamStereoFormat method (d3d11.h)

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

Syntax

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

Parameters

[in] pVideoProcessor

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

[in] 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.

[out] 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.

[out] pFormat

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

[out] pLeftViewFrame0

Receives a Boolean value.

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

[out] pBaseViewFrame0

Receives a Boolean value.

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

[out] pFlipMode

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

[out] 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