ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
glyph_cache_entry_t Struct Reference

Owns the temporary storage used by glyph cache entry. The data pointers and size or cursor fields describe the live portion of the allocation; callers must use the type's cleanup path when the buffer or queue is no longer needed. More...

Data Fields

uint32_t codepoint
uint8_t * bitmap_buf
int width
int rows
int pitch
int bitmap_left
int bitmap_top
UT_hash_handle hh

Detailed Description

Owns the temporary storage used by glyph cache entry. The data pointers and size or cursor fields describe the live portion of the allocation; callers must use the type's cleanup path when the buffer or queue is no longer needed.

The useful part of rendered cell is in character, foreground, background, pixels: together they describe what is pending, who owns it, and how much data is valid. Keep the object with its parent operation and use the parent cleanup path.

This is the handoff point for terminal renderer. Callers fill vt, vts, cols, rows before passing it on; consumers read the values during the operation and return ownership only where the member contract explicitly says they do. Cached glyph bitmap with metadata. Stores pre-rendered FreeType bitmap to avoid rasterization on every frame.

Definition at line 58 of file media/render/terminal.c.

Field Documentation

◆ bitmap_buf

uint8_t* glyph_cache_entry_t::bitmap_buf

Definition at line 60 of file media/render/terminal.c.

◆ bitmap_left

int glyph_cache_entry_t::bitmap_left

Definition at line 64 of file media/render/terminal.c.

Referenced by term_renderer_feed().

◆ bitmap_top

int glyph_cache_entry_t::bitmap_top

Definition at line 65 of file media/render/terminal.c.

Referenced by term_renderer_feed().

◆ codepoint

uint32_t glyph_cache_entry_t::codepoint

Definition at line 59 of file media/render/terminal.c.

◆ hh

UT_hash_handle glyph_cache_entry_t::hh

Definition at line 66 of file media/render/terminal.c.

◆ pitch

int glyph_cache_entry_t::pitch

Definition at line 63 of file media/render/terminal.c.

◆ rows

int glyph_cache_entry_t::rows

Definition at line 62 of file media/render/terminal.c.

Referenced by term_renderer_feed().

◆ width

int glyph_cache_entry_t::width

Definition at line 61 of file media/render/terminal.c.

Referenced by term_renderer_feed().


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