Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_D3DFORMATValue: 0 Specifies the video format of the input stream. The state data is a DXVAHD_STREAM_STATE_D3DFORMAT_DATA structure. |
DXVAHD_STREAM_STATE_FRAME_FORMATValue: 1 Specifies how the input stream is interlaced. The state data is a DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA structure. |
DXVAHD_STREAM_STATE_INPUT_COLOR_SPACEValue: 2 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_RATEValue: 3 Specifies the output frame rate. The state data is a DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA structure. |
DXVAHD_STREAM_STATE_SOURCE_RECTValue: 4 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_RECTValue: 5 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_ALPHAValue: 6 Specifies the planar alpha value for this input stream. The state data is a DXVAHD_STREAM_STATE_ALPHA_DATA structure. |
DXVAHD_STREAM_STATE_PALETTEValue: 7 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_KEYValue: 8 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_RATIOValue: 9 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_BRIGHTNESSValue: 100 Specifies the brightness filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_CONTRASTValue: 101 Specifies the contrast filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_HUEValue: 102 Specifies the hue filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_SATURATIONValue: 103 Specifies the saturation filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTIONValue: 104 Specifies the noise-reduction filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENTValue: 105 Specifies the edge-enhancement filter. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALINGValue: 106 Specifies the anamorphic-scaling value. The state data is a DXVAHD_STREAM_STATE_FILTER_DATA structure. |
DXVAHD_STREAM_STATE_PRIVATEValue: 1000 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
| 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
IDXVAHD_VideoProcessor::GetVideoProcessStreamState