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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for