ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
screen_snapshot_t Struct Reference

When code needs to work with media snapshot slot, it keeps busy, snapshot, capacity here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

Data Fields

_Atomic unsigned references
media_snapshot_slot_t * slot
screen_terminal_t * terminal
uint64_t frame_id
uint64_t submitted_ns
uint64_t acquisition_started_ns
uint64_t media_epoch
terminal_screen_config_t config
unsigned char header [1]

Detailed Description

When code needs to work with media snapshot slot, it keeps busy, snapshot, capacity here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

The useful part of screen terminal is in references, fd: 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.

Definition at line 71 of file tui/controller.c.

Field Documentation

◆ acquisition_started_ns

uint64_t screen_snapshot_t::acquisition_started_ns

Definition at line 75 of file tui/controller.c.

◆ config

terminal_screen_config_t screen_snapshot_t::config

Definition at line 385 of file terminal_screen.c.

Referenced by terminal_screen_render().

◆ frame_id

uint64_t screen_snapshot_t::frame_id

Definition at line 75 of file tui/controller.c.

◆ header

unsigned char screen_snapshot_t::header[1]

Definition at line 386 of file terminal_screen.c.

Referenced by terminal_screen_render().

◆ media_epoch

uint64_t screen_snapshot_t::media_epoch

Definition at line 76 of file tui/controller.c.

◆ references

_Atomic unsigned screen_snapshot_t::references

Definition at line 72 of file tui/controller.c.

Referenced by ui_controller_first_use_key().

◆ slot

media_snapshot_slot_t* screen_snapshot_t::slot

Definition at line 73 of file tui/controller.c.

◆ submitted_ns

uint64_t screen_snapshot_t::submitted_ns

Definition at line 75 of file tui/controller.c.

◆ terminal

screen_terminal_t* screen_snapshot_t::terminal

Definition at line 74 of file tui/controller.c.


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