PackSize

Packs a UINT32 width value and a UINT32 height value into a UINT64 value that represents a size.

Syntax

UINT64 PackSize(
         UINT32 unWidth,
         UINT32 unHeight
)  

Parameters

unWidth
Type: UINT32 

Value to store the UINT32 width value.

unHeight
Type: UINT32 

Value to store the UINT32 height value.

Return value

Type: UINT64 

Returns the packed UINT64 value.

Refer to Media Foundation return codes.

Remarks

This function stores two 32-bit values in a 64-bit value that is suitable for the IMFAttributes::SetUINT64 method.

Requirements

Header: Declared in mfapi.h.