Skip to main content

Module KittyGraphicsImageData

Module KittyGraphicsImageData 

Source

Constants§

COMPRESSION
Compression of the image. Always GHOSTTY_KITTY_IMAGE_COMPRESSION_NONE; compressed payloads are inflated before storage.
DATA_LEN
Length of the raw pixel data in bytes. Always equal to width * height * bytes-per-pixel for the reported format.
DATA_PTR
Borrowed pointer to the raw pixel data. Valid as long as the underlying terminal is not mutated.
FORMAT
Pixel format of the image. Never GHOSTTY_KITTY_IMAGE_FORMAT_PNG; PNG payloads are decoded to RGBA before storage.
GENERATION
Generation stamp assigned when this image was added to (or replaced in) the storage. A changed generation for a given image ID means the pixel contents may have changed even when the dimensions, format, and data length are identical (e.g. a retransmission of the same image ID), so texture caches must key staleness on this value rather than on size heuristics.
HEIGHT
Image height in pixels.
ID
The image ID.
INVALID
Invalid / sentinel value.
MAX_VALUE
Generation stamp assigned when this image was added to (or replaced in) the storage. A changed generation for a given image ID means the pixel contents may have changed even when the dimensions, format, and data length are identical (e.g. a retransmission of the same image ID), so texture caches must key staleness on this value rather than on size heuristics.
NUMBER
The image number.
WIDTH
Image width in pixels.

Type Aliases§

Type
Queryable data kinds for ghostty_kitty_graphics_image_get().