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