DXVAHD_STREAM_STATE_FILTER_DATA structure (dxvahd.h)

Specifies the level for a filtering operation on a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) input stream.

Syntax

typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA {
  BOOL Enable;
  INT  Level;
} DXVAHD_STREAM_STATE_FILTER_DATA;

Members

Enable

If TRUE, the filter is enabled. Otherwise, the filter is disabled.

Level

The level for the filter. The meaning of this value depends on the implementation. To get the range and default value of a particular filter, call the IDXVAHD_Device::GetVideoProcessorFilterRange method.

If the Enable member is FALSE, the Level member is ignored.

Remarks

For a list of image filters that are defined for DXVA-HD, see DXVAHD_FILTER. The device might not support every type of image filter. To find out whether the device supports a particular filter, call the IDXVAHD_Device::GetVideoProcessorDeviceCaps method and check the FilterCaps member of the DXVAHD_VPDEVCAPS structure.

Examples

HRESULT DXVAHD_SetFilterValue(
    IDXVAHD_VideoProcessor *pVP,
    UINT stream,
    DXVAHD_FILTER filter,
    BOOL bEnable,
    INT value
    )
{
    DXVAHD_STREAM_STATE_FILTER_DATA data = { bEnable, value };

    DXVAHD_STREAM_STATE state = static_cast<DXVAHD_STREAM_STATE>(DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS + filter);

    HRESULT hr = pVP->SetVideoProcessStreamState(
        stream,
        state,
        sizeof(data),
        &data
        );

    return hr;
}

Requirements

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

See also

DXVA-HD

DXVAHD_STREAM_STATE

Direct3D Video Structures

IDXVAHD_VideoProcessor::SetVideoProcessStreamState

Media Foundation Structures