Export (0) Print
Expand All
Expand Minimize

DXVAHD_STREAM_STATE_SOURCE_RECT_DATA structure

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

Syntax


typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA {
  BOOL Enable;
  RECT SourceRect;
} DXVAHD_STREAM_STATE_SOURCE_RECT_DATA;

Members

Enable

Specifies whether to blit the entire input surface or just the source rectangle. The default state value is FALSE.

ValueMeaning
TRUE

Use the source rectangle specified in the SourceRect member.

FALSE

Blit the entire input surface. Ignore the SourceRect member.

 

SourceRect

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

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

Examples


HRESULT DXVAHD_SetSourceRect(
    IDXVAHD_VideoProcessor *pVP,
    UINT stream,
    BOOL bEnable,
    const RECT& rect
    )
{
    DXVAHD_STREAM_STATE_SOURCE_RECT_DATA src = { bEnable, rect };

    HRESULT hr = pVP->SetVideoProcessStreamState(
        stream,
        DXVAHD_STREAM_STATE_SOURCE_RECT,
        sizeof(src),
        &src
        );

    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