|
Ultralight C++ API 2.0.0
|
#include <Ultralight/Bitmap.h>
Block geometry for a BitmapFormat.
Uncompressed formats have a 1x1 block whose block_bytes equals the bytes-per-pixel. Block-compressed (BCn) formats have a 4x4 block. A bitmap's row pitch and surface size are derived from the block geometry:
For a 1x1 block this reduces to width * block_bytes and row_pitch * height.
Public Attributes | |
| uint32_t | block_width |
| Width of one block, in pixels (1 for uncompressed, 4 for BCn). | |
| uint32_t | block_height |
| Height of one block, in pixels (1 for uncompressed, 4 for BCn). | |
| uint32_t | block_bytes |
| Size of one block, in bytes (equals bytes-per-pixel when the block is 1x1). | |
| uint32_t block_bytes |
Size of one block, in bytes (equals bytes-per-pixel when the block is 1x1).
| uint32_t block_height |
Height of one block, in pixels (1 for uncompressed, 4 for BCn).
| uint32_t block_width |
Width of one block, in pixels (1 for uncompressed, 4 for BCn).