Skip to main content

DATA_PTR

Constant DATA_PTR 

Source
pub const DATA_PTR: Type = 7;
Expand description

Borrowed pointer to the raw pixel data. Valid as long as the underlying terminal is not mutated.

The data is always fully decoded, uncompressed pixels in the format reported by GHOSTTY_KITTY_IMAGE_DATA_FORMAT: zlib payloads are inflated and PNG payloads are decoded to RGBA at transmission time, before the image is stored. Consumers can upload this directly to the GPU without any decode step.

Output type: const uint8_t **