ID3D11VideoContext::VideoProcessorSetStreamStereoFormat Method

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

Syntax

public:
void VideoProcessorSetStreamStereoFormat(
         ID3D11VideoProcessor *pVideoProcessor,
         UINT StreamIndex,
         BOOL Enable,
         D3D11_VIDEO_PROCESSOR_STEREO_FORMAT Format,
         BOOL LeftViewFrame0,
         BOOL BaseViewFrame0,
         D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE FlipMode,
         int MonoOffset
)  

Parameters

pVideoProcessor
Type: ID3D11VideoProcessor *

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

StreamIndex
Type: UINT 

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

Enable
Type: BOOL 

[in] Specifies whether stereo 3D is enabled for this stream. If the value is FALSE, the remaining parameters of this method are ignored.

Format
Type: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT 

[in] Specifies the layout of the two stereo views in memory, as a D3D11_VIDEO_PROCESSOR_STEREO_FORMAT value.

LeftViewFrame0
Type: BOOL 

[in] If TRUE, frame 0 contains the left view. Otherwise, frame 0 contains the right view. This parameter is ignored for the following stereo formats:

BaseViewFrame0
Type: BOOL 

[in] If TRUE, frame 0 contains the base view. Otherwise, frame 1 contains the base view.This parameter is ignored for the following stereo formats:

FlipMode
Type: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE 

[in] A flag from the D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE enumeration, specifying whether one of the views is flipped.

MonoOffset
Type: int 

[in] For D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET format, this parameter specifies how to generate the left and right views:

If Format is not D3D11_VIDEO_PROCESSOR_STEREO_FORMAT_MONO_OFFSET, this parameter must be zero.

Return value

None.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).