DXVAHD_BLT_STATE_TARGET_RECT_DATA structure

Specifies the target rectangle for blitting, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

Syntax


typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA {
  BOOL Enable;
  RECT TargetRect;
} DXVAHD_BLT_STATE_TARGET_RECT_DATA;

Members

Enable

Specifies whether to use the target rectangle. The default state value is FALSE.

ValueMeaning
TRUE

Use the target rectangle specified by the TargetRect member.

FALSE

Use the entire destination surface as the target rectangle. Ignore the TargetRect member.

 

TargetRect

Specifies the target rectangle. The target rectangle is the area within the destination surface where the output will be drawn. The target rectangle is given in pixel coordinates, relative to the destination surface. The default state value is an empty rectangle, (0, 0, 0, 0).

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

Examples


HRESULT DXVAHD_SetFrameFormat(
    IDXVAHD_VideoProcessor *pVP,
    UINT stream,
    DXVAHD_FRAME_FORMAT format
    )
{
    DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA frame_format = { format };

    HRESULT hr = pVP->SetVideoProcessStreamState(
        stream,
        DXVAHD_STREAM_STATE_FRAME_FORMAT,
        sizeof(frame_format),
        &frame_format
        );

    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

Direct3D Video Structures
DXVA-HD
Media Foundation Structures
DXVAHD_BLT_STATE
IDXVAHD_VideoProcessor::SetVideoProcessBltState

 

 

Show: