Export (0) Print
Expand All
Expand Minimize

MFCalculateImageSize function

Retrieves the image size, in bytes, for an uncompressed video format.

Syntax


HRESULT MFCalculateImageSize(
  _In_   REFGUID guidSubtype,
  _In_   UINT32 unWidth,
  _In_   UINT32 unHeight,
  _Out_  UINT32 *pcbImageSize
);

Parameters

guidSubtype [in]

Media subtype for the video format. For a list of subtypes, see Media Type GUIDs.

unWidth [in]

Width of the image, in pixels.

unHeight [in]

Height of the image, in pixels.

pcbImageSize [out]

Receives the size of each frame, in bytes. If the format is compressed or is not recognized, the value is zero.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The function succeeded.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft