Export (0) Print
Expand All
Expand Minimize

DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA structure

Specifies the destination rectangle for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

Syntax


typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA {
  BOOL Enable;
  RECT DestinationRect;
} DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA;

Members

Enable

Specifies whether to use the destination rectangle, or use the entire output surface. The default state value is FALSE.

ValueMeaning
TRUE

Use the destination rectangle given in the DestinationRect member.

FALSE

Use the entire output surface as the destination rectangle.

 

DestinationRect

The destination rectangle, which defines the portion of the output surface where the source rectangle is blitted. The destination rectangle is given in pixel coordinates, relative to the output surface. The default value is an empty rectangle, (0, 0, 0, 0).

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

Examples


HRESULT DXVAHD_SetDestinationRect(
    IDXVAHD_VideoProcessor *pVP,
    UINT stream,
    BOOL bEnable,
    const RECT &rect
    )
{
    DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA DstRect = { bEnable, rect };

    HRESULT hr = pVP->SetVideoProcessStreamState(
        stream,
        DXVAHD_STREAM_STATE_DESTINATION_RECT,
        sizeof(DstRect),
        &DstRect
        );

    return hr;
}


Requirements

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
Media Foundation Structures
DXVAHD_STREAM_STATE
IDXVAHD_VideoProcessor::SetVideoProcessStreamState

 

 

Community Additions

ADD
Show:
© 2014 Microsoft