static UPInt SF_STDCALL GetMipLevelSize(ImageFormat format, const ImageSize& sz, unsigned plane = 0);
GetMipLevelSize calculates the size of the given mipmap level in bytes, given format and size.
Parameters |
Description |
ImageFormat format |
ImageFormat of the mipmap. |
const ImageSize& sz |
The size of the image. |
unsigned plane = 0 |
The index of the corresponding plane. |
A UPInt value containing the size of the mipmap level in bytes.