|
Ultralight C API 2.0.0
|
#include <Ultralight/CAPI/CAPI_Bitmap.h>
Block geometry of a pixel format.
Every format stores its pixels in blocks: a 1x1 block for an uncompressed format, and a 4x4 block for a block-compressed (BCn) format. The storage of an image follows from the block size:
For a 1x1 block this reduces to width * block_bytes and row_pitch * height.
Public Attributes | |
| unsigned int | block_width |
| Width of one block, in pixels (1 for uncompressed, 4 for BCn). | |
| unsigned int | block_height |
| Height of one block, in pixels (1 for uncompressed, 4 for BCn). | |
| unsigned int | block_bytes |
| Size of one block, in bytes (the bytes per pixel for a 1x1 block). | |
| unsigned int block_bytes |
Size of one block, in bytes (the bytes per pixel for a 1x1 block).
| unsigned int block_height |
Height of one block, in pixels (1 for uncompressed, 4 for BCn).
| unsigned int block_width |
Width of one block, in pixels (1 for uncompressed, 4 for BCn).