libghostty
Loading...
Searching...
No Matches
GhosttySysImage Struct Reference

#include <ghostty/vt/sys.h>

Data Fields

uint32_t width
uint32_t height
uint8_t * data
size_t data_len

Detailed Description

Result of decoding an image.

The data buffer must be allocated through the allocator provided to the decode callback. The library takes ownership and will free it with the same allocator.

Examples
c-vt-kitty-graphics/src/main.c.

Definition at line 53 of file sys.h.

Field Documentation

◆ data

uint8_t* data

Pointer to the decoded RGBA pixel data.

Examples
c-vt-kitty-graphics/src/main.c.

Definition at line 61 of file sys.h.

◆ data_len

size_t data_len

Length of the pixel data in bytes.

Examples
c-vt-kitty-graphics/src/main.c.

Definition at line 64 of file sys.h.

◆ height

uint32_t height

Image height in pixels.

Examples
c-vt-kitty-graphics/src/main.c.

Definition at line 58 of file sys.h.

◆ width

uint32_t width

Image width in pixels.

Examples
c-vt-kitty-graphics/src/main.c.

Definition at line 55 of file sys.h.


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