Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MFGetPlaneSize function

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

Syntax


HRESULT MFGetPlaneSize(
  _In_  DWORD format,
  _In_  DWORD dwWidth,
  _In_  DWORD dwHeight,
  _Out_ DWORD *pdwPlaneSize
);

Parameters

format [in]

FOURCC code or D3DFORMAT value that specifies the video format.

dwWidth [in]

Width of the image, in pixels.

dwHeight [in]

Height of the image, in pixels.

pdwPlaneSize [out]

Receives the size of one frame, in bytes. If the format is compressed or is not recognized, this 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.

 

Remarks

This function is equivalent to the MFCalculateImageSize function.

Note  Prior to Windows 7, this function was exported from evr.dll. Starting in Windows 7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Evr.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft