docs
Loading...
Searching...
No Matches
ULBitmapFormatInfo

#include <Ultralight/CAPI/CAPI_Bitmap.h>

Overview

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:

row_pitch = ceil(width / block_width) * block_bytes
surface_size = row_pitch * ceil(height / block_height)
unsigned int block_height
Height of one block, in pixels (1 for uncompressed, 4 for BCn).
Definition CAPI_Bitmap.h:70
unsigned int block_width
Width of one block, in pixels (1 for uncompressed, 4 for BCn).
Definition CAPI_Bitmap.h:69
unsigned int block_bytes
Size of one block, in bytes (the bytes per pixel for a 1x1 block).
Definition CAPI_Bitmap.h:71

For a 1x1 block this reduces to width * block_bytes and row_pitch * height.

See also
ulGetBitmapFormatInfo()

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).

Member Data Documentation

◆ block_bytes

unsigned int block_bytes

Size of one block, in bytes (the bytes per pixel for a 1x1 block).

◆ block_height

unsigned int block_height

Height of one block, in pixels (1 for uncompressed, 4 for BCn).

◆ block_width

unsigned int block_width

Width of one block, in pixels (1 for uncompressed, 4 for BCn).


The documentation for this struct was generated from the following file: