DXVAHD_STREAM_STATE enumeration

Specifies state parameters for an input stream to a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

To set a state parameter, call IDXVAHD_VideoProcessor::SetVideoProcessStreamState. This method takes a DXVAHD_STREAM_STATE value and a byte array as input. The byte array contains state data, the structure of which is defined by the DXVAHD_STREAM_STATE value.

Syntax


typedef enum _DXVAHD_STREAM_STATE { 
  DXVAHD_STREAM_STATE_D3DFORMAT                  = 0,
  DXVAHD_STREAM_STATE_FRAME_FORMAT               = 1,
  DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE          = 2,
  DXVAHD_STREAM_STATE_OUTPUT_RATE                = 3,
  DXVAHD_STREAM_STATE_SOURCE_RECT                = 4,
  DXVAHD_STREAM_STATE_DESTINATION_RECT           = 5,
  DXVAHD_STREAM_STATE_ALPHA                      = 6,
  DXVAHD_STREAM_STATE_PALETTE                    = 7,
  DXVAHD_STREAM_STATE_LUMA_KEY                   = 8,
  DXVAHD_STREAM_STATE_ASPECT_RATIO               = 9,
  DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS          = 100,
  DXVAHD_STREAM_STATE_FILTER_CONTRAST            = 101,
  DXVAHD_STREAM_STATE_FILTER_HUE                 = 102,
  DXVAHD_STREAM_STATE_FILTER_SATURATION          = 103,
  DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION     = 104,
  DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT    = 105,
  DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING  = 106,
  DXVAHD_STREAM_STATE_PRIVATE                    = 1000
} DXVAHD_STREAM_STATE;

Constants

DXVAHD_STREAM_STATE_D3DFORMAT

Specifies the video format of the input stream. The state data is a DXVAHD_STREAM_STATE_D3DFORMAT_DATA structure.

DXVAHD_STREAM_STATE_FRAME_FORMAT

Specifies how the input stream is interlaced. The state data is a DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA structure.

DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE

Specifies the color space for the input stream. The state data is a DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA structure.

DXVAHD_STREAM_STATE_OUTPUT_RATE

Specifies the output frame rate. The state data is a DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA structure.

DXVAHD_STREAM_STATE_SOURCE_RECT

Specifies the source rectangle. The source rectangle defines which portion of the input sample is blitted to the destination surface. The state data is a DXVAHD_STREAM_STATE_SOURCE_RECT_DATA structure.

DXVAHD_STREAM_STATE_DESTINATION_RECT

Specifies the destination rectangle. The destination rectangle defines which portion of the destination rectangle receives the blit. The state data is a DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA structure.

DXVAHD_STREAM_STATE_ALPHA

Specifies the planar alpha value for this input stream. The state data is a DXVAHD_STREAM_STATE_ALPHA_DATA structure.

DXVAHD_STREAM_STATE_PALETTE

Specifies the color-palette entries. The state data is a DXVAHD_STREAM_STATE_PALETTE_DATA structure.

This setting is used for palettized input formats, such as AI44 and IA44.

DXVAHD_STREAM_STATE_LUMA_KEY

Specifies the luma key. The state data is a DXVAHD_STREAM_STATE_LUMA_KEY_DATA structure.

This state is applicable only if the device supports luma keying. To find out if the device supports luma keying, check for the DXVAHD_FEATURE_CAPS_LUMA_KEY flag in the FeatureCaps member of the DXVAHD_VPDEVCAPS capabilities structure.

DXVAHD_STREAM_STATE_ASPECT_RATIO

Specifies the pixel aspect ratio of the source and destination surfaces. The state data is a DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA structure.

DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS

Specifies the brightness filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_CONTRAST

Specifies the contrast filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_HUE

Specifies the hue filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_SATURATION

Specifies the saturation filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION

Specifies the noise-reduction filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT

Specifies the edge-enhancement filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING

Specifies the anamorphic-scaling value. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure.

DXVAHD_STREAM_STATE_PRIVATE

Specifies that the state data contains a private DXVA-HD stream state. The state data is a DXVAHD_STREAM_STATE_PRIVATE_DATA structure.

Use this state for proprietary or device-specific parameters.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dxvahd.h

See also

Direct3D Video Enumerations
DXVA-HD
Media Foundation Enumerations
IDXVAHD_VideoProcessor::GetVideoProcessStreamState
IDXVAHD_VideoProcessor::SetVideoProcessStreamState

 

 

Show: