MFSetAttributeSize

Sets width and height as a single 64-bit attribute value.

Syntax

HRESULT MFSetAttributeSize(
         IMFAttributes *pAttributes,
         REFGUID guidKey,
         UINT32 unWidth,
         UINT32 unHeight
)  

Parameters

pAttributes
Type: IMFAttributes *

A pointer to the IMFAttributes interface of the attribute store.

guidKey
Type: REFGUID 

A GUID that identifies the value to set. If this key already exists, the function overwrites the old value.

unWidth
Type: UINT32 

The width.

unHeight
Type: UINT32 

The height.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

Some attributes specify a width and a height as a packed UINT64 value. This function packs the width and height values into a single UINT64 value.

Requirements

Header: Declared in mfapi.h.