Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

 

Show:
© 2017 Microsoft