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 code | Description |
|---|---|
|
The function succeeded. |
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also