![]() |
libghostty
|
#include <ghostty/vt/sys.h>
Data Fields | |
| uint32_t | width |
| uint32_t | height |
| uint8_t * | data |
| size_t | data_len |
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.
| uint8_t* data |
Pointer to the decoded RGBA pixel data.
| size_t data_len |
Length of the pixel data in bytes.
| uint32_t height |
Image height in pixels.
| uint32_t width |