MFSetAttributeSize function (mfapi.h)

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

Syntax

HRESULT MFSetAttributeSize(
  [in] IMFAttributes *pAttributes,
  [in] REFGUID       guidKey,
  [in] UINT32        unWidth,
  [in] UINT32        unHeight
);

Parameters

[in] pAttributes

A pointer to the IMFAttributes interface of the attribute store.

[in] guidKey

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

[in] unWidth

The width.

[in] unHeight

The height.

Return value

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

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

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfapi.h

See also

Attributes in Media Foundation

MFGetAttributeSize

Media Foundation Functions