IDXVAHD_VideoProcessor::SetVideoProcessStreamState method (dxvahd.h)

Sets a state parameter for an input stream on a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

Syntax

HRESULT SetVideoProcessStreamState(
  [in] UINT                StreamNumber,
  [in] DXVAHD_STREAM_STATE State,
  [in] UINT                DataSize,
  [in] const void          *pData
);

Parameters

[in] StreamNumber

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

[in] State

The state parameter to set, specified as a member of the DXVAHD_STREAM_STATE enumeration.

[in] DataSize

The size, in bytes, of the buffer pointed to by pData.

[in] pData

A pointer to a buffer that contains the state data. The meaning of the data depends on the State parameter. Each state has a corresponding data structure; for more information, see DXVAHD_STREAM_STATE. The caller allocates the buffer and fills in the parameter data before calling this method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Call this method to set state parameters that apply to individual input streams.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header dxvahd.h

See also

DXVA-HD

IDXVAHD_VideoProcessor