Expand Minimize

MFSetAttributeSize function

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

pAttributes [in]

A pointer to the IMFAttributes interface of the attribute store.

guidKey [in]

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

unWidth [in]

The width.

unHeight [in]

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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

See also

Attributes in Media Foundation
Media Foundation Functions
MFGetAttributeSize

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.